Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Types | |
enum | OptimizationProblemType { CLP_LINEAR_PROGRAMMING = 0 , GLPK_LINEAR_PROGRAMMING = 1 , GLOP_LINEAR_PROGRAMMING = 2 , PDLP_LINEAR_PROGRAMMING = 8 , SCIP_MIXED_INTEGER_PROGRAMMING = 3 , GLPK_MIXED_INTEGER_PROGRAMMING = 4 , CBC_MIXED_INTEGER_PROGRAMMING = 5 , BOP_INTEGER_PROGRAMMING = 12 , SAT_INTEGER_PROGRAMMING = 14 , GUROBI_LINEAR_PROGRAMMING = 6 , GUROBI_MIXED_INTEGER_PROGRAMMING = 7 , CPLEX_LINEAR_PROGRAMMING = 10 , CPLEX_MIXED_INTEGER_PROGRAMMING = 11 , XPRESS_LINEAR_PROGRAMMING = 101 , XPRESS_MIXED_INTEGER_PROGRAMMING = 102 } |
enum | ResultStatus { OPTIMAL , FEASIBLE , INFEASIBLE , UNBOUNDED , ABNORMAL , MODEL_INVALID , NOT_SOLVED = 6 } |
enum | BasisStatus { FREE = 0 , AT_LOWER_BOUND , AT_UPPER_BOUND , FIXED_VALUE , BASIC } |
Public Member Functions | |
Variable[] | MakeVarArray (int count, double lb, double ub, bool integer) |
Variable[] | MakeVarArray (int count, double lb, double ub, bool integer, string var_name) |
Variable[,] | MakeVarMatrix (int rows, int cols, double lb, double ub, bool integer) |
Variable[,] | MakeVarMatrix (int rows, int cols, double lb, double ub, bool integer, string name) |
Variable[] | MakeNumVarArray (int count, double lb, double ub) |
Variable[] | MakeNumVarArray (int count, double lb, double ub, string var_name) |
Variable[,] | MakeNumVarMatrix (int rows, int cols, double lb, double ub) |
Variable[,] | MakeNumVarMatrix (int rows, int cols, double lb, double ub, string name) |
Variable[] | MakeIntVarArray (int count, double lb, double ub) |
Variable[] | MakeIntVarArray (int count, double lb, double ub, string var_name) |
Variable[,] | MakeIntVarMatrix (int rows, int cols, double lb, double ub) |
Variable[,] | MakeIntVarMatrix (int rows, int cols, double lb, double ub, string name) |
Variable[] | MakeBoolVarArray (int count) |
Variable[] | MakeBoolVarArray (int count, string var_name) |
Variable[,] | MakeBoolVarMatrix (int rows, int cols) |
Variable[,] | MakeBoolVarMatrix (int rows, int cols, string name) |
Constraint | Add (LinearConstraint constraint) |
void | Minimize (LinearExpr expr) |
void | Maximize (LinearExpr expr) |
void | Minimize (Variable var) |
void | Maximize (Variable var) |
void | Dispose () |
Solver (string name, Solver.OptimizationProblemType problem_type) | |
bool | IsMip () |
void | Clear () |
int | NumVariables () |
MPVariableVector | variables () |
Variable | Variable (int index) |
Variable | LookupVariableOrNull (string var_name) |
Variable | MakeVar (double lb, double ub, bool integer, string name) |
Variable | MakeNumVar (double lb, double ub, string name) |
Variable | MakeIntVar (double lb, double ub, string name) |
Variable | MakeBoolVar (string name) |
int | NumConstraints () |
MPConstraintVector | constraints () |
Constraint | Constraint (int index) |
Constraint | LookupConstraintOrNull (string constraint_name) |
Constraint | MakeConstraint (double lb, double ub) |
Constraint | MakeConstraint () |
Constraint | MakeConstraint (double lb, double ub, string name) |
Constraint | MakeConstraint (string name) |
Objective | Objective () |
Solver.ResultStatus | Solve () |
Solver.ResultStatus | Solve (MPSolverParameters param) |
double[] | ComputeConstraintActivities () |
bool | VerifySolution (double tolerance, bool log_errors) |
void | Reset () |
bool | InterruptSolve () |
bool | SetSolverSpecificParametersAsString (string parameters) |
void | EnableOutput () |
void | SuppressOutput () |
long | Iterations () |
long | Nodes () |
string | SolverVersion () |
double | ComputeExactConditionNumber () |
void | SetTimeLimit (long time_limit_milliseconds) |
long | WallTime () |
string | ExportModelAsLpFormat (bool obfuscated) |
string | ExportModelAsMpsFormat (bool fixed_format, bool obfuscated) |
void | SetHint (MPVariableVector variables, double[] values) |
bool | SetNumThreads (int num_theads) |
Static Public Member Functions | |
static Solver | CreateSolver (string solver_id) |
static bool | SupportsProblemType (Solver.OptimizationProblemType problem_type) |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
Protected Attributes | |
bool | swigCMemOwn |
Patch the MPSolver class to:
|
inline |
|
inline |
Definition at line 183 of file SolverHelper.cs.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlineprotectedvirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 146 of file SolverHelper.cs.
|
inline |
Definition at line 151 of file SolverHelper.cs.
|
inline |
Definition at line 156 of file SolverHelper.cs.
|
inline |
Definition at line 169 of file SolverHelper.cs.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 109 of file SolverHelper.cs.
|
inline |
Definition at line 114 of file SolverHelper.cs.
|
inline |
Definition at line 119 of file SolverHelper.cs.
|
inline |
Definition at line 132 of file SolverHelper.cs.
|
inline |
|
inline |
Definition at line 72 of file SolverHelper.cs.
|
inline |
Definition at line 77 of file SolverHelper.cs.
|
inline |
Definition at line 82 of file SolverHelper.cs.
|
inline |
Definition at line 95 of file SolverHelper.cs.
|
inline |
|
inline |
Definition at line 25 of file SolverHelper.cs.
|
inline |
Definition at line 35 of file SolverHelper.cs.
|
inline |
Definition at line 45 of file SolverHelper.cs.
|
inline |
Definition at line 58 of file SolverHelper.cs.
|
inline |
Definition at line 201 of file SolverHelper.cs.
|
inline |
Definition at line 221 of file SolverHelper.cs.
|
inline |
Definition at line 188 of file SolverHelper.cs.
|
inline |
Definition at line 214 of file SolverHelper.cs.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |