CGAL::print_quadratic_program

#include <CGAL/QP_functions.h>

This function writes a quadratic program to an output stream (in MPSFormat). The time complexity is (n2 + mn), even if the program is very sparse.

template <QuadraticProgram>
void
print_quadratic_program ( std::ostream& out,
QuadraticProgram qp,
std::string problem_name = std::string("MY_MPS"))
writes the quadratic program qp to out in MPSFormat. The name of the program will be the one provided by problem_name.

Requirements

Output operators are defined for all entry types of qp.

Example

QP_solver/print_first_qp.cpp

See Also

The concept

QuadraticProgram