#include <QpBoundVars.h>
Inheritance diagram for QpBoundVars:
Public Methods | |
QpBoundVars (QpBound *f, QpBoundData *prob) | |
QpBoundVars (QpBound *f, QpBoundData *prob, OoqpVector *x, OoqpVector *t, OoqpVector *v, OoqpVector *tau, OoqpVector *nu) | |
virtual double | mu () |
virtual double | mustep (Variables *step, double alpha) |
virtual void | saxpy (Variables *b, double alpha) |
virtual void | negate () |
virtual double | findBlocking (Variables *step, double &primalValue, double &primalStep, double &dualValue, double &dualStep, int &firstOrSecond) |
virtual double | stepbound (Variables *b) |
virtual void | interiorPoint (double alpha, double beta) |
virtual void | shiftBoundVariables (double alpha, double beta) |
virtual double | violation () |
virtual void | print () |
virtual void | copy (Variables *b) |
virtual double | onenorm () |
virtual double | infnorm () |
Public Attributes | |
OoqpVectorHandle | x |
OoqpVectorHandle | t |
OoqpVectorHandle | v |
OoqpVectorHandle | tau |
OoqpVectorHandle | nu |
OoqpVectorHandle | index_lower |
OoqpVectorHandle | index_upper |
int | nx |
int | nlower |
int | nupper |
|
constructor that allocates its own storage |
|
constructor that uses storage already allocated |
|
copy the variables Implements Variables. |
|
Performs the same function as stepbound, and supplies additional information about which component of the nonnegative variables is responsible for restricting alpha. In terms of the abstract formulation, the components have the following meanings.
Implements Variables. |
|
compute the inf-norm of the variables Implements Variables. |
|
set components of (t,v) to alpha and of (tau,nu) to beta Implements Variables. |
|
calculates the complementarity gap Implements Variables. |
|
compute the complementarity gap resulting from a step of length "alpha" along direction "step" Implements Variables. |
|
negate the value of all the variables in this structure Implements Variables. |
|
compute the 1-norm of the variables Implements Variables. |
|
print the variables Reimplemented from Variables. |
|
adds (alpha b) to the current variables Implements Variables. |
|
add alpha to components of (t,v) and beta to components of (tau,nu) Implements Variables. |
|
calculate the largest alpha in (0,1] such that the nonnegative variables stay nonnegative in the given search direction. In the general QP problem formulation, this is the largest value of alpha such that (t,v,tau,nu) + alpha * (b->t,b->v,b->tau,b->nu) >= 0.
Implements Variables. |
|
The amount by which the current variables violate the non-negativity constraints. Implements Variables. |
|
lower bound index vector |
|
upper bound index vector |
|
actual number of lower bounds |
|
upper bound multipliers |
|
actual number of upper bounds |
|
problem dimension |
|
lower bound slacks |
|
lower bound multipliers |
|
upper bound slacks |
|
primal variables |