![]() |
Prev | Next |
ok = qp_interior(
level, c, C, g, G, epsilon, maxitr, xin, xout, yout, sout
)
template <class Vector> bool qp_interior( size_t level , const Vector& c , const Vector& C , const Vector& g , const Vector& G , double epsilon , size_t maxitr , const Vector& xin , Vector& xout , Vector& yout , Vector& sout )
Vector
is a
simple vector with elements of type double
.
level == 0
,
no tracing is printed.
If
level == 1
,
a trace of the qp_interior
optimization is printed.
n
and is the initial point for the algorithm.
It must strictly satisfy the constraints; i.e.,
C x - c < 0
for
x = xin
.
n
and
the input value of its elements does no matter.
Upon return it is the primal variables corresponding to the problem solution.
m
and
the input value of its elements does no matter.
Upon return it the components of
yout
are all positive
and it is the dual variables corresponding to the program solution.
m
and
the input value of its elements does no matter.
Upon return it the components of
sout
are all positive
and it is the slack variables corresponding to the program solution.
ok
is true, convergence is obtained; i.e.,
| F_0 (xout , yout, sout) |_\infty \leq epsilon
where
| v |_\infty
is the maximum absolute element
for the vector
v
and
F_\mu (x, y, s)
is defined below.
qp_interior
.