Java Reference
Java Reference
MPVariable.java
Go to the documentation of this file.
124 return MPSolver.BasisStatus.swigToEnum(main_research_linear_solverJNI.MPVariable_basisStatus(swigCPtr, this));
int index()
Returns the index of the variable in the MPSolver::variables_.
Definition: MPVariable.java:72
Advanced usage: possible basis status values for a variable and the slack variable of a linear const...
Definition: MPSolver.java:692
static BasisStatus swigToEnum(int swigValue)
Definition: MPSolver.java:703
void setBounds(double lb, double ub)
Sets both the lower and upper bounds.
Definition: MPVariable.java:107
double reducedCost()
Advanced usage: returns the reduced cost of the variable in the current solution (only available for...
Definition: MPVariable.java:115
double solutionValue()
Returns the value of the variable in the current solution.
Definition: MPVariable.java:65
MPVariable(long cPtr, boolean cMemoryOwn)
Definition: MPVariable.java:20
void setInteger(boolean integer)
Sets the integrality requirement of the variable.
Definition: MPVariable.java:54
MPSolver.BasisStatus basisStatus()
Advanced usage: returns the basis status of the variable in the current solution (only available for...
Definition: MPVariable.java:123
The class for variables of a Mathematical Programming (MP) model.
Definition: MPVariable.java:16
This mathematical programming (MP) solver class is the main class though which users build and solve...
Definition: MPSolver.java:17