Does sqp example work ?
John W. Eaton
jwe at bevo.che.wisc.edu
Fri Jan 11 12:23:50 CST 2008
On 11-Jan-2008, Dupuis wrote:
| Hello,
| I'm trying to use sqp, and the example given in the help does not work.
| Instead, I get
| [x, obj, info, iter, nf, lambda] = sqp (x0, @phi, @g, [])
| x =
| -1.80000
| 1.70000
| 1.90000
| -0.80000
| -0.80000
|
| obj = 0.020930
| info = 101
| iter = 1
| nf = 44
| lambda =
|
| 2.1964e-314
| 5.3050e-313
| 3.3471e-265
|
| I tried setting the path to the strict minimum, i.e.
| path(genpath("/usr/share/octave/3.0.0/m"))
| addpath('/usr/lib/octave/3.0.0/oct/i486-pc-linux-gnu')
| then clearing everything, same result.
| Platform: PC with AMD Ahtlon, Debian: octave3.0/sid uptodate 3.0.0-1 (i386)
|
| Could someone check if the example is correct ?
Please try the following patch. I think it would still be possible to
avoid calculating Y only when it is really needed, but the reverse of
the attached patch is not quite the way to do it.
I also added a test to the sqp function based on the example in the
doc string.
Thanks,
jwe
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
Url: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080111/632c5b77/attachment.ksh
More information about the Bug-octave
mailing list