@(@\newcommand{\W}[1]{ \; #1 \; }
\newcommand{\R}[1]{ {\rm #1} }
\newcommand{\B}[1]{ {\bf #1} }
\newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} }
\newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} }
\newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} }
\newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }@)@
This is cppad-20221105 documentation. Here is a link to its
current documentation
.
abs_normal qp_interior: Example and Test
Problem
Our original problem is
@[@
\R{minimize} \; | u - 1| \; \R{w.r.t} \; u \in \B{R}
@]@
We reformulate this as the following problem
@[@
\begin{array}{rlr}
\R{minimize} & v & \R{w.r.t} \; (u,v) \in \B{R}^2 \\
\R{subject \; to} & u - 1 \leq v \\
& 1 - u \leq v
\end{array}
@]@
This is equivalent to
@[@
\begin{array}{rlr}
\R{minimize}
& (0, 1) \cdot (u, v)^T & \R{w.r.t} \; (u,v) \in \B{R}^2 \\
\R{subject \; to}
&
\left( \begin{array}{cc} 1 & -1 \\ -1 & -1 \end{array} \right)
\left( \begin{array}{c} u \\ v \end{array} \right)
+
\left( \begin{array}{c} -1 \\ 1 \end{array} \right)
\leq
0
\end{array}
@]@
which is in the form expected by qp_interior
.