#include <CGAL/QP_options.h>
Quadratic_program_options options; | |
constructs an instance of Quadratic_program_options where all available options
are at their defaults.
|
void | options.set_verbosity ( int verbosity) | |
sets the verbosity of the solver to the value verbosity when options is passed to any of the four solution functions. The provided value must be a number between 0 and 5. Verbosity 0 is the default and results in the solver running silently. Verbosity 1 prints a short summary of every iteration. Higher verbosity values print more information about the solution process, but these are mainly for debugging purposes and have no effect if you compile with CGAL_QP_NO_ASSERTIONS or NDEBUG. | ||
int | options.get_verbosity () const | returns the verbosity level of options. |
void | options.set_pricing_strategy ( Quadratic_program_pricing_strategy pricing_strategy) | |
sets the pricing strategy of the solver to the value pricing_strategy when options is passed to any of the four solution functions. The pricing strategy controls how the solver proceeds from any intermediate solution. For the available strategies and their behavior, see the documentation of the class Quadratic_program_pricing_strategy. | ||
Quadratic_program_pricing_strategy | ||
options.get_pricing_strategy () const | ||
returns the pricing strategy of options. |
void | options.set_auto_validation ( bool validate) | |
sets the automatic validation mode of the solver to the value validate. The default is false. By providing value true you can tell the solver to automatically check whether the program has correctly been solved, see the Validity section of the class Quadratic_program_solution. | ||
bool | options.get_auto_validation () const | |
returns the validation mode of options. |
Quadratic_program_solution
solve_quadratic_program
solve_linear_program
solve_nonnegative_quadratic_program
solve_nonnegative_linear_program