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

#include <lp_initial_basis_tests.h>

Inheritance diagram for operations_research::math_opt::LpBasisStartTest:
operations_research::math_opt::BaseSolverTest

Protected Member Functions

 LpBasisStartTest ()
 
SolveStats SolveWithWarmStart (bool is_maximize, bool starting_basis_max_opt)
 
SolveStats RoundTripSolve ()
 
int SetUpVariableBoundBoxModel ()
 
int SetUpConstraintBoxModel ()
 
int SetUpRangedConstraintBoxModel ()
 
int SetUpBasicRangedConstraintModel ()
 
int SetUpUnboundedVariablesAndConstraintsModel ()
 
int SetUpFixedVariablesModel ()
 
int SetUpEqualitiesModel ()
 
- Protected Member Functions inherited from operations_research::math_opt::BaseSolverTest
SolverType TestedSolver () const
 

Protected Attributes

Model model_
 
LinearExpression objective_expression_
 
Basis max_optimal_basis_
 
Basis min_optimal_basis_
 
const SolveParameters params_
 

Detailed Description

A suite of unit tests to show that an LP solver handles basis start correctly.

To use these tests, in file <solver>_test.cc write: INSTANTIATE_TEST_SUITE_P(<Solver>LpBasisStartTest, LpBasisStartTest, testing::Values(SolverType::k<Solver>));

Definition at line 29 of file lp_initial_basis_tests.h.

Constructor & Destructor Documentation

◆ LpBasisStartTest()

operations_research::math_opt::LpBasisStartTest::LpBasisStartTest ( )
protected

Set threads=1 so that the underlying solver doesn't use an ensemble of LP algorithms.

Definition at line 34 of file lp_initial_basis_tests.cc.

Member Function Documentation

◆ RoundTripSolve()

SolveStats operations_research::math_opt::LpBasisStartTest::RoundTripSolve ( )
protected

Definition at line 52 of file lp_initial_basis_tests.cc.

◆ SetUpBasicRangedConstraintModel()

int operations_research::math_opt::LpBasisStartTest::SetUpBasicRangedConstraintModel ( )
protected

◆ SetUpConstraintBoxModel()

int operations_research::math_opt::LpBasisStartTest::SetUpConstraintBoxModel ( )
protected

◆ SetUpEqualitiesModel()

int operations_research::math_opt::LpBasisStartTest::SetUpEqualitiesModel ( )
protected

◆ SetUpFixedVariablesModel()

int operations_research::math_opt::LpBasisStartTest::SetUpFixedVariablesModel ( )
protected

◆ SetUpRangedConstraintBoxModel()

int operations_research::math_opt::LpBasisStartTest::SetUpRangedConstraintBoxModel ( )
protected

◆ SetUpUnboundedVariablesAndConstraintsModel()

int operations_research::math_opt::LpBasisStartTest::SetUpUnboundedVariablesAndConstraintsModel ( )
protected

◆ SetUpVariableBoundBoxModel()

int operations_research::math_opt::LpBasisStartTest::SetUpVariableBoundBoxModel ( )
protected

◆ SolveWithWarmStart()

SolveStats operations_research::math_opt::LpBasisStartTest::SolveWithWarmStart ( bool is_maximize,
bool starting_basis_max_opt )
protected

Definition at line 38 of file lp_initial_basis_tests.cc.

Member Data Documentation

◆ max_optimal_basis_

Basis operations_research::math_opt::LpBasisStartTest::max_optimal_basis_
protected

Definition at line 46 of file lp_initial_basis_tests.h.

◆ min_optimal_basis_

Basis operations_research::math_opt::LpBasisStartTest::min_optimal_basis_
protected

Definition at line 47 of file lp_initial_basis_tests.h.

◆ model_

Model operations_research::math_opt::LpBasisStartTest::model_
protected

Definition at line 43 of file lp_initial_basis_tests.h.

◆ objective_expression_

LinearExpression operations_research::math_opt::LpBasisStartTest::objective_expression_
protected

Definition at line 44 of file lp_initial_basis_tests.h.

◆ params_

const SolveParameters operations_research::math_opt::LpBasisStartTest::params_
protected

Definition at line 49 of file lp_initial_basis_tests.h.


The documentation for this class was generated from the following files: