Google OR-Tools: operations_research::XpressInterface Class Reference

Definition at line 299 of file xpress_interface.cc.

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
operations_research::XpressInterface::XpressInterface ( MPSolver * solver,
bool mip )
explicit

◆ ~XpressInterface()

operations_research::XpressInterface::~XpressInterface ( )
override

◆ AddRowConstraint()

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

◆ AddVariable()

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

◆ ClearConstraint()

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

◆ ClearObjective()

void operations_research::XpressInterface::ClearObjective ( )
overridevirtual

◆ column_status()

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

◆ ComputeExactConditionNumber()

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

◆ ExtractNewConstraints()

void operations_research::XpressInterface::ExtractNewConstraints ( )
overridevirtual

◆ ExtractNewVariables()

void operations_research::XpressInterface::ExtractNewVariables ( )
overridevirtual

◆ ExtractObjective()

void operations_research::XpressInterface::ExtractObjective ( )
overridevirtual

◆ InterruptSolve()

bool operations_research::XpressInterface::InterruptSolve ( )
inlineoverridevirtual

◆ IsContinuous()

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

◆ IsLP()

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

◆ IsMIP()

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

◆ iterations()

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

◆ nodes()

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

◆ ReadParameterFile()

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

◆ Reset()

void operations_research::XpressInterface::Reset ( )
overridevirtual

◆ row_status()

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

◆ SetCallback()

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

◆ SetCoefficient()

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

◆ SetConstraintBounds()

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

◆ SetDualTolerance()

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

◆ SetLpAlgorithm()

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

◆ SetObjectiveCoefficient()

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

◆ SetObjectiveOffset()

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

◆ SetOptimizationDirection()

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

◆ SetParameters()

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

◆ SetPresolveMode()

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

◆ SetPrimalTolerance()

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

◆ SetRelativeMipGap()

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

◆ SetScalingMode()

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

◆ SetStartingLpBasis()

◆ SetVariableBounds()

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

◆ SetVariableInteger()

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

◆ Solve()

◆ SolverVersion()

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

◆ SupportsCallbacks()

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

◆ underlying_solver()

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

◆ ValidFileExtensionForParameterFile()

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

◆ Write()

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

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