|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.optimization.constrained.general.Constraints
public abstract class Constraints
This class defines a set of constraints for a constrained optimization problem. The constraints define a feasible regions for the domain values of the objective function.
Here, the constraints are represented as a set of real valued functions that can take different signs: =, ≤, ≥.
E.g., hi(x) = 0 gj(x) ≤ 0
The conditions are further specified in the sub-classes.
| Constructor Summary | |
|---|---|
Constraints(RealScalarFunction... constraints)
Construct a constraint set for a constrained optimization problem. |
|
| Method Summary | |
|---|---|
void |
addConstraint(RealScalarFunction c)
Add a constraint to the set. |
RealScalarFunction[] |
constraints()
Get the set of constraints. |
int |
nConstraints()
Get the number of constraints. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Constraints(RealScalarFunction... constraints)
constraints - the constraints| Method Detail |
|---|
public int nConstraints()
public RealScalarFunction[] constraints()
public void addConstraint(RealScalarFunction c)
c - an constraint
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||