public class BoxOptimProblem extends Object implements ConstrainedOptimProblem
| Constructor and Description |
|---|
BoxOptimProblem(BoxOptimProblem that)
Copy constructor.
|
BoxOptimProblem(RealScalarFunction f,
BoxConstraints box)
Constructs an optimization problem with box constraints.
|
BoxOptimProblem(RealScalarFunction f,
Vector lower,
Vector upper)
Constructs an optimization problem with box constraints.
|
| Modifier and Type | Method and Description |
|---|---|
int |
dimension()
Get the number of variables.
|
RealScalarFunction |
f()
Get the objective function.
|
EqualityConstraints |
getEqualityConstraints()
Gets the equality constraints, hi(x) = 0
|
LessThanConstraints |
getLessThanConstraints()
Gets the less-than-or-equal-to constraints, gi(x) ≤
0
|
Vector |
lowerBound()
Gets the lower bounds.
|
Vector |
upperBound()
Gets the upper bounds.
|
public BoxOptimProblem(RealScalarFunction f, BoxConstraints box)
f - the objective function to be minimizedbox - the box constraintspublic BoxOptimProblem(RealScalarFunction f, Vector lower, Vector upper)
f - the objective function to be minimizedlower - the lower bound valuesupper - the upper bound valuespublic BoxOptimProblem(BoxOptimProblem that)
that - a BoxOptimProblempublic RealScalarFunction f()
OptimProblemf in interface OptimProblempublic int dimension()
OptimProblemdimension in interface OptimProblempublic LessThanConstraints getLessThanConstraints()
ConstrainedOptimProblemgetLessThanConstraints in interface ConstrainedOptimProblempublic EqualityConstraints getEqualityConstraints()
ConstrainedOptimProblemgetEqualityConstraints in interface ConstrainedOptimProblempublic Vector lowerBound()
public Vector upperBound()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.