hep.aida.ref.optimizer
Class VariableSettings
- java.lang.Object
-
- hep.aida.ref.optimizer.VariableSettings
-
- All Implemented Interfaces:
- IVariableSettings
public class VariableSettings extends java.lang.Object implements IVariableSettings
-
-
Constructor Summary
Constructors Constructor and Description VariableSettings(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanisBound()Check if a variable is bounded.booleanisFixed()Check if a variable is fixed.doublelowerBound()Get the lower bound.java.lang.Stringname()Get the name of the variable to which settings apply.voidremoveBounds()Reset the bounds.voidreset()Reset the IVariableSetting ot its defaults.voidsetBounds(double lo, double up)Set the bounds for the variable.voidsetFixed(boolean isFixed)Set the fixed/unfixed status of a variable.voidsetStepSize(double step)Set the step size for this variable.voidsetValue(double value)Set the current value of this variable.doublestepSize()The step size for this variable.doubleupperBound()Get the upper bound.doublevalue()The current value for this variable.
-
-
-
Method Detail
-
name
public java.lang.String name()
Description copied from interface:IVariableSettingsGet the name of the variable to which settings apply.- Specified by:
namein interfaceIVariableSettings- Returns:
- The name.
-
stepSize
public double stepSize()
Description copied from interface:IVariableSettingsThe step size for this variable.- Specified by:
stepSizein interfaceIVariableSettings- Returns:
- the step size.
-
upperBound
public double upperBound()
Description copied from interface:IVariableSettingsGet the upper bound.- Specified by:
upperBoundin interfaceIVariableSettings- Returns:
- The upper bound.
-
lowerBound
public double lowerBound()
Description copied from interface:IVariableSettingsGet the lower bound.- Specified by:
lowerBoundin interfaceIVariableSettings- Returns:
- The lower bound.
-
isBound
public boolean isBound()
Description copied from interface:IVariableSettingsCheck if a variable is bounded. A variable is bounded if either the upper bound or the lower bound are not infinity.- Specified by:
isBoundin interfaceIVariableSettings- Returns:
trueif the variable is bounded.
-
isFixed
public boolean isFixed()
Description copied from interface:IVariableSettingsCheck if a variable is fixed.- Specified by:
isFixedin interfaceIVariableSettings- Returns:
trueif the variable is fixed.
-
setStepSize
public void setStepSize(double step)
Description copied from interface:IVariableSettingsSet the step size for this variable.- Specified by:
setStepSizein interfaceIVariableSettings- Parameters:
step- The step size.
-
setBounds
public void setBounds(double lo, double up)Description copied from interface:IVariableSettingsSet the bounds for the variable.- Specified by:
setBoundsin interfaceIVariableSettings- Parameters:
lo- The lower bound.up- The upper bound.
-
removeBounds
public void removeBounds()
Description copied from interface:IVariableSettingsReset the bounds.- Specified by:
removeBoundsin interfaceIVariableSettings
-
setFixed
public void setFixed(boolean isFixed)
Description copied from interface:IVariableSettingsSet the fixed/unfixed status of a variable.- Specified by:
setFixedin interfaceIVariableSettings- Parameters:
isFixed- The fixed status of a variable.
-
reset
public void reset()
Description copied from interface:IVariableSettingsReset the IVariableSetting ot its defaults.- Specified by:
resetin interfaceIVariableSettings
-
value
public double value()
Description copied from interface:IVariableSettingsThe current value for this variable.- Specified by:
valuein interfaceIVariableSettings- Returns:
- The current value.
-
setValue
public void setValue(double value)
Description copied from interface:IVariableSettingsSet the current value of this variable.- Specified by:
setValuein interfaceIVariableSettings- Parameters:
value- The current value.
-
-
DMelt 3.0 © DataMelt by jWork.ORG