problem
Interface InequalityConstrainedProblem

All Superinterfaces:
BoundConstrainedProblem, OptimizationProblem
All Known Implementing Classes:
BasicInequalityConstrainedProblem, VectorFunctionToProblem

public interface InequalityConstrainedProblem
extends BoundConstrainedProblem

Methods to add and remove inequality constraints. By convention, these are assumed to be of the form g(x) <= 0.

Author:
dgorur

Method Summary
 boolean addInequalityConstraint(ScalarFunction con)
          Adds the given ScalarFunction as an inequality constraint.
 int getConstraintCount()
          Returns the number of constraints that this problem has.
 java.util.ArrayList<ScalarFunction> getConstraints()
          Returns the list of constraints as an ArrayList.
 boolean removeInequalityConstraint(ScalarFunction con)
          Removes the given ScalarFunction from the list of constraints.
 
Methods inherited from interface problem.BoundConstrainedProblem
getConstraintViolations, setBounds
 
Methods inherited from interface problem.OptimizationProblem
getBounds, getInputDimension, getObjective, getOutputDimension, init, makeDataBlock, makeDataPoint, setObjective
 

Method Detail

addInequalityConstraint

boolean addInequalityConstraint(ScalarFunction con)
Adds the given ScalarFunction as an inequality constraint.

Parameters:
con - the given ScalarFunction.
Returns:
true
See Also:
ArrayList.add(Object)

getConstraintCount

int getConstraintCount()
Returns the number of constraints that this problem has.

Returns:
the number of constraint functions.

getConstraints

java.util.ArrayList<ScalarFunction> getConstraints()
Returns the list of constraints as an ArrayList.

Returns:
the list of constraints.

removeInequalityConstraint

boolean removeInequalityConstraint(ScalarFunction con)
Removes the given ScalarFunction from the list of constraints.

Parameters:
con - the given ScalarFunction.
Returns:
true if the given constraint was found in the list of constraints.
See Also:
ArrayList.remove(Object)