Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
Google.OrTools.ModelBuilder.ModelBuilderHelper Class Reference
Inheritance diagram for Google.OrTools.ModelBuilder.ModelBuilderHelper:

Public Member Functions

void Dispose ()
 
void OverwriteModel (ModelBuilderHelper other_helper)
 
bool ReadModelFromProtoFile (string filename)
 
bool WriteModelToProtoFile (string filename)
 
bool ImportFromMpsString (string mps_string)
 
bool ImportFromMpsFile (string mps_file)
 
bool ImportFromLpString (string lp_string)
 
bool ImportFromLpFile (string lp_file)
 
int AddVar ()
 
void SetVarLowerBound (int var_index, double lb)
 
void SetVarUpperBound (int var_index, double ub)
 
void SetVarIntegrality (int var_index, bool is_integer)
 
void SetVarObjectiveCoefficient (int var_index, double coeff)
 
void SetVarName (int var_index, string name)
 
double VarLowerBound (int var_index)
 
double VarUpperBound (int var_index)
 
bool VarIsIntegral (int var_index)
 
double VarObjectiveCoefficient (int var_index)
 
string VarName (int var_index)
 
double ConstraintLowerBound (int ct_index)
 
double ConstraintUpperBound (int ct_index)
 
int AddLinearConstraint ()
 
string ConstraintName (int ct_index)
 
double[] ConstraintCoefficients (int ct_index)
 
int[] ConstraintVarIndices (int ct_index)
 
void AddConstraintTerm (int ct_index, int var_index, double coeff)
 
void ClearConstraintTerms (int ct_index)
 
void SafeAddConstraintTerm (int ct_index, int var_index, double coeff)
 
void SetConstraintCoefficient (int ct_index, int var_index, double coeff)
 
void SetConstraintLowerBound (int ct_index, double lb)
 
void SetConstraintName (int ct_index, string name)
 
void SetConstraintUpperBound (int ct_index, double ub)
 
bool EnforcedIndicatorValue (int ct_index)
 
bool IsEnforcedConstraint (int ct_index)
 
double EnforcedConstraintLowerBound (int ct_index)
 
double EnforcedConstraintUpperBound (int ct_index)
 
int AddEnforcedLinearConstraint ()
 
int EnforcedIndicatorVariableIndex (int ct_index)
 
string EnforcedConstraintName (int ct_index)
 
double[] EnforcedConstraintCoefficients (int ct_index)
 
int[] EnforcedConstraintVarIndices (int ct_index)
 
void AddEnforcedConstraintTerm (int ct_index, int var_index, double coeff)
 
void ClearEnforcedConstraintTerms (int ct_index)
 
void SafeAddEnforcedConstraintTerm (int ct_index, int var_index, double coeff)
 
void SetEnforcedConstraintCoefficient (int ct_index, int var_index, double coeff)
 
void SetEnforcedConstraintLowerBound (int ct_index, double lb)
 
void SetEnforcedConstraintName (int ct_index, string name)
 
void SetEnforcedConstraintUpperBound (int ct_index, double ub)
 
void SetEnforcedIndicatorValue (int ct_index, bool positive)
 
void SetEnforcedIndicatorVariableIndex (int ct_index, int var_index)
 
int ConstraintsCount ()
 
int VariablesCount ()
 
string Name ()
 
void SetName (string name)
 
void ClearObjective ()
 
bool Maximize ()
 
void SetMaximize (bool maximize)
 
double ObjectiveOffset ()
 
void SetObjectiveOffset (double offset)
 
void ClearHints ()
 
void AddHint (int var_index, double var_value)
 
string ExportToMpsString (bool obfuscate)
 
string ExportToLpString (bool obfuscate)
 
bool WriteToMpsFile (string filename, bool obfuscate)
 
 ModelBuilderHelper ()
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Protected Attributes

bool swigCMemOwn
 

Detailed Description

Definition at line 15 of file ModelBuilderHelper.cs.

Constructor & Destructor Documentation

◆ ModelBuilderHelper()

Google.OrTools.ModelBuilder.ModelBuilderHelper.ModelBuilderHelper ( )
inline

Definition at line 389 of file ModelBuilderHelper.cs.

Member Function Documentation

◆ AddConstraintTerm()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.AddConstraintTerm ( int ct_index,
int var_index,
double coeff )
inline

Definition at line 198 of file ModelBuilderHelper.cs.

◆ AddEnforcedConstraintTerm()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.AddEnforcedConstraintTerm ( int ct_index,
int var_index,
double coeff )
inline

Definition at line 286 of file ModelBuilderHelper.cs.

◆ AddEnforcedLinearConstraint()

int Google.OrTools.ModelBuilder.ModelBuilderHelper.AddEnforcedLinearConstraint ( )
inline

Definition at line 247 of file ModelBuilderHelper.cs.

◆ AddHint()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.AddHint ( int var_index,
double var_value )
inline

Definition at line 369 of file ModelBuilderHelper.cs.

◆ AddLinearConstraint()

int Google.OrTools.ModelBuilder.ModelBuilderHelper.AddLinearConstraint ( )
inline

Definition at line 164 of file ModelBuilderHelper.cs.

◆ AddVar()

int Google.OrTools.ModelBuilder.ModelBuilderHelper.AddVar ( )
inline

Definition at line 103 of file ModelBuilderHelper.cs.

◆ ClearConstraintTerms()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.ClearConstraintTerms ( int ct_index)
inline

Definition at line 202 of file ModelBuilderHelper.cs.

◆ ClearEnforcedConstraintTerms()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.ClearEnforcedConstraintTerms ( int ct_index)
inline

Definition at line 290 of file ModelBuilderHelper.cs.

◆ ClearHints()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.ClearHints ( )
inline

Definition at line 365 of file ModelBuilderHelper.cs.

◆ ClearObjective()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.ClearObjective ( )
inline

Definition at line 343 of file ModelBuilderHelper.cs.

◆ ConstraintCoefficients()

double[] Google.OrTools.ModelBuilder.ModelBuilderHelper.ConstraintCoefficients ( int ct_index)
inline

Definition at line 174 of file ModelBuilderHelper.cs.

◆ ConstraintLowerBound()

double Google.OrTools.ModelBuilder.ModelBuilderHelper.ConstraintLowerBound ( int ct_index)
inline

Definition at line 154 of file ModelBuilderHelper.cs.

◆ ConstraintName()

string Google.OrTools.ModelBuilder.ModelBuilderHelper.ConstraintName ( int ct_index)
inline

Definition at line 169 of file ModelBuilderHelper.cs.

◆ ConstraintsCount()

int Google.OrTools.ModelBuilder.ModelBuilderHelper.ConstraintsCount ( )
inline

Definition at line 323 of file ModelBuilderHelper.cs.

◆ ConstraintUpperBound()

double Google.OrTools.ModelBuilder.ModelBuilderHelper.ConstraintUpperBound ( int ct_index)
inline

Definition at line 159 of file ModelBuilderHelper.cs.

◆ ConstraintVarIndices()

int[] Google.OrTools.ModelBuilder.ModelBuilderHelper.ConstraintVarIndices ( int ct_index)
inline

Definition at line 186 of file ModelBuilderHelper.cs.

◆ Dispose() [1/2]

void Google.OrTools.ModelBuilder.ModelBuilderHelper.Dispose ( )
inline

Definition at line 45 of file ModelBuilderHelper.cs.

◆ Dispose() [2/2]

virtual void Google.OrTools.ModelBuilder.ModelBuilderHelper.Dispose ( bool disposing)
inlineprotectedvirtual

Definition at line 50 of file ModelBuilderHelper.cs.

◆ EnforcedConstraintCoefficients()

double[] Google.OrTools.ModelBuilder.ModelBuilderHelper.EnforcedConstraintCoefficients ( int ct_index)
inline

Definition at line 262 of file ModelBuilderHelper.cs.

◆ EnforcedConstraintLowerBound()

double Google.OrTools.ModelBuilder.ModelBuilderHelper.EnforcedConstraintLowerBound ( int ct_index)
inline

Definition at line 237 of file ModelBuilderHelper.cs.

◆ EnforcedConstraintName()

string Google.OrTools.ModelBuilder.ModelBuilderHelper.EnforcedConstraintName ( int ct_index)
inline

Definition at line 257 of file ModelBuilderHelper.cs.

◆ EnforcedConstraintUpperBound()

double Google.OrTools.ModelBuilder.ModelBuilderHelper.EnforcedConstraintUpperBound ( int ct_index)
inline

Definition at line 242 of file ModelBuilderHelper.cs.

◆ EnforcedConstraintVarIndices()

int[] Google.OrTools.ModelBuilder.ModelBuilderHelper.EnforcedConstraintVarIndices ( int ct_index)
inline

Definition at line 274 of file ModelBuilderHelper.cs.

◆ EnforcedIndicatorValue()

bool Google.OrTools.ModelBuilder.ModelBuilderHelper.EnforcedIndicatorValue ( int ct_index)
inline

Definition at line 227 of file ModelBuilderHelper.cs.

◆ EnforcedIndicatorVariableIndex()

int Google.OrTools.ModelBuilder.ModelBuilderHelper.EnforcedIndicatorVariableIndex ( int ct_index)
inline

Definition at line 252 of file ModelBuilderHelper.cs.

◆ ExportToLpString()

string Google.OrTools.ModelBuilder.ModelBuilderHelper.ExportToLpString ( bool obfuscate)
inline

Definition at line 378 of file ModelBuilderHelper.cs.

◆ ExportToMpsString()

string Google.OrTools.ModelBuilder.ModelBuilderHelper.ExportToMpsString ( bool obfuscate)
inline

Definition at line 373 of file ModelBuilderHelper.cs.

◆ ImportFromLpFile()

bool Google.OrTools.ModelBuilder.ModelBuilderHelper.ImportFromLpFile ( string lp_file)
inline

Definition at line 97 of file ModelBuilderHelper.cs.

◆ ImportFromLpString()

bool Google.OrTools.ModelBuilder.ModelBuilderHelper.ImportFromLpString ( string lp_string)
inline

Definition at line 91 of file ModelBuilderHelper.cs.

◆ ImportFromMpsFile()

bool Google.OrTools.ModelBuilder.ModelBuilderHelper.ImportFromMpsFile ( string mps_file)
inline

Definition at line 85 of file ModelBuilderHelper.cs.

◆ ImportFromMpsString()

bool Google.OrTools.ModelBuilder.ModelBuilderHelper.ImportFromMpsString ( string mps_string)
inline

Definition at line 79 of file ModelBuilderHelper.cs.

◆ IsEnforcedConstraint()

bool Google.OrTools.ModelBuilder.ModelBuilderHelper.IsEnforcedConstraint ( int ct_index)
inline

Definition at line 232 of file ModelBuilderHelper.cs.

◆ Maximize()

bool Google.OrTools.ModelBuilder.ModelBuilderHelper.Maximize ( )
inline

Definition at line 347 of file ModelBuilderHelper.cs.

◆ Name()

string Google.OrTools.ModelBuilder.ModelBuilderHelper.Name ( )
inline

Definition at line 333 of file ModelBuilderHelper.cs.

◆ ObjectiveOffset()

double Google.OrTools.ModelBuilder.ModelBuilderHelper.ObjectiveOffset ( )
inline

Definition at line 356 of file ModelBuilderHelper.cs.

◆ OverwriteModel()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.OverwriteModel ( ModelBuilderHelper other_helper)
inline

Definition at line 62 of file ModelBuilderHelper.cs.

◆ ReadModelFromProtoFile()

bool Google.OrTools.ModelBuilder.ModelBuilderHelper.ReadModelFromProtoFile ( string filename)
inline

Definition at line 67 of file ModelBuilderHelper.cs.

◆ SafeAddConstraintTerm()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.SafeAddConstraintTerm ( int ct_index,
int var_index,
double coeff )
inline

Definition at line 206 of file ModelBuilderHelper.cs.

◆ SafeAddEnforcedConstraintTerm()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.SafeAddEnforcedConstraintTerm ( int ct_index,
int var_index,
double coeff )
inline

Definition at line 294 of file ModelBuilderHelper.cs.

◆ SetConstraintCoefficient()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.SetConstraintCoefficient ( int ct_index,
int var_index,
double coeff )
inline

Definition at line 210 of file ModelBuilderHelper.cs.

◆ SetConstraintLowerBound()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.SetConstraintLowerBound ( int ct_index,
double lb )
inline

Definition at line 214 of file ModelBuilderHelper.cs.

◆ SetConstraintName()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.SetConstraintName ( int ct_index,
string name )
inline

Definition at line 218 of file ModelBuilderHelper.cs.

◆ SetConstraintUpperBound()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.SetConstraintUpperBound ( int ct_index,
double ub )
inline

Definition at line 223 of file ModelBuilderHelper.cs.

◆ SetEnforcedConstraintCoefficient()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.SetEnforcedConstraintCoefficient ( int ct_index,
int var_index,
double coeff )
inline

Definition at line 298 of file ModelBuilderHelper.cs.

◆ SetEnforcedConstraintLowerBound()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.SetEnforcedConstraintLowerBound ( int ct_index,
double lb )
inline

Definition at line 302 of file ModelBuilderHelper.cs.

◆ SetEnforcedConstraintName()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.SetEnforcedConstraintName ( int ct_index,
string name )
inline

Definition at line 306 of file ModelBuilderHelper.cs.

◆ SetEnforcedConstraintUpperBound()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.SetEnforcedConstraintUpperBound ( int ct_index,
double ub )
inline

Definition at line 311 of file ModelBuilderHelper.cs.

◆ SetEnforcedIndicatorValue()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.SetEnforcedIndicatorValue ( int ct_index,
bool positive )
inline

Definition at line 315 of file ModelBuilderHelper.cs.

◆ SetEnforcedIndicatorVariableIndex()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.SetEnforcedIndicatorVariableIndex ( int ct_index,
int var_index )
inline

Definition at line 319 of file ModelBuilderHelper.cs.

◆ SetMaximize()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.SetMaximize ( bool maximize)
inline

Definition at line 352 of file ModelBuilderHelper.cs.

◆ SetName()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.SetName ( string name)
inline

Definition at line 338 of file ModelBuilderHelper.cs.

◆ SetObjectiveOffset()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.SetObjectiveOffset ( double offset)
inline

Definition at line 361 of file ModelBuilderHelper.cs.

◆ SetVarIntegrality()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.SetVarIntegrality ( int var_index,
bool is_integer )
inline

Definition at line 116 of file ModelBuilderHelper.cs.

◆ SetVarLowerBound()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.SetVarLowerBound ( int var_index,
double lb )
inline

Definition at line 108 of file ModelBuilderHelper.cs.

◆ SetVarName()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.SetVarName ( int var_index,
string name )
inline

Definition at line 124 of file ModelBuilderHelper.cs.

◆ SetVarObjectiveCoefficient()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.SetVarObjectiveCoefficient ( int var_index,
double coeff )
inline

Definition at line 120 of file ModelBuilderHelper.cs.

◆ SetVarUpperBound()

void Google.OrTools.ModelBuilder.ModelBuilderHelper.SetVarUpperBound ( int var_index,
double ub )
inline

Definition at line 112 of file ModelBuilderHelper.cs.

◆ VariablesCount()

int Google.OrTools.ModelBuilder.ModelBuilderHelper.VariablesCount ( )
inline

Definition at line 328 of file ModelBuilderHelper.cs.

◆ VarIsIntegral()

bool Google.OrTools.ModelBuilder.ModelBuilderHelper.VarIsIntegral ( int var_index)
inline

Definition at line 139 of file ModelBuilderHelper.cs.

◆ VarLowerBound()

double Google.OrTools.ModelBuilder.ModelBuilderHelper.VarLowerBound ( int var_index)
inline

Definition at line 129 of file ModelBuilderHelper.cs.

◆ VarName()

string Google.OrTools.ModelBuilder.ModelBuilderHelper.VarName ( int var_index)
inline

Definition at line 149 of file ModelBuilderHelper.cs.

◆ VarObjectiveCoefficient()

double Google.OrTools.ModelBuilder.ModelBuilderHelper.VarObjectiveCoefficient ( int var_index)
inline

Definition at line 144 of file ModelBuilderHelper.cs.

◆ VarUpperBound()

double Google.OrTools.ModelBuilder.ModelBuilderHelper.VarUpperBound ( int var_index)
inline

Definition at line 134 of file ModelBuilderHelper.cs.

◆ WriteModelToProtoFile()

bool Google.OrTools.ModelBuilder.ModelBuilderHelper.WriteModelToProtoFile ( string filename)
inline

Definition at line 73 of file ModelBuilderHelper.cs.

◆ WriteToMpsFile()

bool Google.OrTools.ModelBuilder.ModelBuilderHelper.WriteToMpsFile ( string filename,
bool obfuscate )
inline

Definition at line 383 of file ModelBuilderHelper.cs.

Member Data Documentation

◆ swigCMemOwn

bool Google.OrTools.ModelBuilder.ModelBuilderHelper.swigCMemOwn
protected

Definition at line 17 of file ModelBuilderHelper.cs.


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