OR-Tools  8.2
DataWrapper< LinearProgram >

Detailed Description

Definition at line 244 of file mps_reader.cc.

Public Member Functions

 DataWrapper (LinearProgram *data)
 
void SetUp ()
 
void SetName (const std::string &name)
 
void SetObjectiveDirection (bool maximize)
 
int FindOrCreateConstraint (const std::string &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 (const std::string &name)
 
void SetVariableTypeToInteger (int index)
 
void SetVariableBounds (int index, double lower_bound, double upper_bound)
 
void SetObjectiveCoefficient (int index, double coefficient)
 
bool VariableIsInteger (int index)
 
double VariableLowerBound (int index)
 
double VariableUpperBound (int index)
 
absl::Status CreateIndicatorConstraint (std::string row_name, int col_index, bool col_value)
 
void CleanUp ()
 

Constructor & Destructor Documentation

◆ DataWrapper()

DataWrapper ( LinearProgram data)
inlineexplicit

Definition at line 246 of file mps_reader.cc.

Member Function Documentation

◆ CleanUp()

void CleanUp ( )
inline

Definition at line 311 of file mps_reader.cc.

◆ ConstraintLowerBound()

double ConstraintLowerBound ( int  row_index)
inline

Definition at line 275 of file mps_reader.cc.

◆ ConstraintUpperBound()

double ConstraintUpperBound ( int  row_index)
inline

Definition at line 278 of file mps_reader.cc.

◆ CreateIndicatorConstraint()

absl::Status CreateIndicatorConstraint ( std::string  row_name,
int  col_index,
bool  col_value 
)
inline

Definition at line 305 of file mps_reader.cc.

◆ FindOrCreateConstraint()

int FindOrCreateConstraint ( const std::string &  name)
inline

Definition at line 259 of file mps_reader.cc.

◆ FindOrCreateVariable()

int FindOrCreateVariable ( const std::string &  name)
inline

Definition at line 282 of file mps_reader.cc.

◆ SetConstraintBounds()

void SetConstraintBounds ( int  index,
double  lower_bound,
double  upper_bound 
)
inline

Definition at line 262 of file mps_reader.cc.

◆ SetConstraintCoefficient()

void SetConstraintCoefficient ( int  row_index,
int  col_index,
double  coefficient 
)
inline

Definition at line 265 of file mps_reader.cc.

◆ SetIsLazy()

void SetIsLazy ( int  row_index)
inline

Definition at line 270 of file mps_reader.cc.

◆ SetName()

void SetName ( const std::string &  name)
inline

Definition at line 253 of file mps_reader.cc.

◆ SetObjectiveCoefficient()

void SetObjectiveCoefficient ( int  index,
double  coefficient 
)
inline

Definition at line 292 of file mps_reader.cc.

◆ SetObjectiveDirection()

void SetObjectiveDirection ( bool  maximize)
inline

Definition at line 255 of file mps_reader.cc.

◆ SetUp()

void SetUp ( )
inline

Definition at line 248 of file mps_reader.cc.

◆ SetVariableBounds()

void SetVariableBounds ( int  index,
double  lower_bound,
double  upper_bound 
)
inline

Definition at line 289 of file mps_reader.cc.

◆ SetVariableTypeToInteger()

void SetVariableTypeToInteger ( int  index)
inline

Definition at line 285 of file mps_reader.cc.

◆ VariableIsInteger()

bool VariableIsInteger ( int  index)
inline

Definition at line 295 of file mps_reader.cc.

◆ VariableLowerBound()

double VariableLowerBound ( int  index)
inline

Definition at line 298 of file mps_reader.cc.

◆ VariableUpperBound()

double VariableUpperBound ( int  index)
inline

Definition at line 301 of file mps_reader.cc.


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