Package xal.extension.solver.hint
Class InitialDomain
java.lang.Object
xal.extension.solver.hint.Hint
xal.extension.solver.hint.DomainHint
xal.extension.solver.hint.InitialDomain
A hint that indicates a good initial search space
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final xal.extension.solver.hint.VariableDomainstatic final StringFields inherited from class xal.extension.solver.hint.DomainHint
LOWER_IND, UPPER_IND -
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructorInitialDomain(double defaultLowerLimit, double defaultUpperLimit) Simple range constructor with the specified range limits for each variableprotectedInitialDomain(xal.extension.solver.hint.VariableDomain domain) Primary Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFractionRange(Variable variable, double fraction) add the initial fraction range for the specified variablevoidadd the initial range for the specified variablestatic InitialDomaingetFractionalDomainHint(double fraction) Get an initial domain hint whose range for each variable is the specified fraction of the variable's limits.double[]Get the domain for the specified variable.getType()Get the type identifier of this Hint which will be used to fetch this hint in a table of hints.booleanhasVariable(Variable variable) Determine if there is an entry for the variable
-
Field Details
-
TYPE
- See Also:
-
variableDomains
-
defaultDomain
protected final xal.extension.solver.hint.VariableDomain defaultDomain
-
-
Constructor Details
-
InitialDomain
protected InitialDomain(xal.extension.solver.hint.VariableDomain domain) Primary Constructor -
InitialDomain
public InitialDomain(double defaultLowerLimit, double defaultUpperLimit) Simple range constructor with the specified range limits for each variable -
InitialDomain
public InitialDomain()Constructor
-
-
Method Details
-
getFractionalDomainHint
Get an initial domain hint whose range for each variable is the specified fraction of the variable's limits. -
getType
Get the type identifier of this Hint which will be used to fetch this hint in a table of hints. Subclasses should override this method to return a unique string identifying the hint. -
hasVariable
Determine if there is an entry for the variable- Specified by:
hasVariablein classDomainHint
-
addRange
add the initial range for the specified variable -
addFractionRange
add the initial fraction range for the specified variable -
getRange
Get the domain for the specified variable.- Specified by:
getRangein classDomainHint
-