Modifier and Type | Method and Description |
---|---|
RealVar[] |
Model.retrieveRealVars()
Iterate over the variable of
this and build an array that contains the RealVar only. |
Modifier and Type | Method and Description |
---|---|
double[] |
Solution.getRealBounds(RealVar r)
Get the bounds of r in this solution.
|
void |
Solution.setRealBounds(RealVar var,
double[] val)
Set the value of variable v in this solution
|
Modifier and Type | Method and Description |
---|---|
default RealConstraint |
IRealConstraintFactory.realIbexGenericConstraint(String functions,
RealVar... rvars)
Creates a RealConstraint to model one or more continuous functions, separated with semi-colon ";"
A function is a string declared using the following format: - the '{i}' tag defines a variable, where 'i' is an explicit index the array of variables vars ,
- one or more operators :'+,-,*,/,=,<,>,<=,>=,exp( ),ln( ),max( ),min( ),abs( ),cos( ), sin( ),...' |
Constructor and Description |
---|
IntEqRealConstraint(IntVar[] intVars,
RealVar[] realVars,
double epsilon)
Channeling between integer variables intVars and real variables realVars.
|
IntEqRealConstraint(IntVar intVar,
RealVar realVar,
double epsilon)
Channeling between an integer variable intVar and a real variable realVar.
|
RealConstraint(String functions,
RealVar... rvars)
Make a new RealConstraint to model one or more continuous functions, separated with semi-colon ";"
A function is a string declared using the following format: - the '{i}' tag defines a variable, where 'i' is an explicit index the array of variables vars ,
- one or more operators :'+,-,*,/,=,<,>,<=,>=,exp( ),ln( ),max( ),min( ),abs( ),cos( ), sin( ),...' |
RealConstraint(String name,
String functions,
int option,
RealVar... rvars)
Make a new RealConstraint to model one or more continuous functions, separated with semi-colon ";"
A function is a string declared using the following format: - the '{i}' tag defines a variable, where 'i' is an explicit index the array of variables vars ,
- one or more operators :'+,-,*,/,=,<,>,<=,>=,exp( ),ln( ),max( ),min( ),abs( ),cos( ), sin( ),...' |
RealConstraint(String name,
String functions,
RealVar... rvars)
Make a new RealConstraint to model one or more continuous functions, separated with semi-colon ";"
A function is a string declared using the following format: - the '{i}' tag defines a variable, where 'i' is an explicit index the array of variables vars ,
- one or more operators :'+,-,*,/,=,<,>,<=,>=,exp( ),ln( ),max( ),min( ),abs( ),cos( ), sin( ),...' |
RealPropagator(String functions,
RealVar[] vars,
int options)
Create a propagator on real variables, propagated using IBEX.
|
Modifier and Type | Method and Description |
---|---|
RealVar |
UnCArExpression.realVar(double p) |
RealVar |
CArExpression.realVar(double precision) |
RealVar |
BiCArExpression.realVar(double p) |
Modifier and Type | Method and Description |
---|---|
static IObjectiveManager<RealVar> |
ObjectiveFactory.makeObjectiveManager(RealVar objective,
ResolutionPolicy policy,
double precision)
Define the variable to optimize (maximize or minimize)
By default, the manager uses
IObjectiveManager.setStrictDynamicCut() to avoid exploring worse solutions. |
Modifier and Type | Method and Description |
---|---|
static IObjectiveManager<RealVar> |
ObjectiveFactory.makeObjectiveManager(RealVar objective,
ResolutionPolicy policy,
double precision)
Define the variable to optimize (maximize or minimize)
By default, the manager uses
IObjectiveManager.setStrictDynamicCut() to avoid exploring worse solutions. |
Modifier and Type | Method and Description |
---|---|
static RealStrategy |
Search.realVarSearch(RealVar... reals)
strategy to branch on real variables by choosing sequentially the next variable domain
to split in two, wrt the middle value
|
static RealStrategy |
Search.realVarSearch(VariableSelector<RealVar> varS,
RealValueSelector valS,
RealVar... rvars)
Generic strategy to branch on real variables, based on domain splitting
|
Modifier and Type | Method and Description |
---|---|
static RealStrategy |
Search.realVarSearch(VariableSelector<RealVar> varS,
RealValueSelector valS,
RealVar... rvars)
Generic strategy to branch on real variables, based on domain splitting
|
Modifier and Type | Method and Description |
---|---|
RealDecision |
DecisionMaker.makeRealDecision(RealVar var,
double value)
|
void |
RealDecision.set(RealVar v,
double value)
Instantiate this decision with the parameters
|
Modifier and Type | Method and Description |
---|---|
double |
RealValueSelector.selectValue(RealVar var)
Selects and returns the value to constrained chosen variable with.
|
double |
RealDomainMin.selectValue(RealVar var) |
double |
RealDomainMiddle.selectValue(RealVar var) |
double |
RealDomainMax.selectValue(RealVar var) |
Modifier and Type | Method and Description |
---|---|
Decision<RealVar> |
RealStrategy.computeDecision(RealVar variable) |
Modifier and Type | Method and Description |
---|---|
Decision<RealVar> |
RealStrategy.computeDecision(RealVar variable) |
Constructor and Description |
---|
RealStrategy(RealVar[] scope,
VariableSelector<RealVar> varselector,
RealValueSelector valueIterator) |
Constructor and Description |
---|
RealStrategy(RealVar[] scope,
VariableSelector<RealVar> varselector,
RealValueSelector valueIterator) |
Modifier and Type | Method and Description |
---|---|
default RealVar |
IViewFactory.realIntView(IntVar var,
double precision)
Creates a real view of var, i.e. a RealVar of domain equal to the domain of var.
|
default RealVar[] |
IViewFactory.realIntViewArray(IntVar[] ints,
double precision)
Creates an array of real views for a set of integer variables
This should be used to include an integer variable in an expression/constraint requiring RealVar
|
default RealVar[][] |
IViewFactory.realIntViewMatrix(IntVar[][] ints,
double precision)
Creates a matrix of real views for a matrix of integer variables
This should be used to include an integer variable in an expression/constraint requiring RealVar
|
default RealVar |
RealVar.realVar(double p) |
default RealVar |
IVariableFactory.realVar(double value)
Create a constant real variable equal to value
|
default RealVar |
IVariableFactory.realVar(double value,
double precision)
Creates a constant real variable equal to value
|
default RealVar |
IVariableFactory.realVar(double lb,
double ub,
double precision)
Creates a real variable, taking its domain in [lb, ub]
|
default RealVar |
IVariableFactory.realVar(String name,
double value)
Create a constant real variable equal to value
|
default RealVar |
IVariableFactory.realVar(String name,
double lb,
double ub,
double precision)
Creates a real variable, taking its domain in [lb, ub]
|
default RealVar[] |
IVariableFactory.realVarArray(int size,
double lb,
double ub,
double precision)
Creates an array of size real variables, each of domain [lb, ub]
|
default RealVar[] |
IVariableFactory.realVarArray(String name,
int size,
double lb,
double ub,
double precision)
Creates an array of size real variables, each of domain [lb, ub]
|
default RealVar[][] |
IVariableFactory.realVarMatrix(int dim1,
int dim2,
double lb,
double ub,
double precision)
Creates a matrix of dim1*dim2 real variables, each of domain [lb, ub]
|
default RealVar[][] |
IVariableFactory.realVarMatrix(String name,
int dim1,
int dim2,
double lb,
double ub,
double precision)
Creates a matrix of dim1*dim2 real variables, each of domain [lb, ub]
|
Modifier and Type | Class and Description |
---|---|
class |
FixedRealVarImpl
Project: choco-solver.
|
class |
RealVarImpl
An implementation of RealVar, variable for continuous constraints (solved using IBEX).
|
Modifier and Type | Class and Description |
---|---|
class |
RealView
|
Modifier and Type | Method and Description |
---|---|
static double[] |
VariableUtils.boundsForAddition(RealVar... vars) |
static double[] |
VariableUtils.boundsForAtan2(RealVar x,
RealVar y) |
static double[] |
VariableUtils.boundsForDivision(RealVar x,
RealVar y) |
static double[] |
VariableUtils.boundsForMaximum(RealVar... vars) |
static double[] |
VariableUtils.boundsForMinimum(RealVar... vars) |
static double[] |
VariableUtils.boundsForMultiplication(RealVar x,
RealVar y) |
static double[] |
VariableUtils.boundsForPow(RealVar x,
RealVar y) |
static double[] |
VariableUtils.boundsForSubstraction(RealVar x,
RealVar y) |
Copyright © 2017. All rights reserved.