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