problem
Interface OptimizationProblem

All Known Subinterfaces:
BoundConstrainedProblem, InequalityConstrainedProblem, MultiObjectiveProblem
All Known Implementing Classes:
BasicBoundConstrainedProblem, BasicInequalityConstrainedProblem, BasicMultiObjectiveProblem, BasicOptimizationProblem, VectorFunctionToProblem

public interface OptimizationProblem

Top-level interface for optimization problems.

Author:
dgorur

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.
 void setObjective(ScalarFunction obj)
          Sets the objective for this problem..
 

Method Detail

getBounds

Hypercube getBounds()
Returns the bounds for this problem.

Returns:
the bounds for this problem.

getInputDimension

int getInputDimension()
Returns the dimensionality of the inputs to this problem.

Returns:
the input dimension.

getObjective

ScalarFunction getObjective()
Returns the objective for this problem, which is a ScalarFunction.

Returns:
the objective for this problem.

getOutputDimension

int getOutputDimension()
Returns the number of outputs = number of constraints + 1.

Returns:
the output dimension.

init

void init()
Initialization routine.


makeDataBlock

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.

Parameters:
X - the given matrix of inputs.
Returns:
a DataBlock containing these inputs and the corresponding objective and constraint values.

makeDataPoint

DataPoint makeDataPoint(double[] x)
Constructs and returns a DataPoint corresponding to a given input, containing the associated objective values and constraint violations.

Parameters:
x - the given input.
Returns:
a DataPoint corresponding to this input.

setObjective

void setObjective(ScalarFunction obj)
Sets the objective for this problem..

Parameters:
obj - the given objective.