comparison scripts/optimization/sqp.m @ 16061:69c0728def22 stable

* sqp.m: Relax tolerance in test.
author John W. Eaton <jwe@octave.org>
date Mon, 11 Feb 2013 16:22:19 -0500
parents 4d917a6a858b
children 9bfbe785e726
comparison
equal deleted inserted replaced
16046:1678d0fca146 16061:69c0728def22
758 %! -0.763643103133572; 758 %! -0.763643103133572;
759 %! -0.763643068453300]; 759 %! -0.763643068453300];
760 %! 760 %!
761 %! obj_opt = 0.0539498477702739; 761 %! obj_opt = 0.0539498477702739;
762 %! 762 %!
763 %! assert (all (abs (x-x_opt) < 5*sqrt (eps)) && abs (obj-obj_opt) < sqrt (eps)); 763 %! assert (all (abs (x-x_opt) < 8*sqrt (eps)) && abs (obj-obj_opt) < sqrt (eps));
764 764
765 %% Test input validation 765 %% Test input validation
766 %!error sqp () 766 %!error sqp ()
767 %!error sqp (1) 767 %!error sqp (1)
768 %!error sqp (1,2,3,4,5,6,7,8,9) 768 %!error sqp (1,2,3,4,5,6,7,8,9)