Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::math_opt::LpModelSolveParametersTestParameters Struct Reference

#include <lp_model_solve_parameters_tests.h>

Public Member Functions

 LpModelSolveParametersTestParameters (const SolverType solver_type, const bool exact_zeros, const bool supports_duals, const bool supports_primal_only_warm_starts, SolveParameters parameters={})
 

Public Attributes

SolverType solver_type
 
bool exact_zeros
 
bool supports_duals
 
bool supports_primal_only_warm_starts
 True if the solver supports warm starts on the primal solution only.
 
SolveParameters parameters
 

Friends

std::ostream & operator<< (std::ostream &out, const LpModelSolveParametersTestParameters &params)
 

Detailed Description

Definition at line 27 of file lp_model_solve_parameters_tests.h.

Constructor & Destructor Documentation

◆ LpModelSolveParametersTestParameters()

operations_research::math_opt::LpModelSolveParametersTestParameters::LpModelSolveParametersTestParameters ( const SolverType solver_type,
const bool exact_zeros,
const bool supports_duals,
const bool supports_primal_only_warm_starts,
SolveParameters parameters = {} )
inline

Definition at line 40 of file lp_model_solve_parameters_tests.h.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & out,
const LpModelSolveParametersTestParameters & params )
friend

Definition at line 31 of file lp_model_solve_parameters_tests.cc.

Member Data Documentation

◆ exact_zeros

bool operations_research::math_opt::LpModelSolveParametersTestParameters::exact_zeros

If true, we EXPECT that the solver to return a value of exactly 0.0 for decisions variables >= 0 that take zero at the optimum on a very small problem. In general, simplex solvers are more likely to do this, but very few solvers actually guarantee this. All tests relying on this behavior are brittle and we should try to eliminate them.

Definition at line 34 of file lp_model_solve_parameters_tests.h.

◆ parameters

SolveParameters operations_research::math_opt::LpModelSolveParametersTestParameters::parameters

Definition at line 38 of file lp_model_solve_parameters_tests.h.

◆ solver_type

SolverType operations_research::math_opt::LpModelSolveParametersTestParameters::solver_type

Definition at line 28 of file lp_model_solve_parameters_tests.h.

◆ supports_duals

bool operations_research::math_opt::LpModelSolveParametersTestParameters::supports_duals

Definition at line 35 of file lp_model_solve_parameters_tests.h.

◆ supports_primal_only_warm_starts

bool operations_research::math_opt::LpModelSolveParametersTestParameters::supports_primal_only_warm_starts

True if the solver supports warm starts on the primal solution only.

Definition at line 37 of file lp_model_solve_parameters_tests.h.


The documentation for this struct was generated from the following file: