public class ConstrainedOptimProblemImpl1 extends Object implements ConstrainedOptimProblem
hi(x) = 0 gi(x) ≤ 0
Constructor and Description |
---|
ConstrainedOptimProblemImpl1(ConstrainedOptimProblemImpl1 that)
Copy constructor.
|
ConstrainedOptimProblemImpl1(RealScalarFunction f,
EqualityConstraints equal,
LessThanConstraints less)
Constructs a constrained optimization problem.
|
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
|
public ConstrainedOptimProblemImpl1(RealScalarFunction f, EqualityConstraints equal, LessThanConstraints less)
f
- the objective function to be minimizedequal
- the collection of equality constraints; if the collection is
empty, use null
less
- the collection of less-than-or-equal-to constraints; if the
collection is empty, use null
public ConstrainedOptimProblemImpl1(ConstrainedOptimProblemImpl1 that)
that
- a ConstrainedOptimProblemImpl1
public int dimension()
OptimProblem
dimension
in interface OptimProblem
public RealScalarFunction f()
OptimProblem
f
in interface OptimProblem
public LessThanConstraints getLessThanConstraints()
ConstrainedOptimProblem
getLessThanConstraints
in interface ConstrainedOptimProblem
public EqualityConstraints getEqualityConstraints()
ConstrainedOptimProblem
getEqualityConstraints
in interface ConstrainedOptimProblem
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.