CGAL::print_linear_program

#include <CGAL/QP_functions.h>

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

template <LinearProgram>
void
print_linear_program ( std::ostream& out,
LinearProgram lp,
std::string problem_name = std::string("MY_MPS"))
writes the linear program lp 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 lp.

Example

QP_solver/print_first_lp.cpp

See Also

The concept

LinearProgram