qp_ex1

qp_ex1()

qp_ex1() - Example of quadratic program (QP) optimization.

Example of solving the following QP problem, first using opt_model and opt_model.solve(), then directly using qps_master().

(18)minx12xTQx

subject to

(19)lAxu
(20)xminxxmax

where

(21)Q=[81341421325441412]
(22)l=[4],A=[61544900],u=[42]
(23)xmin=[00],xmax=[02]