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

Detailed Description

Definition at line 299 of file xpress_interface.cc.

Inheritance diagram for operations_research::XpressInterface:
operations_research::MPSolverInterface

Public Member Functions

 XpressInterface (MPSolver *solver, bool mip)
 ~XpressInterface () override
void SetOptimizationDirection (bool maximize) override
MPSolver::ResultStatus Solve (MPSolverParameters const &param) override
void Write (const std::string &filename) override
void Reset () override
void SetVariableBounds (int var_index, double lb, double ub) override
void SetVariableInteger (int var_index, bool integer) override
void SetConstraintBounds (int row_index, double lb, double ub) override
void AddRowConstraint (MPConstraint *ct) override
void AddVariable (MPVariable *var) override
void SetCoefficient (MPConstraint *constraint, MPVariable const *variable, double new_value, double old_value) override
void ClearConstraint (MPConstraint *constraint) override
void SetObjectiveCoefficient (MPVariable const *variable, double coefficient) override
void SetObjectiveOffset (double value) override
void ClearObjective () override
virtual int64_t iterations () const
virtual int64_t nodes () const
MPSolver::BasisStatus row_status (int constraint_index) const override
MPSolver::BasisStatus column_status (int variable_index) const override
bool IsContinuous () const override
bool IsLP () const override
bool IsMIP () const override
void SetStartingLpBasis (const std::vector< MPSolver::BasisStatus > &variable_statuses, const std::vector< MPSolver::BasisStatus > &constraint_statuses) override
void ExtractNewVariables () override
void ExtractNewConstraints () override
void ExtractObjective () override
std::string SolverVersion () const override
void * underlying_solver () override
double ComputeExactConditionNumber () const override
void SetCallback (MPCallback *mp_callback) override
bool SupportsCallbacks () const override
bool InterruptSolve () override
Public Member Functions inherited from operations_research::MPSolverInterface
 MPSolverInterface (MPSolver *solver)
virtual ~MPSolverInterface ()
virtual bool SupportsDirectlySolveProto (std::atomic< bool > *) const
virtual MPSolutionResponse DirectlySolveProto (LazyMutableCopy< MPModelRequest >, std::atomic< bool > *)
virtual bool AddIndicatorConstraint (MPConstraint *const)
virtual void BranchingPriorityChangedForVariable (int)
double best_objective_bound () const
double objective_value () const
bool CheckSolutionIsSynchronized () const
virtual bool CheckSolutionExists () const
bool CheckSolutionIsSynchronizedAndExists () const
int last_variable_index () const
bool variable_is_extracted (int var_index) const
void set_variable_as_extracted (int var_index, bool extracted)
bool constraint_is_extracted (int ct_index) const
void set_constraint_as_extracted (int ct_index, bool extracted)
bool quiet () const
void set_quiet (bool quiet_value)
MPSolver::ResultStatus result_status () const
virtual double infinity ()
virtual bool NextSolution ()

Protected Member Functions

void SetParameters (MPSolverParameters const &param) override
void SetRelativeMipGap (double value) override
void SetPrimalTolerance (double value) override
void SetDualTolerance (double value) override
void SetPresolveMode (int value) override
void SetScalingMode (int value) override
void SetLpAlgorithm (int value) override
virtual bool ReadParameterFile (std::string const &filename)
virtual std::string ValidFileExtensionForParameterFile () const
Protected Member Functions inherited from operations_research::MPSolverInterface
void ExtractModel ()
void ResetExtractionInformation ()
void InvalidateSolutionSynchronization ()
void SetCommonParameters (const MPSolverParameters &param)
void SetMIPParameters (const MPSolverParameters &param)
void SetUnsupportedDoubleParam (MPSolverParameters::DoubleParam param)
virtual void SetUnsupportedIntegerParam (MPSolverParameters::IntegerParam param)
void SetDoubleParamToUnsupportedValue (MPSolverParameters::DoubleParam param, double value)
virtual void SetIntegerParamToUnsupportedValue (MPSolverParameters::IntegerParam param, int value)
virtual absl::Status SetNumThreads (int num_threads)

Additional Inherited Members

Public Types inherited from operations_research::MPSolverInterface
enum  SynchronizationStatus { MUST_RELOAD , MODEL_SYNCHRONIZED , SOLUTION_SYNCHRONIZED }
Static Public Attributes inherited from operations_research::MPSolverInterface
static constexpr int64_t kUnknownNumberOfIterations = -1
static constexpr int64_t kUnknownNumberOfNodes = -1
Protected Attributes inherited from operations_research::MPSolverInterface
MPSolver *const solver_
SynchronizationStatus sync_status_
MPSolver::ResultStatus result_status_
bool maximize_
int last_constraint_index_
int last_variable_index_
double objective_value_
double best_objective_bound_
bool quiet_
Static Protected Attributes inherited from operations_research::MPSolverInterface
static const int kDummyVariableIndex = 0

Constructor & Destructor Documentation

◆ XpressInterface()

operations_research::XpressInterface::XpressInterface ( MPSolver * solver,
bool mip )
explicit

Definition at line 840 of file xpress_interface.cc.

◆ ~XpressInterface()

operations_research::XpressInterface::~XpressInterface ( )
override

Definition at line 860 of file xpress_interface.cc.

Member Function Documentation

◆ AddRowConstraint()

void operations_research::XpressInterface::AddRowConstraint ( MPConstraint * ct)
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 1062 of file xpress_interface.cc.

◆ AddVariable()

void operations_research::XpressInterface::AddVariable ( MPVariable * var)
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 1076 of file xpress_interface.cc.

◆ ClearConstraint()

void operations_research::XpressInterface::ClearConstraint ( MPConstraint * constraint)
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 1126 of file xpress_interface.cc.

◆ ClearObjective()

void operations_research::XpressInterface::ClearObjective ( )
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 1196 of file xpress_interface.cc.

◆ column_status()

MPSolver::BasisStatus operations_research::XpressInterface::column_status ( int variable_index) const
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 1309 of file xpress_interface.cc.

◆ ComputeExactConditionNumber()

double operations_research::XpressInterface::ComputeExactConditionNumber ( ) const
inlineoverridevirtual

Reimplemented from operations_research::MPSolverInterface.

Definition at line 372 of file xpress_interface.cc.

◆ ExtractNewConstraints()

void operations_research::XpressInterface::ExtractNewConstraints ( )
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 1509 of file xpress_interface.cc.

◆ ExtractNewVariables()

void operations_research::XpressInterface::ExtractNewVariables ( )
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 1334 of file xpress_interface.cc.

◆ ExtractObjective()

void operations_research::XpressInterface::ExtractObjective ( )
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 1608 of file xpress_interface.cc.

◆ InterruptSolve()

bool operations_research::XpressInterface::InterruptSolve ( )
inlineoverridevirtual

Reimplemented from operations_research::MPSolverInterface.

Definition at line 388 of file xpress_interface.cc.

◆ IsContinuous()

bool operations_research::XpressInterface::IsContinuous ( ) const
inlineoverridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 356 of file xpress_interface.cc.

◆ IsLP()

bool operations_research::XpressInterface::IsLP ( ) const
inlineoverridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 357 of file xpress_interface.cc.

◆ IsMIP()

bool operations_research::XpressInterface::IsMIP ( ) const
inlineoverridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 358 of file xpress_interface.cc.

◆ iterations()

int64_t operations_research::XpressInterface::iterations ( ) const
virtual

Implements operations_research::MPSolverInterface.

Definition at line 1231 of file xpress_interface.cc.

◆ nodes()

int64_t operations_research::XpressInterface::nodes ( ) const
virtual

Implements operations_research::MPSolverInterface.

Definition at line 1236 of file xpress_interface.cc.

◆ ReadParameterFile()

bool operations_research::XpressInterface::ReadParameterFile ( std::string const & filename)
protectedvirtual

Definition at line 1784 of file xpress_interface.cc.

◆ Reset()

void operations_research::XpressInterface::Reset ( )
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 885 of file xpress_interface.cc.

◆ row_status()

MPSolver::BasisStatus operations_research::XpressInterface::row_status ( int constraint_index) const
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 1284 of file xpress_interface.cc.

◆ SetCallback()

void operations_research::XpressInterface::SetCallback ( MPCallback * mp_callback)
overridevirtual

Reimplemented from operations_research::MPSolverInterface.

Definition at line 2212 of file xpress_interface.cc.

◆ SetCoefficient()

void operations_research::XpressInterface::SetCoefficient ( MPConstraint * constraint,
MPVariable const * variable,
double new_value,
double old_value )
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 1092 of file xpress_interface.cc.

◆ SetConstraintBounds()

void operations_research::XpressInterface::SetConstraintBounds ( int row_index,
double lb,
double ub )
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 1023 of file xpress_interface.cc.

◆ SetDualTolerance()

void operations_research::XpressInterface::SetDualTolerance ( double value)
overrideprotectedvirtual

Implements operations_research::MPSolverInterface.

Definition at line 1656 of file xpress_interface.cc.

◆ SetLpAlgorithm()

void operations_research::XpressInterface::SetLpAlgorithm ( int value)
overrideprotectedvirtual

Implements operations_research::MPSolverInterface.

Definition at line 1694 of file xpress_interface.cc.

◆ SetObjectiveCoefficient()

void operations_research::XpressInterface::SetObjectiveCoefficient ( MPVariable const * variable,
double coefficient )
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 1167 of file xpress_interface.cc.

◆ SetObjectiveOffset()

void operations_research::XpressInterface::SetObjectiveOffset ( double value)
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 1190 of file xpress_interface.cc.

◆ SetOptimizationDirection()

void operations_research::XpressInterface::SetOptimizationDirection ( bool maximize)
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 900 of file xpress_interface.cc.

◆ SetParameters()

void operations_research::XpressInterface::SetParameters ( MPSolverParameters const & param)
overrideprotectedvirtual

Implements operations_research::MPSolverInterface.

Definition at line 1637 of file xpress_interface.cc.

◆ SetPresolveMode()

void operations_research::XpressInterface::SetPresolveMode ( int value)
overrideprotectedvirtual

Implements operations_research::MPSolverInterface.

Definition at line 1660 of file xpress_interface.cc.

◆ SetPrimalTolerance()

void operations_research::XpressInterface::SetPrimalTolerance ( double value)
overrideprotectedvirtual

Implements operations_research::MPSolverInterface.

Definition at line 1652 of file xpress_interface.cc.

◆ SetRelativeMipGap()

void operations_research::XpressInterface::SetRelativeMipGap ( double value)
overrideprotectedvirtual

Implements operations_research::MPSolverInterface.

Definition at line 1643 of file xpress_interface.cc.

◆ SetScalingMode()

void operations_research::XpressInterface::SetScalingMode ( int value)
overrideprotectedvirtual

Implements operations_research::MPSolverInterface.

Definition at line 1675 of file xpress_interface.cc.

◆ SetStartingLpBasis()

void operations_research::XpressInterface::SetStartingLpBasis ( const std::vector< MPSolver::BasisStatus > & variable_statuses,
const std::vector< MPSolver::BasisStatus > & constraint_statuses )
overridevirtual

Reimplemented from operations_research::MPSolverInterface.

Definition at line 1727 of file xpress_interface.cc.

◆ SetVariableBounds()

void operations_research::XpressInterface::SetVariableBounds ( int var_index,
double lb,
double ub )
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 905 of file xpress_interface.cc.

◆ SetVariableInteger()

void operations_research::XpressInterface::SetVariableInteger ( int var_index,
bool integer )
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 934 of file xpress_interface.cc.

◆ Solve()

MPSolver::ResultStatus operations_research::XpressInterface::Solve ( MPSolverParameters const & param)
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 1795 of file xpress_interface.cc.

◆ SolverVersion()

std::string operations_research::XpressInterface::SolverVersion ( ) const
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 865 of file xpress_interface.cc.

◆ SupportsCallbacks()

bool operations_research::XpressInterface::SupportsCallbacks ( ) const
inlineoverridevirtual

Reimplemented from operations_research::MPSolverInterface.

Definition at line 386 of file xpress_interface.cc.

◆ underlying_solver()

void * operations_research::XpressInterface::underlying_solver ( )
inlineoverridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 370 of file xpress_interface.cc.

◆ ValidFileExtensionForParameterFile()

std::string operations_research::XpressInterface::ValidFileExtensionForParameterFile ( ) const
protectedvirtual

Definition at line 1791 of file xpress_interface.cc.

◆ Write()

void operations_research::XpressInterface::Write ( const std::string & filename)
overridevirtual

Reimplemented from operations_research::MPSolverInterface.

Definition at line 2086 of file xpress_interface.cc.


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