gov.sns.tools.optimizer
Class Variable

java.lang.Object
  |
  +--gov.sns.tools.optimizer.Variable

public class Variable
extends java.lang.Object

Variable represents a variable whose value is to be found for the optimal solution among other variables. A variable specifies a starting value, a lower limit and an upper limit. A variable is immutable and does not itself contain its present value assignment. Rather the value assignments are found in TrialPoint. This class provides the backward compatibility with the gov.sns.tools.optimization package.

See Also:
TrialPoint

Field Summary
protected  double lowerLimit
           
protected  double startValue
           
protected  double upperLimit
           
 
Constructor Summary
Variable(double aStartValue, double aLowerLimit, double anUpperLimit)
          Creates a new instance of Variable
 
Method Summary
 double lowerLimit()
          Get the lower limit.
 double startValue()
          Get the starting value (i.e.
 double upperLimit()
          Get the upper limit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startValue

protected double startValue

lowerLimit

protected double lowerLimit

upperLimit

protected double upperLimit
Constructor Detail

Variable

public Variable(double aStartValue,
                double aLowerLimit,
                double anUpperLimit)
Creates a new instance of Variable

Method Detail

startValue

public double startValue()
Get the starting value (i.e. initial guess).

Returns:
the starting value.

lowerLimit

public double lowerLimit()
Get the lower limit.

Returns:
the lower limit.

upperLimit

public double upperLimit()
Get the upper limit.

Returns:
the upper limit.