public class InitialDomain extends DomainHint
Modifier and Type | Field and Description |
---|---|
protected xal.extension.solver.hint.VariableDomain |
_defaultDomain |
protected java.util.Map<Variable,xal.extension.solver.hint.VariableDomain> |
_variableDomains |
static java.lang.String |
TYPE |
LOWER_IND, UPPER_IND
Modifier | Constructor and Description |
---|---|
|
InitialDomain()
Constructor
|
|
InitialDomain(double defaultLowerLimit,
double defaultUpperLimit)
Simple range constructor with the specified range limits for each variable
|
protected |
InitialDomain(xal.extension.solver.hint.VariableDomain domain)
Primary Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addFractionRange(Variable variable,
double fraction)
add the initial fraction range for the specified variable
|
void |
addRange(Variable variable,
double lowerLimit,
double upperLimit)
add the initial range for the specified variable
|
static InitialDomain |
getFractionalDomainHint(double fraction)
Get an initial domain hint whose range for each variable is the specified fraction of the variable's limits.
|
double[] |
getRange(Variable variable)
Get the domain for the specified variable.
|
java.lang.String |
getType()
Get the type identifier of this Hint which will be used to fetch this hint in a table of hints.
|
boolean |
hasVariable(Variable variable)
Determine if there is an entry for the variable
|
public static final java.lang.String TYPE
protected final java.util.Map<Variable,xal.extension.solver.hint.VariableDomain> _variableDomains
protected final xal.extension.solver.hint.VariableDomain _defaultDomain
protected InitialDomain(xal.extension.solver.hint.VariableDomain domain)
public InitialDomain(double defaultLowerLimit, double defaultUpperLimit)
public InitialDomain()
public static InitialDomain getFractionalDomainHint(double fraction)
public java.lang.String getType()
public boolean hasVariable(Variable variable)
hasVariable
in class DomainHint
public void addRange(Variable variable, double lowerLimit, double upperLimit)
public void addFractionRange(Variable variable, double fraction)
public double[] getRange(Variable variable)
getRange
in class DomainHint