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()
OptimProblem
f
in interface OptimProblem
public int dimension()
OptimProblem
dimension
in interface OptimProblem
public LessThanConstraints getLessThanConstraints()
ConstrainedOptimProblem
getLessThanConstraints
in interface ConstrainedOptimProblem
public EqualityConstraints getEqualityConstraints()
ConstrainedOptimProblem
getEqualityConstraints
in interface ConstrainedOptimProblem
public Vector lowerBound()
public Vector upperBound()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.