Modifier and Type | Method and Description |
---|---|
VarReal |
VarReal.abs()
Adds and returns a new VarReal that is constrained to be the absolute value of this variable.
|
VarReal |
ProblemDelegator.add(VarReal var) |
VarReal |
Problem.add(VarReal var)
Adds a VarReal variable "var" to the problem, and returns the newly added VarReal.
|
VarReal |
Var.asReal() |
VarReal |
ProblemDelegator.createVariableReal(java.lang.String name,
double min,
double max) |
VarReal |
Problem.createVariableReal(java.lang.String name,
double min,
double max)
Creates a VarReal with the name "name" and domain [min;max] of the default domain type,
and returns the newly added VarReal
|
VarReal |
VarReal.divide(double value)
Adds and returns a new VarReal that is constrained to be the division of this variable
by the given value, i.e.
|
VarReal |
VarReal.divide(int value)
Adds and returns a new VarReal that is constrained to be the division of this variable
by the given value, i.e.
|
VarReal |
VarReal.divide(Var var)
Adds and returns a new VarReal that is constrained to be the division of this variable
by the given variable, i.e.
|
VarReal |
VarReal.divide(VarReal var)
Adds and returns a new VarReal that is constrained to be the division of this variable
by the given variable, i.e.
|
VarReal |
ProblemDelegator.getVarReal(java.lang.String name) |
VarReal |
Problem.getVarReal(java.lang.String name)
Returns the VarReal variable with the name "name", or null if no such variable exists in the problem.
|
VarReal[] |
VarRealSelector.getVarReals()
Returns the array of constrained real variables upon which this selector was defined.
|
VarReal[] |
SearchStrategy.getVarReals()
Returns a an array of real variables that is in use by this strategy
|
VarReal[] |
ProblemDelegator.getVarReals() |
VarReal[] |
Problem.getVarReals()
Returns an array containing the VarReal variables previously added to the problem.
|
VarReal[] |
ProblemDelegator.getVarSets() |
VarReal[] |
Problem.getVarSets()
Returns an array containing the VarSet variables previously added to the problem.
|
VarReal |
VarReal.minus(double value)
Adds and returns a new VarReal that is constrained to be the difference of this variable
and the given value, i.e.
|
VarReal |
VarReal.minus(int value)
Adds and returns a new VarReal that is constrained to be the difference of this variable
and the given value, i.e.
|
VarReal |
VarReal.minus(Var var)
Adds and returns a new VarReal that is constrained to be the difference of this variable
and the given variable, i.e.
|
VarReal |
VarReal.minus(VarReal var)
Adds and returns a new VarReal that is constrained to be the difference of this variable
and the given variable, i.e.
|
VarReal |
VarReal.multiply(double value)
Adds and returns a new VarReal that is constrained to be the product of this variable
and the given value, i.e.
|
VarReal |
VarReal.multiply(int value)
Adds and returns a new VarReal that is constrained to be the product of this variable
and the given value, i.e.
|
VarReal |
VarReal.multiply(Var var)
Adds and returns a new VarReal that is constrained to be the product of this variable
and the given variable, i.e.
|
VarReal |
VarReal.multiply(VarReal var)
Adds and returns a new VarReal that is constrained to be the product of this variable
and the given variable, i.e.
|
VarReal |
VarReal.negative()
Adds and returns a new VarReal that is constrained to be the negation of this variable, i.e.
|
VarReal |
VarReal.plus(double value)
Adds and returns a new VarReal that is constrained to be the sum of this variable
and the given value, i.e.
|
VarReal |
VarReal.plus(int value)
Adds and returns a new VarReal that is constrained to be the sum of this variable
and the given value, i.e.
|
VarReal |
VarReal.plus(Var var)
Adds and returns a new VarReal that is constrained to be the sum of this variable
and the given variable, i.e.
|
VarReal |
VarReal.plus(VarReal var)
Adds and returns a new VarReal that is constrained to be the sum of this variable
and the given variable, i.e.
|
VarReal |
VarReal.power(double value)
Adds and returns a new VarReal that is constrained to be this variable raised to the power of the given value,
i.e.
|
VarReal |
VarReal.power(int value)
Adds and returns a new VarReal that is constrained to be this variable raised to the power of the given value,
i.e.
|
VarReal |
ProblemDelegator.scalProd(double[] arrayOfValues,
ConstrainedVariable[] arrayOfVariables) |
VarReal |
Problem.scalProd(double[] arrayOfValues,
ConstrainedVariable[] arrayOfVariables)
Returns a real constrained variable equal to the scalar product of an array of values "arrayOfValues"
and an array of variables "arrayOfVariables".
|
VarReal |
ProblemDelegator.scalProd(double[] arrayOfValues,
VarReal[] arrayOfVariables) |
VarReal |
Problem.scalProd(double[] arrayOfValues,
VarReal[] arrayOfVariables)
Returns a real constrained variable equal to the scalar product of an array of values "arrayOfValues"
and an array of variables "arrayOfVariables".
|
VarReal |
VarReal.sqr()
Adds and returns a new VarReal that is constrained to be the product of this variable
and itself, i.e.
|
VarReal |
ProblemDelegator.sum(VarReal[] vars) |
VarReal |
Problem.sum(VarReal[] vars)
Returns a constrained integer variable that is constrained to be
the sum of the variables in the array "vars".
|
VarReal |
ProblemDelegator.sum(VarReal var1,
VarReal var2) |
VarReal |
Problem.sum(VarReal var1,
VarReal var2)
Returns a constrained real variable that is constrained to be
the sum of the variables var1 and var2.
|
VarReal |
ProblemDelegator.sum(VarReal var1,
VarReal var2,
VarReal var3) |
VarReal |
Problem.sum(VarReal var1,
VarReal var2,
VarReal var3)
Returns a constrained real variable that is constrained to be
the sum of the variables var1, var2, and var3.
|
VarReal |
ProblemDelegator.variableReal(java.lang.String name) |
VarReal |
Problem.variableReal(java.lang.String name)
Creates a VarReal with the name "name" and default domain [Problem.REAL_MIN;Problem.REAL_MAX], adds
this variable to the problem, and returns the newly added VarReal.
|
VarReal |
ProblemDelegator.variableReal(java.lang.String name,
double min,
double max) |
VarReal |
Problem.variableReal(java.lang.String name,
double min,
double max)
Creates a VarReal with the name "name" and domain [min;max], adds
this variable to the problem, and returns the newly added VarReal.
|
Modifier and Type | Method and Description |
---|---|
VarReal |
ProblemDelegator.add(VarReal var) |
VarReal |
Problem.add(VarReal var)
Adds a VarReal variable "var" to the problem, and returns the newly added VarReal.
|
VarReal |
VarReal.divide(VarReal var)
Adds and returns a new VarReal that is constrained to be the division of this variable
by the given variable, i.e.
|
Solution |
Solver.findOptimalSolution(Objective objective,
VarReal objectiveVar)
This method is equivalent to
findOptimalSolution(Objective.MINIMIZE,objectiveVar,OptimizationStrategy.NATIVE)
It is usually overridden by an implementation
|
Solution |
Solver.findOptimalSolution(Objective objective,
VarReal objectiveVar,
OptimizationStrategy optStrategy) |
Solution |
Solver.findOptimalSolution(VarReal objectiveVar)
This method is equivalent to findOptimalSolution(Objective.MINIMIZE,objectiveVar)
|
void |
ProblemDelegator.log(VarReal[] vars) |
void |
Problem.log(VarReal[] vars)
Logs the real constrained variables contained in the array "vars".
|
VarReal |
VarReal.minus(VarReal var)
Adds and returns a new VarReal that is constrained to be the difference of this variable
and the given variable, i.e.
|
VarReal |
VarReal.multiply(VarReal var)
Adds and returns a new VarReal that is constrained to be the product of this variable
and the given variable, i.e.
|
VarReal |
VarReal.plus(VarReal var)
Adds and returns a new VarReal that is constrained to be the sum of this variable
and the given variable, i.e.
|
Constraint |
ProblemDelegator.post(double[] array,
VarReal[] vars,
java.lang.String oper,
double value) |
Constraint |
Problem.post(double[] array,
VarReal[] vars,
java.lang.String oper,
double value)
Deprecated.
|
Constraint |
ProblemDelegator.post(double[] array,
VarReal[] vars,
java.lang.String oper,
VarReal var) |
Constraint |
ProblemDelegator.post(double[] array,
VarReal[] vars,
java.lang.String oper,
VarReal var) |
Constraint |
Problem.post(double[] array,
VarReal[] vars,
java.lang.String oper,
VarReal var)
Deprecated.
|
Constraint |
Problem.post(double[] array,
VarReal[] vars,
java.lang.String oper,
VarReal var)
Deprecated.
|
Constraint |
ProblemDelegator.post(VarReal[] vars,
java.lang.String oper,
double value) |
Constraint |
Problem.post(VarReal[] vars,
java.lang.String oper,
double value)
Deprecated.
|
Constraint |
ProblemDelegator.post(VarReal[] vars,
java.lang.String oper,
VarReal var) |
Constraint |
ProblemDelegator.post(VarReal[] vars,
java.lang.String oper,
VarReal var) |
Constraint |
Problem.post(VarReal[] vars,
java.lang.String oper,
VarReal var)
Deprecated.
|
Constraint |
Problem.post(VarReal[] vars,
java.lang.String oper,
VarReal var)
Deprecated.
|
Constraint |
ProblemDelegator.post(VarReal var,
java.lang.String oper,
double value) |
Constraint |
Problem.post(VarReal var,
java.lang.String oper,
double value)
Creates and posts a constraint: var "oper" double value
|
Constraint |
ProblemDelegator.post(VarReal var,
java.lang.String oper,
int value) |
Constraint |
Problem.post(VarReal var,
java.lang.String oper,
int value)
Creates and posts a constraint: var "oper" integer value
|
Constraint |
ProblemDelegator.post(VarReal var1,
java.lang.String oper,
Var var2) |
Constraint |
Problem.post(VarReal var1,
java.lang.String oper,
Var var2)
Creates and posts a constraint: var1 "oper" var2
|
Constraint |
ProblemDelegator.post(VarReal var1,
java.lang.String oper,
VarReal var2) |
Constraint |
Problem.post(VarReal var1,
java.lang.String oper,
VarReal var2)
Creates and posts a constraint: var1 "oper" var2
|
Constraint |
ProblemDelegator.post(Var var1,
java.lang.String oper,
VarReal var2) |
Constraint |
Problem.post(Var var1,
java.lang.String oper,
VarReal var2)
Creates and posts a constraint: var1 "oper" var2
|
VarReal |
ProblemDelegator.scalProd(double[] arrayOfValues,
VarReal[] arrayOfVariables) |
VarReal |
Problem.scalProd(double[] arrayOfValues,
VarReal[] arrayOfVariables)
Returns a real constrained variable equal to the scalar product of an array of values "arrayOfValues"
and an array of variables "arrayOfVariables".
|
void |
SearchStrategy.setVarReals(VarReal[] varReals)
Defines an array of real variables that may be used (or not) by this strategy
|
VarReal |
ProblemDelegator.sum(VarReal[] vars) |
VarReal |
Problem.sum(VarReal[] vars)
Returns a constrained integer variable that is constrained to be
the sum of the variables in the array "vars".
|
VarReal |
ProblemDelegator.sum(VarReal var1,
VarReal var2) |
VarReal |
Problem.sum(VarReal var1,
VarReal var2)
Returns a constrained real variable that is constrained to be
the sum of the variables var1 and var2.
|
VarReal |
ProblemDelegator.sum(VarReal var1,
VarReal var2,
VarReal var3) |
VarReal |
Problem.sum(VarReal var1,
VarReal var2,
VarReal var3)
Returns a constrained real variable that is constrained to be
the sum of the variables var1, var2, and var3.
|