problem
Class BasicOptimizationProblem

java.lang.Object
  extended by problem.BasicOptimizationProblem
All Implemented Interfaces:
OptimizationProblem
Direct Known Subclasses:
BasicBoundConstrainedProblem

public class BasicOptimizationProblem
extends java.lang.Object
implements OptimizationProblem

Implements the methods in OptimizationProblem.

Author:
dgorur

Field Summary
protected  java.util.Formatter formatter
           
 
Constructor Summary
BasicOptimizationProblem()
           
 
Method Summary
 Hypercube getBounds()
          Returns the bounds for this problem.
 int getInputDimension()
          Returns the dimensionality of the inputs to this problem.
 ScalarFunction getObjective()
          Returns the objective for this problem, which is a ScalarFunction.
 int getOutputDimension()
          Returns the number of outputs = number of constraints + 1.
 void init()
          Initialization routine.
 DataBlock makeDataBlock(cern.colt.matrix.DoubleMatrix2D X)
          Constructs and returns a DataBlock corresponding to the given set of inputs, specified row-wise in a DoubleMatrix2D.
 DataPoint makeDataPoint(double[] x)
          Constructs and returns a DataPoint corresponding to a given input, containing the associated objective values and constraint violations.
protected  cern.colt.matrix.DoubleMatrix2D makeOutputs(cern.colt.matrix.DoubleMatrix2D X)
           
protected  void setInputDimension(int inputDimension)
          Sets the input dimension of this problem.
 void setObjective(ScalarFunction obj)
          Sets the objective for this problem..
protected  void setOutputDimension(int outputDimension)
          Sets the output dimension.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

formatter

protected java.util.Formatter formatter
Constructor Detail

BasicOptimizationProblem

public BasicOptimizationProblem()
Method Detail

getBounds

public Hypercube getBounds()
Description copied from interface: OptimizationProblem
Returns the bounds for this problem.

Specified by:
getBounds in interface OptimizationProblem
Returns:
the bounds for this problem.

getInputDimension

public int getInputDimension()
Description copied from interface: OptimizationProblem
Returns the dimensionality of the inputs to this problem.

Specified by:
getInputDimension in interface OptimizationProblem
Returns:
the input dimension.

getObjective

public ScalarFunction getObjective()
Description copied from interface: OptimizationProblem
Returns the objective for this problem, which is a ScalarFunction.

Specified by:
getObjective in interface OptimizationProblem
Returns:
the objective for this problem.

getOutputDimension

public int getOutputDimension()
Description copied from interface: OptimizationProblem
Returns the number of outputs = number of constraints + 1.

Specified by:
getOutputDimension in interface OptimizationProblem
Returns:
the output dimension.

init

public void init()
Description copied from interface: OptimizationProblem
Initialization routine.

Specified by:
init in interface OptimizationProblem

makeDataBlock

public DataBlock makeDataBlock(cern.colt.matrix.DoubleMatrix2D X)
Description copied from interface: OptimizationProblem
Constructs and returns a DataBlock corresponding to the given set of inputs, specified row-wise in a DoubleMatrix2D.

Specified by:
makeDataBlock in interface OptimizationProblem
Parameters:
X - the given matrix of inputs.
Returns:
a DataBlock containing these inputs and the corresponding objective and constraint values.

makeDataPoint

public DataPoint makeDataPoint(double[] x)
Description copied from interface: OptimizationProblem
Constructs and returns a DataPoint corresponding to a given input, containing the associated objective values and constraint violations.

Specified by:
makeDataPoint in interface OptimizationProblem
Parameters:
x - the given input.
Returns:
a DataPoint corresponding to this input.

setObjective

public void setObjective(ScalarFunction obj)
Description copied from interface: OptimizationProblem
Sets the objective for this problem..

Specified by:
setObjective in interface OptimizationProblem
Parameters:
obj - the given objective.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

makeOutputs

protected cern.colt.matrix.DoubleMatrix2D makeOutputs(cern.colt.matrix.DoubleMatrix2D X)

setInputDimension

protected void setInputDimension(int inputDimension)
Sets the input dimension of this problem.

Parameters:
inputDimension - the given input dimension.

setOutputDimension

protected void setOutputDimension(int outputDimension)
Sets the output dimension.

Parameters:
outputDimension - the given output dimension.