public abstract class GeneralConstraints extends Object implements Constraints
| Constructor and Description |
|---|
GeneralConstraints(Collection<RealScalarFunction> constraints)
Construct an instance of constraints from a collection of real-valued functions.
|
GeneralConstraints(RealScalarFunction... constraints)
Construct an instance of constraints from an array of real-valued functions.
|
| Modifier and Type | Method and Description |
|---|---|
int |
dimension()
Get the number of variables.
|
List<RealScalarFunction> |
getConstraints()
Get the constraints.
|
int |
size()
Get the number of constraints.
|
public GeneralConstraints(Collection<RealScalarFunction> constraints)
constraints - the constraintspublic GeneralConstraints(RealScalarFunction... constraints)
constraints - the constraintspublic List<RealScalarFunction> getConstraints()
getConstraints in interface Constraintspublic int dimension()
Constraintsdimension in interface Constraintspublic int size()
Constraintssize in interface ConstraintsCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.