|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectproblem.BasicOptimizationProblem
problem.BasicBoundConstrainedProblem
public class BasicBoundConstrainedProblem
Basic implementation of methods in BoundConstrainedProblem. Note:
Invoke the init() method before using.
| Field Summary | |
|---|---|
protected cern.colt.list.DoubleArrayList |
constraintViolations
|
protected double[] |
tmpArr
|
| Fields inherited from class problem.BasicOptimizationProblem |
|---|
formatter |
| Constructor Summary | |
|---|---|
BasicBoundConstrainedProblem()
Default constructor. |
|
BasicBoundConstrainedProblem(ScalarFunction objective)
Constructs a BasicBoundConstrainedProblem using the given objective. |
|
BasicBoundConstrainedProblem(ScalarFunction objective,
Hypercube bounds)
Constructs a BasicBoundConstrainedProblem using the given objective function and the given bounds. |
|
| Method Summary | |
|---|---|
protected void |
addConstraintViolations()
Adds bound constraint violation terms to the list of constraint violations. |
protected void |
computeConstraintViolations(double[] x)
Computes the bound constraint violations at the given input |
Hypercube |
getBounds()
Returns the bounds for this problem. |
double[] |
getConstraintViolations(double[] x)
Returns the bound-constraint violations for a given input. |
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 |
setBounds(Hypercube bounds)
Sets the bounds for this problem. |
| Methods inherited from class problem.BasicOptimizationProblem |
|---|
getInputDimension, getObjective, getOutputDimension, makeDataBlock, setInputDimension, setObjective, setOutputDimension, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface problem.OptimizationProblem |
|---|
getInputDimension, getObjective, getOutputDimension, makeDataBlock, setObjective |
| Field Detail |
|---|
protected cern.colt.list.DoubleArrayList constraintViolations
protected double[] tmpArr
| Constructor Detail |
|---|
public BasicBoundConstrainedProblem()
public BasicBoundConstrainedProblem(ScalarFunction objective)
objective - the given objective function.
public BasicBoundConstrainedProblem(ScalarFunction objective,
Hypercube bounds)
objective - the given objective function.bounds - the given bounds.| Method Detail |
|---|
public Hypercube getBounds()
OptimizationProblem
getBounds in interface OptimizationProblemgetBounds in class BasicOptimizationProblempublic double[] getConstraintViolations(double[] x)
BoundConstrainedProblem
getConstraintViolations in interface BoundConstrainedProblemx - the given input.
public void init()
OptimizationProblem
init in interface OptimizationProbleminit in class BasicOptimizationProblempublic DataPoint makeDataPoint(double[] x)
OptimizationProblemDataPoint corresponding to a given input,
containing the associated objective values and constraint violations.
makeDataPoint in interface OptimizationProblemmakeDataPoint in class BasicOptimizationProblemx - the given input.
DataPoint corresponding to this input.public void setBounds(Hypercube bounds)
BoundConstrainedProblem
setBounds in interface BoundConstrainedProblembounds - the given bounds.protected void addConstraintViolations()
protected void computeConstraintViolations(double[] x)
x - the given input.protected cern.colt.matrix.DoubleMatrix2D makeOutputs(cern.colt.matrix.DoubleMatrix2D X)
makeOutputs in class BasicOptimizationProblem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||