|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectproblem.BasicOptimizationProblem
problem.BasicBoundConstrainedProblem
problem.BasicInequalityConstrainedProblem
public class BasicInequalityConstrainedProblem
Basic implementation of methods in InequalityConstrainedProblem.
Note: Invoke the init() method before using.
| Field Summary |
|---|
| Fields inherited from class problem.BasicBoundConstrainedProblem |
|---|
constraintViolations, tmpArr |
| Fields inherited from class problem.BasicOptimizationProblem |
|---|
formatter |
| Constructor Summary | |
|---|---|
BasicInequalityConstrainedProblem()
Default constructor. |
|
| Method Summary | |
|---|---|
protected void |
addConstraintViolations()
Adds bound constraint violation terms to the list of constraint violations. |
boolean |
addInequalityConstraint(ScalarFunction con)
Adds the given ScalarFunction as an inequality constraint. |
protected void |
computeConstraintViolations(double[] x)
Computes inequality constraint violations in addition to bound constraint violations. |
int |
getConstraintCount()
Returns the number of constraints that this problem has. |
java.util.ArrayList<ScalarFunction> |
getConstraints()
Returns the list of constraints as an ArrayList. |
void |
init()
Initialization routine. |
boolean |
removeInequalityConstraint(ScalarFunction con)
Removes the given ScalarFunction from the list of constraints. |
| Methods inherited from class problem.BasicBoundConstrainedProblem |
|---|
getBounds, getConstraintViolations, makeDataPoint, makeOutputs, setBounds |
| 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.BoundConstrainedProblem |
|---|
getConstraintViolations, setBounds |
| Methods inherited from interface problem.OptimizationProblem |
|---|
getBounds, getInputDimension, getObjective, getOutputDimension, makeDataBlock, makeDataPoint, setObjective |
| Constructor Detail |
|---|
public BasicInequalityConstrainedProblem()
| Method Detail |
|---|
public boolean addInequalityConstraint(ScalarFunction con)
InequalityConstrainedProblemScalarFunction as an inequality constraint.
addInequalityConstraint in interface InequalityConstrainedProblemcon - the given ScalarFunction.
trueArrayList.add(Object)public int getConstraintCount()
InequalityConstrainedProblem
getConstraintCount in interface InequalityConstrainedProblempublic java.util.ArrayList<ScalarFunction> getConstraints()
InequalityConstrainedProblem
getConstraints in interface InequalityConstrainedProblempublic void init()
OptimizationProblem
init in interface OptimizationProbleminit in class BasicBoundConstrainedProblempublic boolean removeInequalityConstraint(ScalarFunction con)
InequalityConstrainedProblemScalarFunction from the list of constraints.
removeInequalityConstraint in interface InequalityConstrainedProblemcon - the given ScalarFunction.
true if the given constraint was found in the list of
constraints.ArrayList.remove(Object)protected void addConstraintViolations()
BasicBoundConstrainedProblem
addConstraintViolations in class BasicBoundConstrainedProblemprotected void computeConstraintViolations(double[] x)
computeConstraintViolations in class BasicBoundConstrainedProblemx - the given input.BasicBoundConstrainedProblem.computeConstraintViolations(double[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||