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

Detailed Description

Definition at line 36 of file pdlp_interface.cc.

Inheritance diagram for operations_research::PdlpInterface:
operations_research::MPSolverInterface

Public Member Functions

 PdlpInterface (MPSolver *solver)
 ~PdlpInterface () override
MPSolver::ResultStatus Solve (const MPSolverParameters &param) override
bool SupportsDirectlySolveProto (std::atomic< bool > *interrupt) const override
MPSolutionResponse DirectlySolveProto (LazyMutableCopy< MPModelRequest > request, std::atomic< bool > *interrupt) override
void Reset () override
void SetOptimizationDirection (bool maximize) override
void SetVariableBounds (int index, double lb, double ub) override
void SetVariableInteger (int index, bool integer) override
void SetConstraintBounds (int index, double lb, double ub) override
void AddRowConstraint (MPConstraint *ct) override
void AddVariable (MPVariable *var) override
void SetCoefficient (MPConstraint *constraint, const MPVariable *variable, double new_value, double old_value) override
void ClearConstraint (MPConstraint *constraint) override
void SetObjectiveCoefficient (const MPVariable *variable, double coefficient) override
void SetObjectiveOffset (double value) override
void ClearObjective () override
int64_t iterations () const override
int64_t nodes () const override
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
std::string SolverVersion () const override
void * underlying_solver () override
bool InterruptSolve () override
void ExtractNewVariables () override
void ExtractNewConstraints () override
void ExtractObjective () override
void SetParameters (const MPSolverParameters &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
bool SetSolverSpecificParametersAsString (const std::string &parameters) override
absl::Status SetNumThreads (int num_threads) override
Public Member Functions inherited from operations_research::MPSolverInterface
 MPSolverInterface (MPSolver *solver)
virtual ~MPSolverInterface ()
virtual void Write (const std::string &filename)
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 ComputeExactConditionNumber () const
virtual void SetStartingLpBasis (const std::vector< MPSolver::BasisStatus > &, const std::vector< MPSolver::BasisStatus > &)
virtual double infinity ()
virtual bool NextSolution ()
virtual void SetCallback (MPCallback *)
virtual bool SupportsCallbacks () const

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 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)
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

◆ PdlpInterface()

operations_research::PdlpInterface::PdlpInterface ( MPSolver * solver)
explicit

Definition at line 109 of file pdlp_interface.cc.

◆ ~PdlpInterface()

operations_research::PdlpInterface::~PdlpInterface ( )
override

Definition at line 112 of file pdlp_interface.cc.

Member Function Documentation

◆ AddRowConstraint()

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

Implements operations_research::MPSolverInterface.

Definition at line 207 of file pdlp_interface.cc.

◆ AddVariable()

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

Implements operations_research::MPSolverInterface.

Definition at line 211 of file pdlp_interface.cc.

◆ ClearConstraint()

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

Implements operations_research::MPSolverInterface.

Definition at line 221 of file pdlp_interface.cc.

◆ ClearObjective()

void operations_research::PdlpInterface::ClearObjective ( )
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 232 of file pdlp_interface.cc.

◆ column_status()

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

Implements operations_research::MPSolverInterface.

Definition at line 249 of file pdlp_interface.cc.

◆ DirectlySolveProto()

MPSolutionResponse operations_research::PdlpInterface::DirectlySolveProto ( LazyMutableCopy< MPModelRequest > request,
std::atomic< bool > * interrupt )
inlineoverridevirtual

Reimplemented from operations_research::MPSolverInterface.

Definition at line 47 of file pdlp_interface.cc.

◆ ExtractNewConstraints()

void operations_research::PdlpInterface::ExtractNewConstraints ( )
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 274 of file pdlp_interface.cc.

◆ ExtractNewVariables()

void operations_research::PdlpInterface::ExtractNewVariables ( )
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 272 of file pdlp_interface.cc.

◆ ExtractObjective()

void operations_research::PdlpInterface::ExtractObjective ( )
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 276 of file pdlp_interface.cc.

◆ InterruptSolve()

bool operations_research::PdlpInterface::InterruptSolve ( )
overridevirtual

Reimplemented from operations_research::MPSolverInterface.

Definition at line 267 of file pdlp_interface.cc.

◆ IsContinuous()

bool operations_research::PdlpInterface::IsContinuous ( ) const
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 255 of file pdlp_interface.cc.

◆ IsLP()

bool operations_research::PdlpInterface::IsLP ( ) const
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 257 of file pdlp_interface.cc.

◆ IsMIP()

bool operations_research::PdlpInterface::IsMIP ( ) const
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 259 of file pdlp_interface.cc.

◆ iterations()

int64_t operations_research::PdlpInterface::iterations ( ) const
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 234 of file pdlp_interface.cc.

◆ nodes()

int64_t operations_research::PdlpInterface::nodes ( ) const
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 238 of file pdlp_interface.cc.

◆ Reset()

void operations_research::PdlpInterface::Reset ( )
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 189 of file pdlp_interface.cc.

◆ row_status()

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

Implements operations_research::MPSolverInterface.

Definition at line 243 of file pdlp_interface.cc.

◆ SetCoefficient()

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

Implements operations_research::MPSolverInterface.

Definition at line 215 of file pdlp_interface.cc.

◆ SetConstraintBounds()

void operations_research::PdlpInterface::SetConstraintBounds ( int index,
double lb,
double ub )
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 203 of file pdlp_interface.cc.

◆ SetDualTolerance()

void operations_research::PdlpInterface::SetDualTolerance ( double value)
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 293 of file pdlp_interface.cc.

◆ SetLpAlgorithm()

void operations_research::PdlpInterface::SetLpAlgorithm ( int value)
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 295 of file pdlp_interface.cc.

◆ SetNumThreads()

absl::Status operations_research::PdlpInterface::SetNumThreads ( int num_threads)
overridevirtual

Reimplemented from operations_research::MPSolverInterface.

Definition at line 282 of file pdlp_interface.cc.

◆ SetObjectiveCoefficient()

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

Implements operations_research::MPSolverInterface.

Definition at line 225 of file pdlp_interface.cc.

◆ SetObjectiveOffset()

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

Implements operations_research::MPSolverInterface.

Definition at line 230 of file pdlp_interface.cc.

◆ SetOptimizationDirection()

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

Implements operations_research::MPSolverInterface.

Definition at line 191 of file pdlp_interface.cc.

◆ SetParameters()

void operations_research::PdlpInterface::SetParameters ( const MPSolverParameters & param)
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 278 of file pdlp_interface.cc.

◆ SetPresolveMode()

void operations_research::PdlpInterface::SetPresolveMode ( int value)
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 297 of file pdlp_interface.cc.

◆ SetPrimalTolerance()

void operations_research::PdlpInterface::SetPrimalTolerance ( double value)
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 292 of file pdlp_interface.cc.

◆ SetRelativeMipGap()

void operations_research::PdlpInterface::SetRelativeMipGap ( double value)
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 296 of file pdlp_interface.cc.

◆ SetScalingMode()

void operations_research::PdlpInterface::SetScalingMode ( int value)
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 294 of file pdlp_interface.cc.

◆ SetSolverSpecificParametersAsString()

bool operations_research::PdlpInterface::SetSolverSpecificParametersAsString ( const std::string & parameters)
overridevirtual

Reimplemented from operations_research::MPSolverInterface.

Definition at line 299 of file pdlp_interface.cc.

◆ SetVariableBounds()

void operations_research::PdlpInterface::SetVariableBounds ( int index,
double lb,
double ub )
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 195 of file pdlp_interface.cc.

◆ SetVariableInteger()

void operations_research::PdlpInterface::SetVariableInteger ( int index,
bool integer )
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 199 of file pdlp_interface.cc.

◆ Solve()

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

Implements operations_research::MPSolverInterface.

Definition at line 114 of file pdlp_interface.cc.

◆ SolverVersion()

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

Implements operations_research::MPSolverInterface.

Definition at line 261 of file pdlp_interface.cc.

◆ SupportsDirectlySolveProto()

bool operations_research::PdlpInterface::SupportsDirectlySolveProto ( std::atomic< bool > * interrupt) const
inlineoverridevirtual

Reimplemented from operations_research::MPSolverInterface.

Definition at line 44 of file pdlp_interface.cc.

◆ underlying_solver()

void * operations_research::PdlpInterface::underlying_solver ( )
overridevirtual

Implements operations_research::MPSolverInterface.

Definition at line 265 of file pdlp_interface.cc.


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