problem
Class BasicMultiObjectiveProblem

java.lang.Object
  extended by problem.BasicOptimizationProblem
      extended by problem.BasicBoundConstrainedProblem
          extended by problem.BasicMultiObjectiveProblem
All Implemented Interfaces:
BoundConstrainedProblem, MultiObjectiveProblem, OptimizationProblem

public class BasicMultiObjectiveProblem
extends BasicBoundConstrainedProblem
implements MultiObjectiveProblem

Base class for multiobjective problems.

Author:
dgorur

Field Summary
 
Fields inherited from class problem.BasicBoundConstrainedProblem
constraintViolations, tmpArr
 
Fields inherited from class problem.BasicOptimizationProblem
formatter
 
Constructor Summary
BasicMultiObjectiveProblem()
           
 
Method Summary
 double[] getConstraintViolations(double[] x)
          Returns the bound-constraint violations for a given input.
 ScalarFunction getObjective()
          NOTE! Returns null! In contrast, @see problem.BasicOptimizationProblem#getObjective()
 int getObjectiveCount()
          Returns the number of objectives.
 int getOutputDimension()
          Returns the number of outputs = number of constraints + 1.
 VectorFunction getVectorFunction()
          Returns the vector function for computing multiple objectives..
 void init()
          Initialization routine.
 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)
           
 void setObjective(ScalarFunction obj)
          Sets the objective for this problem..
 void setVectorFunction(VectorFunction vectorFunction)
          Sets the vector function for computing multiple objectives..
 
Methods inherited from class problem.BasicBoundConstrainedProblem
addConstraintViolations, computeConstraintViolations, getBounds, setBounds
 
Methods inherited from class problem.BasicOptimizationProblem
getInputDimension, makeDataBlock, setInputDimension, setOutputDimension, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface problem.BoundConstrainedProblem
setBounds
 
Methods inherited from interface problem.OptimizationProblem
getBounds, getInputDimension, makeDataBlock
 

Constructor Detail

BasicMultiObjectiveProblem

public BasicMultiObjectiveProblem()
Method Detail

getVectorFunction

public VectorFunction getVectorFunction()
Returns the vector function for computing multiple objectives..

Specified by:
getVectorFunction in interface MultiObjectiveProblem
Returns:
the vector function for computing multiple objectives..

setVectorFunction

public void setVectorFunction(VectorFunction vectorFunction)
Sets the vector function for computing multiple objectives..

Specified by:
setVectorFunction in interface MultiObjectiveProblem
Parameters:
vectorFunction - the given vectorfFunction.

getObjectiveCount

public int getObjectiveCount()
Description copied from interface: MultiObjectiveProblem
Returns the number of objectives.

Specified by:
getObjectiveCount in interface MultiObjectiveProblem
Returns:
the number of objectives.

getObjective

public ScalarFunction getObjective()
NOTE! Returns null! In contrast, @see problem.BasicOptimizationProblem#getObjective()

Specified by:
getObjective in interface OptimizationProblem
Overrides:
getObjective in class BasicOptimizationProblem
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
Overrides:
getOutputDimension in class BasicOptimizationProblem
Returns:
the output dimension.

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
Overrides:
makeDataPoint in class BasicBoundConstrainedProblem
Parameters:
x - the given input.
Returns:
a DataPoint corresponding to this input.

getConstraintViolations

public double[] getConstraintViolations(double[] x)
Description copied from interface: BoundConstrainedProblem
Returns the bound-constraint violations for a given input.

Specified by:
getConstraintViolations in interface BoundConstrainedProblem
Overrides:
getConstraintViolations in class BasicBoundConstrainedProblem
Parameters:
x - the given input.
Returns:
an array of constraint violations.

init

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

Specified by:
init in interface OptimizationProblem
Overrides:
init in class BasicBoundConstrainedProblem

setObjective

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

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

makeOutputs

protected cern.colt.matrix.DoubleMatrix2D makeOutputs(cern.colt.matrix.DoubleMatrix2D X)
Overrides:
makeOutputs in class BasicBoundConstrainedProblem