|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectproblem.BasicOptimizationProblem
public class BasicOptimizationProblem
Implements the methods in OptimizationProblem.
| 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 |
|---|
protected java.util.Formatter formatter
| Constructor Detail |
|---|
public BasicOptimizationProblem()
| Method Detail |
|---|
public Hypercube getBounds()
OptimizationProblem
getBounds in interface OptimizationProblempublic int getInputDimension()
OptimizationProblem
getInputDimension in interface OptimizationProblempublic ScalarFunction getObjective()
OptimizationProblemScalarFunction.
getObjective in interface OptimizationProblempublic int getOutputDimension()
OptimizationProblem
getOutputDimension in interface OptimizationProblempublic void init()
OptimizationProblem
init in interface OptimizationProblempublic DataBlock makeDataBlock(cern.colt.matrix.DoubleMatrix2D X)
OptimizationProblemDataBlock corresponding to the given set
of inputs, specified row-wise in a DoubleMatrix2D.
makeDataBlock in interface OptimizationProblemX - the given matrix of inputs.
public DataPoint makeDataPoint(double[] x)
OptimizationProblemDataPoint corresponding to a given input,
containing the associated objective values and constraint violations.
makeDataPoint in interface OptimizationProblemx - the given input.
DataPoint corresponding to this input.public void setObjective(ScalarFunction obj)
OptimizationProblem
setObjective in interface OptimizationProblemobj - the given objective.public java.lang.String toString()
toString in class java.lang.Objectprotected cern.colt.matrix.DoubleMatrix2D makeOutputs(cern.colt.matrix.DoubleMatrix2D X)
protected void setInputDimension(int inputDimension)
inputDimension - the given input dimension.protected void setOutputDimension(int outputDimension)
outputDimension - the given output dimension.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||