Mercurial > octave
diff scripts/optimization/sqp.m @ 26332:d4211810202a
qp and sqp: Non-fixed tolerance for qp (bug #53506).
* __qp__.cc (F__qp__): Add the tolerance as an input parameter.
* qp.m: Add tolerance "TolFun" to the options struct.
* sqp.m: The qp subproblem now accepts the tolerance passed to sqp as a
parameter.
author | Maor Shutman <maorus12@gmail.com> |
---|---|
date | Fri, 04 May 2018 19:18:46 +0300 |
parents | 34cc6edf2041 |
children | fff643eb3514 |
line wrap: on
line diff
--- a/scripts/optimization/sqp.m Sun Dec 30 20:53:52 2018 -0800 +++ b/scripts/optimization/sqp.m Fri May 04 19:18:46 2018 +0300 @@ -417,7 +417,7 @@ old_lambda = lambda; [p, obj_qp, INFO, lambda] = qp (x, B, c, F, g, [], [], d, C, - Inf (size (d))); + Inf (size (d)), struct ("TolX", tol)); info = INFO.info;