Java Reference
Java Reference
static void loadNativeLibraries()
Definition: Loader.java:80
double value()
Returns the objective value of the best solution found so far.
Definition: MPObjective.java:131
GLOP_LINEAR_PROGRAMMING
Definition: MPSolver.java:602
Load native libraries needed for using ortools-java.
Definition: Loader.java:19
MPVariable makeNumVar(double lb, double ub, String name)
Creates a continuous variable.
Definition: MPSolver.java:193
void setCoefficient(MPVariable var, double coeff)
Sets the coefficient of the variable in the objective.
Definition: MPObjective.java:58
void setCoefficient(MPVariable var, double coeff)
Sets the coefficient of the variable on the constraint.
Definition: MPConstraint.java:59
double solutionValue()
Returns the value of the variable in the current solution.
Definition: MPVariable.java:65
The class for constraints of a Mathematical Programming (MP) model.
Definition: MPConstraint.java:18
MPConstraint makeConstraint(double lb, double ub)
Creates a linear constraint with given bounds.
Definition: MPSolver.java:250
Definition: CMakeTest.java:11
The type of problems (LP or MIP) that will be solved and the underlying solver (GLOP,...
Definition: MPSolver.java:599
A class to express a linear objective.
Definition: MPObjective.java:16
The class for variables of a Mathematical Programming (MP) model.
Definition: MPVariable.java:16
MPSolver.ResultStatus solve()
Solves the problem using the default parameter values.
Definition: MPSolver.java:290
This mathematical programming (MP) solver class is the main class though which users build and solve...
Definition: MPSolver.java:17