Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::glop::DataWrapper< LinearProgram > Class Reference

Public Types

using IndexType = int
 

Public Member Functions

 DataWrapper (LinearProgram *data)
 
void SetUp ()
 
void SetName (absl::string_view name)
 
void SetObjectiveDirection (bool maximize)
 
void SetObjectiveOffset (double objective_offset)
 
int FindOrCreateConstraint (absl::string_view name)
 
void SetConstraintBounds (int index, double lower_bound, double upper_bound)
 
void SetConstraintCoefficient (int row_index, int col_index, double coefficient)
 
void SetIsLazy (int row_index)
 
double ConstraintLowerBound (int row_index)
 
double ConstraintUpperBound (int row_index)
 
int FindOrCreateVariable (absl::string_view name)
 
void SetVariableTypeToInteger (int index)
 
void SetVariableTypeToSemiContinuous (int index)
 
void SetVariableBounds (int index, double lower_bound, double upper_bound)
 
void SetObjectiveCoefficient (int index, double coefficient)
 
double VariableLowerBound (int index)
 
double VariableUpperBound (int index)
 
absl::Status CreateIndicatorConstraint (absl::string_view row_name, int col_index, bool col_value)
 
void CleanUp ()
 

Detailed Description

Definition at line 44 of file mps_reader.cc.

Member Typedef Documentation

◆ IndexType

Definition at line 46 of file mps_reader.cc.

Constructor & Destructor Documentation

◆ DataWrapper()

operations_research::glop::DataWrapper< LinearProgram >::DataWrapper ( LinearProgram * data)
inlineexplicit

Definition at line 47 of file mps_reader.cc.

Member Function Documentation

◆ CleanUp()

Definition at line 116 of file mps_reader.cc.

◆ ConstraintLowerBound()

double operations_research::glop::DataWrapper< LinearProgram >::ConstraintLowerBound ( int row_index)
inline

Definition at line 80 of file mps_reader.cc.

◆ ConstraintUpperBound()

double operations_research::glop::DataWrapper< LinearProgram >::ConstraintUpperBound ( int row_index)
inline

Definition at line 83 of file mps_reader.cc.

◆ CreateIndicatorConstraint()

absl::Status operations_research::glop::DataWrapper< LinearProgram >::CreateIndicatorConstraint ( absl::string_view row_name,
int col_index,
bool col_value )
inline

Definition at line 110 of file mps_reader.cc.

◆ FindOrCreateConstraint()

int operations_research::glop::DataWrapper< LinearProgram >::FindOrCreateConstraint ( absl::string_view name)
inline

Definition at line 64 of file mps_reader.cc.

◆ FindOrCreateVariable()

int operations_research::glop::DataWrapper< LinearProgram >::FindOrCreateVariable ( absl::string_view name)
inline

Definition at line 87 of file mps_reader.cc.

◆ SetConstraintBounds()

void operations_research::glop::DataWrapper< LinearProgram >::SetConstraintBounds ( int index,
double lower_bound,
double upper_bound )
inline

Definition at line 67 of file mps_reader.cc.

◆ SetConstraintCoefficient()

void operations_research::glop::DataWrapper< LinearProgram >::SetConstraintCoefficient ( int row_index,
int col_index,
double coefficient )
inline

Definition at line 70 of file mps_reader.cc.

◆ SetIsLazy()

void operations_research::glop::DataWrapper< LinearProgram >::SetIsLazy ( int row_index)
inline

Definition at line 75 of file mps_reader.cc.

◆ SetName()

void operations_research::glop::DataWrapper< LinearProgram >::SetName ( absl::string_view name)
inline

Definition at line 54 of file mps_reader.cc.

◆ SetObjectiveCoefficient()

void operations_research::glop::DataWrapper< LinearProgram >::SetObjectiveCoefficient ( int index,
double coefficient )
inline

Definition at line 100 of file mps_reader.cc.

◆ SetObjectiveDirection()

void operations_research::glop::DataWrapper< LinearProgram >::SetObjectiveDirection ( bool maximize)
inline

Definition at line 56 of file mps_reader.cc.

◆ SetObjectiveOffset()

void operations_research::glop::DataWrapper< LinearProgram >::SetObjectiveOffset ( double objective_offset)
inline

Definition at line 60 of file mps_reader.cc.

◆ SetUp()

Definition at line 49 of file mps_reader.cc.

◆ SetVariableBounds()

void operations_research::glop::DataWrapper< LinearProgram >::SetVariableBounds ( int index,
double lower_bound,
double upper_bound )
inline

Definition at line 97 of file mps_reader.cc.

◆ SetVariableTypeToInteger()

void operations_research::glop::DataWrapper< LinearProgram >::SetVariableTypeToInteger ( int index)
inline

Definition at line 90 of file mps_reader.cc.

◆ SetVariableTypeToSemiContinuous()

void operations_research::glop::DataWrapper< LinearProgram >::SetVariableTypeToSemiContinuous ( int index)
inline

Definition at line 94 of file mps_reader.cc.

◆ VariableLowerBound()

double operations_research::glop::DataWrapper< LinearProgram >::VariableLowerBound ( int index)
inline

Definition at line 103 of file mps_reader.cc.

◆ VariableUpperBound()

double operations_research::glop::DataWrapper< LinearProgram >::VariableUpperBound ( int index)
inline

Definition at line 106 of file mps_reader.cc.


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