#include <iostream>
#include <CGAL/QP_models.h>
#include <CGAL/QP_functions.h>
#ifdef CGAL_USE_GMP
#else
#endif
<int**,
int*,
bool*,
int*,
bool*,
int*,
int**,
int*>
Program;
int main() {
int Ax[] = {1, -1};
int Ay[] = {1, 2};
int* A[] = {Ax, Ay};
int b[] = {7, 4};
bool fl[] = {true, true};
int l[] = {0, 0};
bool fu[] = {false, true};
int u[] = {0, 4};
int D1[] = {2};
int D2[] = {0, 8};
int* D[] = {D1, D2};
int c[] = {0, -32};
int c0 = 64;
Program qp (2, 2, A, b, r, fl, l, fu, u, D, c, c0);
std::cout << s;
return 0;
}
An object of class Quadratic_program_from_iterators describes a convex quadratic program of the form.
Definition: QP_models.h:491
An object of class Quadratic_program_solution represents the solution of a linear or convex quadratic...
Definition: QP_solution.h:65
Quadratic_program_solution< ET > solve_quadratic_program(const QuadraticProgram &qp, const ET &, const Quadratic_program_options &options=Quadratic_program_options())
This function solves a quadratic program, using some exact Integral Domain ET for its computations.