Mercurial > octave
comparison scripts/optimization/sqp.m @ 31493:c05ef94a2bbc stable
test: Increase tolerance in test for sqp for higher deviations on macOS.
* scripts/optimization/sqp.m: Increase tolerance in test to pass with higher
deviations on macOS.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Mon, 21 Nov 2022 08:46:07 +0100 |
parents | e1788b1a315f |
children | 972dcc46bb41 597f3ee61a48 |
comparison
equal
deleted
inserted
replaced
31491:212e9ad58f69 | 31493:c05ef94a2bbc |
---|---|
770 %! -0.763643103133572; | 770 %! -0.763643103133572; |
771 %! -0.763643068453300]; | 771 %! -0.763643068453300]; |
772 %! | 772 %! |
773 %! obj_opt = 0.0539498477702739; | 773 %! obj_opt = 0.0539498477702739; |
774 %! | 774 %! |
775 %! assert (x, x_opt, 8*sqrt (eps)); | 775 %! assert (x, x_opt, 10 * sqrt (eps)); |
776 %! assert (obj, obj_opt, sqrt (eps)); | 776 %! assert (obj, obj_opt, sqrt (eps)); |
777 | 777 |
778 ## Test input validation | 778 ## Test input validation |
779 %!error <Invalid call> sqp () | 779 %!error <Invalid call> sqp () |
780 %!error <Invalid call> sqp (1) | 780 %!error <Invalid call> sqp (1) |