#include <QpGenVars.h>
Inheritance diagram for QpGenVars:
Public Methods | |
QpGenVars (OoqpVector *x_in, OoqpVector *s_in, OoqpVector *y_in, OoqpVector *z_in, OoqpVector *v_in, OoqpVector *gamma_in, OoqpVector *w_in, OoqpVector *phi_in, OoqpVector *t_in, OoqpVector *lambda_in, OoqpVector *u_in, OoqpVector *pi_in, OoqpVector *ixlow_in, OoqpVector *ixupp_in, OoqpVector *iclow_in, OoqpVector *icupp_in) | |
QpGenVars (LinearAlgebraPackage *la, int nx_, int my_, int mz_, OoqpVector *ixlow, OoqpVector *ixupp, OoqpVector *iclow, OoqpVector *icupp) | |
virtual double | mu () |
virtual double | mustep (Variables *step_in, double alpha) |
virtual void | saxpy (Variables *b, double alpha) |
virtual void | negate () |
virtual double | stepbound (Variables *b) |
virtual double | findBlocking (Variables *step, double &primalValue, double &primalStep, double &dualValue, double &dualStep, int &firstOrSecond) |
virtual void | interiorPoint (double alpha, double beta) |
virtual void | shiftBoundVariables (double alpha, double beta) |
virtual int | isInteriorPoint () |
virtual double | violation () |
virtual void | print () |
virtual void | copy (Variables *b) |
virtual double | onenorm () |
virtual double | infnorm () |
|
constructor in which the data and variable pointers are set to point to the given arguments |
|
constructor that creates variables objects of specified dimensions. |
|
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. |
|
sets components of (u,t,v,w) to alpha and of (lambda,pi,phi,gamma) to beta Implements Variables. |
|
check whether this is an interior point. Useful as a sanity check. |
|
computes mu = (t'lambda +u'pi + v'gamma + w'phi)/(mclow+mcupp+nxlow+nxupp) 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. |
|
given variables b, compute a <- a + alpha b, where a are the variables in this class Implements Variables. |
|
add alpha to components of (u,t,v,w) and beta to components of (lambda,pi,phi,gamma) 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,u,v,w,lambda,pi,phi,gamma) + alpha * (b->t,b->u,b->v,b->w,b->lambda,b->pi,b->phi,b->gamma) >= 0.
Implements Variables. |
|
The amount by which the current variables violate the non-negativity constraints. Implements Variables. |