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