public class QPProblem extends Object implements ConstrainedOptimProblem
Constructor and Description |
---|
QPProblem(QPProblem that)
Copy constructor.
|
QPProblem(QuadraticFunction f,
LinearEqualityConstraints equal,
LinearGreaterThanConstraints greater)
Construct a quadratic programming problem with linear equality and greater-than-or-equal-to constraints.
|
QPProblem(QuadraticFunction f,
LinearEqualityConstraints equal,
LinearGreaterThanConstraints greater,
LinearLessThanConstraints less)
Construct a quadratic programming problem.
|
QPProblem(QuadraticFunction f,
LinearEqualityConstraints equal,
LinearLessThanConstraints less)
Construct a quadratic programming problem with linear equality and less-than-or-equal-to constraints.
|
QPProblem(QuadraticFunction f,
LinearGreaterThanConstraints greater)
Construct a quadratic programming problem with linear greater-than-or-equal-to constraints.
|
QPProblem(QuadraticFunction f,
LinearGreaterThanConstraints greater,
LinearLessThanConstraints less)
Construct a quadratic programming problem with linear inequality constraints.
|
QPProblem(QuadraticFunction f,
LinearLessThanConstraints less)
Construct a quadratic programming problem with linear less-than-or-equal-to constraints.
|
Modifier and Type | Method and Description |
---|---|
ImmutableMatrix |
A()
Get the coefficients of the inequality constraints: A as in \(Ax \geq b\).
|
ImmutableMatrix |
Aeq()
Get the coefficients of the equality constraints: Aeq as in \(A_{eq}x = b_{eq}\).
|
ImmutableVector |
b()
Get the values of the inequality constraints: b as in \(Ax \geq b\).
|
ImmutableVector |
beq()
Get the values of the equality constraints: beq as in \(A_{eq}x = b_{eq}\).
|
int |
dimension()
Get the number of variables.
|
QuadraticFunction |
f()
Get the objective function.
|
LinearEqualityConstraints |
getEqualityConstraints()
Gets the equality constraints, hi(x) = 0
|
LinearGreaterThanConstraints |
getGreaterThanConstraints()
Get the set of linear greater-than-or-equal-to constraints.
|
LinearLessThanConstraints |
getLessThanConstraints()
Gets the less-than-or-equal-to constraints, gi(x) ≤
0
|
public QPProblem(QuadraticFunction f, LinearEqualityConstraints equal, LinearGreaterThanConstraints greater, LinearLessThanConstraints less)
f
- the quadratic objective function to be minimizedequal
- the linear equality constraintsgreater
- the linear greater-than-or-equal-to constraintsless
- the linear less-than-or-equal-to constraintspublic QPProblem(QuadraticFunction f, LinearGreaterThanConstraints greater, LinearLessThanConstraints less)
f
- the quadratic objective function to be minimizedgreater
- the linear greater-than-or-equal-to constraintsless
- the linear less-than-or-equal-to constraintspublic QPProblem(QuadraticFunction f, LinearEqualityConstraints equal, LinearGreaterThanConstraints greater)
f
- the quadratic objective function to be minimizedequal
- the linear equality constraintsgreater
- the linear greater-than-or-equal-to constraintspublic QPProblem(QuadraticFunction f, LinearGreaterThanConstraints greater)
f
- the quadratic objective function to be minimizedgreater
- the linear greater-than-or-equal-to constraintspublic QPProblem(QuadraticFunction f, LinearEqualityConstraints equal, LinearLessThanConstraints less)
f
- the quadratic objective function to be minimizedequal
- the linear equality constraintsless
- the linear less-than-or-equal-to constraintspublic QPProblem(QuadraticFunction f, LinearLessThanConstraints less)
f
- the quadratic objective function to be minimizedless
- the linear less-than-or-equal-to constraintspublic QPProblem(QPProblem that)
that
- an quadratic programming problempublic int dimension()
OptimProblem
dimension
in interface OptimProblem
public QuadraticFunction f()
OptimProblem
f
in interface OptimProblem
public LinearGreaterThanConstraints getGreaterThanConstraints()
public LinearLessThanConstraints getLessThanConstraints()
ConstrainedOptimProblem
getLessThanConstraints
in interface ConstrainedOptimProblem
public LinearEqualityConstraints getEqualityConstraints()
ConstrainedOptimProblem
getEqualityConstraints
in interface ConstrainedOptimProblem
public ImmutableMatrix A()
public ImmutableVector b()
public ImmutableMatrix Aeq()
public ImmutableVector beq()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.