qpOASES  3.0.1
Functions | Variables
examples/qrecipe.cpp File Reference
#include <qpOASES.hpp>
Include dependency graph for qrecipe.cpp:

Functions

int main ()

Variables

USING_NAMESPACE_QPOASES const
real_t 
Inf = INFTY
sparse_int_t H_jc []
sparse_int_t H_ir []
real_t H_val []
sparse_int_t A_jc []
sparse_int_t A_ir []
real_t A_val []
real_t g []
real_t lb []
real_t ub []
real_t lbA []
real_t ubA []
long H_nnz = sizeof(H_val) / sizeof(real_t)
long A_nnz = sizeof(A_val) / sizeof(real_t)

Detailed Description

Author:
Andreas Potschka
Version:
3.0
Date:
2007-2014

QRECIPE example from the CUTEr test set with sparse matrices.


Function Documentation

int main ( )

Variable Documentation

Sparse constraint matrix data for qrecipe example.

Referenced by main().

Initial value:
 {0, 10,  20,  30,  40,  50,  60,  70,  80,  90, 100, 110, 120,
    130, 140, 150, 160, 170, 180, 190, 200, 210, 220, 230, 240, 250, 260, 270,
    280, 290, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312,
    313, 314, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 331,
    333, 335, 337, 339, 341, 343, 345, 347, 349, 351, 353, 355, 357, 359, 361,
    363, 365, 367, 369, 371, 373, 383, 393, 403, 405, 408, 410, 413, 415, 418,
    420, 422, 424, 426, 428, 430, 432, 434, 436, 438, 440, 442, 444, 446, 448,
    450, 452, 454, 456, 458, 460, 462, 472, 482, 492, 494, 497, 499, 502, 504,
    507, 509, 511, 513, 515, 517, 519, 521, 523, 525, 527, 529, 531, 533, 535,
    537, 539, 541, 543, 545, 547, 549, 551, 561, 571, 581, 583, 586, 588, 591,
    593, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609,
    610, 611, 612, 613, 614, 615, 616, 617, 618, 628, 638, 648, 650, 653, 655,
    658, 660, 663}

Sparse constraint matrix data for qrecipe example.

Referenced by main().

long A_nnz = sizeof(A_val) / sizeof(real_t)

Number of non-zeros in constraint matrix for qrecipe example.

Sparse constraint matrix data for qrecipe example.

Referenced by main().

real_t g[]
Initial value:
 {+0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00,
    +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00,
    +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00,
    +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00,
    +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00,
    +0e+00, +0e+00, -2e+00, -2e+00, -2e+00, -2e+00, -2e+00, -2e+00, -2e+00,
    -2e+00, +0e+00, -2e+00, +0e+00, +2e-03, +2e-03, +2e-03, +2e-03, +2e-03,
    +2e-03, +1e-03, +2e-03, +2e-03, +2e-03, +0e+00, -2e-03, -2e-03, -2e-03,
    -2e-03, -2e-03, -2e-03, -1e-03, -2e-03, -2e-03, -2e-03, +0e+00, +0e+00,
    +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +2e-03,
    +2e-03, +2e-03, +2e-03, +2e-03, +2e-03, +1e-03, +2e-03, +2e-03, +2e-03,
    +0e+00, -2e-03, -2e-03, -2e-03, -2e-03, -2e-03, -2e-03, -1e-03, -2e-03,
    -2e-03, -2e-03, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00,
    +0e+00, +0e+00, +0e+00, +2e-03, +2e-03, +2e-03, +2e-03, +2e-03, +2e-03,
    +1e-03, +2e-03, +2e-03, +2e-03, +0e+00, -2e-03, -2e-03, -2e-03, -2e-03,
    -2e-03, -2e-03, -1e-03, -2e-03, -2e-03, -2e-03, +0e+00, +0e+00, +0e+00,
    +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +1e-01, +1e-01,
    +1e-01, +1e-01, +1e-01, +1e-01, +1e-01, +1e-01, +1e-01, +1e-01, +0e+00,
    -1e-01, -1e-01, -1e-01, -1e-01, -1e-01, -1e-01, -1e-01, -1e-01, -1e-01,
    -1e-01, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00, +0e+00,
    +0e+00}

Gradient vector for qrecipe example.

Referenced by main(), readOQPdata(), and runOQPbenchmark().

Initial value:
 {
    0, 10, 20, 34, 1, 11, 21, 35, 2, 12, 22, 36, 3, 13, 23, 37, 4, 14, 24, 38, 
    0, 10, 20, 34, 1, 11, 21, 35, 2, 12, 22, 36, 3, 13, 23, 37, 4, 14, 24, 38, 
    0, 10, 20, 34, 1, 11, 21, 35, 2, 12, 22, 36, 3, 13, 23, 37, 4, 14, 24, 38, 
    0, 10, 20, 34, 1, 11, 21, 35, 2, 12, 22, 36, 3, 13, 23, 37, 4, 14, 24, 38}

Sparse Hessian matrix data for qrecipe example.

Referenced by main().

Initial value:
 { 0,  4,  8, 12, 16, 20, 20, 20, 20, 20, 20,
                       24, 28, 32, 36, 40, 40, 40, 40, 40, 40,
                       44, 48, 52, 56, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60,
                       64, 68, 72, 76, 80, 80, 80, 80, 80, 80,
                       80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 
                       80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 
                       80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 
                       80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 
                       80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 
                       80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 
                       80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 
                       80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 
                       80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 
                       80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 
                       80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 
                       80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 
                       80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 
                       80, 80, 80, 80, 80, 80 }

Sparse Hessian matrix data for qrecipe example.

Referenced by main().

long H_nnz = sizeof(H_val) / sizeof(real_t)

Number of non-zeros in Hessian matrix for qrecipe example.

Initial value:
 {10, 1, 1, 1, 10, 1, 1, 1, 10, 1, 1, 1, 10, 1, 1, 1, 10, 1, 1,
    1, 1, 10, 1, 1, 1, 10, 1, 1, 1, 10, 1, 1, 1, 10, 1, 1, 1, 10, 1, 1, 1, 1,
    10, 1, 1, 1, 10, 1, 1, 1, 10, 1, 1, 1, 10, 1, 1, 1, 10, 1, 1, 1, 1, 10, 1,
    1, 1, 10, 1, 1, 1, 10, 1, 1, 1, 10, 1, 1, 1, 10}

Sparse Hessian matrix data for qrecipe example.

Referenced by main().

Infinity constant for qrecipe example.

Initial value:
 {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, -Inf, 0, -Inf, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 5,
    10, 5, 0, 10, 0, 2, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 10, 5, 10, 5, 0, 10, 0, 5, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 5, 10, 5, 0, 10, 0, 5, 0, 10, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}

Lower bound vector for qrecipe example.

Referenced by main(), readOQPdata(), and runOQPbenchmark().

Initial value:
 {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -Inf, -Inf,
    -Inf, -Inf, -Inf, -Inf, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0}

Lower constraint bound vector for qrecipe example.

Referenced by main(), readOQPdata(), and runOQPbenchmark().

Initial value:
 {Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf,
    Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf,
    Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf,
    Inf, Inf, 0, 92, 39, 87, 29, 0, 20, 0, 28, 20, 71, Inf, 130, 45, 53, 55, 75,
    112, 0, 73, 480, 154, 121, 50, 30, 77, 20, 0, 18, 0, 5, 20, 71, Inf, Inf,
    Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, 130, 55, 93, 60, 75, 115, 0, 67,
    480, 154, 121, 50, 20, 37, 15, 0, 15, 0, 8, 20, 71, Inf, Inf, Inf, Inf, Inf,
    Inf, Inf, Inf, Inf, Inf, 130, 55, 93, 60, 75, 105, 0, 67, 4980, 154, 110,
    50, 20, 37, 15, 0, 25, 0, 8, 20, 71, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf,
    Inf, Inf, 20, 20, 20, 20, 0, 20, 0, 20, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf}

Upper bound vector for qrecipe example.

Referenced by main(), readOQPdata(), and runOQPbenchmark().

Initial value:
 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf,
    Inf, Inf, Inf, Inf}

Upper constraint bound vector for qrecipe example.

Referenced by main(), readOQPdata(), and runOQPbenchmark().