|
The description is given by appropriate random-access iterators over the program data, see below. The program therefore comes in dense representation which includes zero entries.
| |
A random access iterator type to go
columnwise over the constraint matrix A. The value type
is a random access iterator type for an individual column that
goes over the entries in that column.
| |
| |
A random access iterator type to go over
the entries of the right-hand side b.
| |
| |
A random access iterator type to go over the
relations ⋛ . The value type of R_iterator is
CGAL::Comparison_result.
| |
| |
A random access iterator type to go over the
entries of the linear objective function vector c.
|
|
| returns the number n of variables (number of columns of A) in lp. |
|
| returns the number m of constraints (number of rows of A) in lp. |
|
| returns an iterator over the columns of A. The corresponding past-the-end iterator is get_a()+get_n(). For j=0, ,n-1, *(get_a()+j) is a random access iterator for column j. |
|
| returns an iterator over the entries of b. The corresponding past-the-end iterator is get_b()+get_m(). |
|
| returns an iterator over the entries of ⋛ . The corresponding past-the-end iterator is get_r()+get_m(). The value CGAL::SMALLER stands for ≤ , CGAL::EQUAL stands for =, and CGAL::LARGER stands for ≥ . |
|
| returns an iterator over the entries of c. The corresponding past-the-end iterator is get_c()+get_n(). |
| ||
| returns the constant term c0 of the objective function. |
The value types of all iterator types (nested iterator types, respectively, for A_iterator) must be convertible to some common IntegralDomain ET.
Quadratic_program<NT>
Quadratic_program_from_mps<NT>
Nonnegative_linear_program_from_iterators<A_it, B_it, R_it, C_it>
and the other concepts
QuadraticProgram
LinearProgram
NonnegativeQuadraticProgram