CGAL::print_nonnegative_linear_program

#include <CGAL/QP_functions.h>

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

template <NonnegativeLinearProgram>
void
print_nonnegative_linear_program ( std::ostream& out,
NonnegativeLinearProgram lp,
std::string problem_name = std::string("MY_MPS"))
writes the nonnegative 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_nonnegative_lp.cpp

See Also

The concept

NonnegativeLinearProgram