Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Classes | |
class | ModelSolverException |
Model solver class
Definition at line 20 of file ModelSolver.java.
com.google.ortools.modelbuilder.ModelSolver.ModelSolver | ( | String | solverName | ) |
Creates the solver with the supplied solver backend.
Definition at line 29 of file ModelSolver.java.
com.google.ortools.modelbuilder.ModelSolver.ModelSolver | ( | String | solverName | ) |
Creates the solver with the supplied solver backend.
Definition at line 29 of file ModelSolver.java.
void com.google.ortools.modelbuilder.ModelSolver.enableOutput | ( | boolean | enable | ) |
Enables or disables the underlying solver output.
Definition at line 49 of file ModelSolver.java.
void com.google.ortools.modelbuilder.ModelSolver.enableOutput | ( | boolean | enable | ) |
Enables or disables the underlying solver output.
Definition at line 49 of file ModelSolver.java.
double com.google.ortools.modelbuilder.ModelSolver.getActivity | ( | LinearConstraint | ct | ) |
Checks that the solver has found a solution, and returns the activity of the given constraint.
Definition at line 136 of file ModelSolver.java.
double com.google.ortools.modelbuilder.ModelSolver.getActivity | ( | LinearConstraint | ct | ) |
Checks that the solver has found a solution, and returns the activity of the given constraint.
Definition at line 136 of file ModelSolver.java.
double com.google.ortools.modelbuilder.ModelSolver.getBestObjectiveBound | ( | ) |
Checks that the solver has found a solution, and returns the objective value.
Definition at line 93 of file ModelSolver.java.
double com.google.ortools.modelbuilder.ModelSolver.getBestObjectiveBound | ( | ) |
Checks that the solver has found a solution, and returns the objective value.
Definition at line 93 of file ModelSolver.java.
double com.google.ortools.modelbuilder.ModelSolver.getDualValue | ( | LinearConstraint | ct | ) |
Checks that the solver has found a solution, and returns the dual value of the given constraint.
Definition at line 125 of file ModelSolver.java.
double com.google.ortools.modelbuilder.ModelSolver.getDualValue | ( | LinearConstraint | ct | ) |
Checks that the solver has found a solution, and returns the dual value of the given constraint.
Definition at line 125 of file ModelSolver.java.
double com.google.ortools.modelbuilder.ModelSolver.getObjectiveValue | ( | ) |
Checks that the solver has found a solution, and returns the objective value.
Definition at line 84 of file ModelSolver.java.
double com.google.ortools.modelbuilder.ModelSolver.getObjectiveValue | ( | ) |
Checks that the solver has found a solution, and returns the objective value.
Definition at line 84 of file ModelSolver.java.
double com.google.ortools.modelbuilder.ModelSolver.getReducedCost | ( | Variable | var | ) |
Checks that the solver has found a solution, and returns the reduced cost of the given variable.
Definition at line 113 of file ModelSolver.java.
double com.google.ortools.modelbuilder.ModelSolver.getReducedCost | ( | Variable | var | ) |
Checks that the solver has found a solution, and returns the reduced cost of the given variable.
Definition at line 113 of file ModelSolver.java.
double com.google.ortools.modelbuilder.ModelSolver.getUserTime | ( | ) |
Returns the user time since the creation of the solver.
Definition at line 155 of file ModelSolver.java.
double com.google.ortools.modelbuilder.ModelSolver.getUserTime | ( | ) |
Returns the user time since the creation of the solver.
Definition at line 155 of file ModelSolver.java.
double com.google.ortools.modelbuilder.ModelSolver.getValue | ( | Variable | var | ) |
Checks that the solver has found a solution, and returns the value of the given variable.
Definition at line 102 of file ModelSolver.java.
double com.google.ortools.modelbuilder.ModelSolver.getValue | ( | Variable | var | ) |
Checks that the solver has found a solution, and returns the value of the given variable.
Definition at line 102 of file ModelSolver.java.
double com.google.ortools.modelbuilder.ModelSolver.getWallTime | ( | ) |
Returns the elapsed time since the creation of the solver.
Definition at line 150 of file ModelSolver.java.
double com.google.ortools.modelbuilder.ModelSolver.getWallTime | ( | ) |
Returns the elapsed time since the creation of the solver.
Definition at line 150 of file ModelSolver.java.
boolean com.google.ortools.modelbuilder.ModelSolver.hasResponse | ( | ) |
Returns true if solve() was called, and a response was returned.
Definition at line 74 of file ModelSolver.java.
boolean com.google.ortools.modelbuilder.ModelSolver.hasResponse | ( | ) |
Returns true if solve() was called, and a response was returned.
Definition at line 74 of file ModelSolver.java.
boolean com.google.ortools.modelbuilder.ModelSolver.hasSolution | ( | ) |
Returns true if solve() was called, and a solution was returned.
Definition at line 79 of file ModelSolver.java.
boolean com.google.ortools.modelbuilder.ModelSolver.hasSolution | ( | ) |
Returns true if solve() was called, and a solution was returned.
Definition at line 79 of file ModelSolver.java.
boolean com.google.ortools.modelbuilder.ModelSolver.interruptSolve | ( | ) |
Tries to interrupt the solve. Returns true if the feature is supported.
Definition at line 69 of file ModelSolver.java.
boolean com.google.ortools.modelbuilder.ModelSolver.interruptSolve | ( | ) |
Tries to interrupt the solve. Returns true if the feature is supported.
Definition at line 69 of file ModelSolver.java.
void com.google.ortools.modelbuilder.ModelSolver.setLogCallback | ( | Consumer< String > | cb | ) |
Sets the log callback for the solver.
Definition at line 145 of file ModelSolver.java.
void com.google.ortools.modelbuilder.ModelSolver.setLogCallback | ( | Consumer< String > | cb | ) |
Sets the log callback for the solver.
Definition at line 145 of file ModelSolver.java.
void com.google.ortools.modelbuilder.ModelSolver.setSolverSpecificParameters | ( | String | parameters | ) |
Sets solver specific parameters as string.
Definition at line 59 of file ModelSolver.java.
void com.google.ortools.modelbuilder.ModelSolver.setSolverSpecificParameters | ( | String | parameters | ) |
Sets solver specific parameters as string.
Definition at line 59 of file ModelSolver.java.
void com.google.ortools.modelbuilder.ModelSolver.setTimeLimit | ( | Duration | limit | ) |
Sets the time limit for the solve in seconds.
Definition at line 54 of file ModelSolver.java.
void com.google.ortools.modelbuilder.ModelSolver.setTimeLimit | ( | Duration | limit | ) |
Sets the time limit for the solve in seconds.
Definition at line 54 of file ModelSolver.java.
SolveStatus com.google.ortools.modelbuilder.ModelSolver.solve | ( | ModelBuilder | model | ) |
Solves given model, and returns the status of the response.
Definition at line 35 of file ModelSolver.java.
SolveStatus com.google.ortools.modelbuilder.ModelSolver.solve | ( | ModelBuilder | model | ) |
Solves given model, and returns the status of the response.
Definition at line 35 of file ModelSolver.java.
boolean com.google.ortools.modelbuilder.ModelSolver.solverIsSupported | ( | ) |
Returns whether solver specified during the ctor was found and correctly installed.
Definition at line 64 of file ModelSolver.java.
boolean com.google.ortools.modelbuilder.ModelSolver.solverIsSupported | ( | ) |
Returns whether solver specified during the ctor was found and correctly installed.
Definition at line 64 of file ModelSolver.java.