CGAL::print_nonnegative_quadratic_program

#include <CGAL/QP_functions.h>

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

template <NonnegativeQuadraticProgram>
void
print_nonnegative_quadratic_program ( std::ostream& out,
NonnegativeQuadraticProgram qp,
std::string problem_name = std::string("MY_MPS"))
writes the nonnegative 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_nonnegative_qp.cpp

See Also

The concept

NonnegativeQuadraticProgram