help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sqp doesn't work on Octave windows version


From: John W. Eaton
Subject: sqp doesn't work on Octave windows version
Date: Mon, 21 Aug 2006 16:09:18 -0400

On  2-Aug-2006, Nitish Ranjan wrote:

| Hi,
| 
| I am using Octave 2.1.73 on windows and have been trying to run the
| following code (it comes with sqp help)
| 
| function r = g (x)
| 
|           r = [ sumsq(x)-10; x(2)*x(3)-5*x(4)*x(5); x(1)^3+x(2)^3+1];
| 
| endfunction
| 
| 
| function obj = phi (x)
| 
|           obj = exp(prod(x)) - 0.5*(x(1)^3+x(2)^3+1)^2;
| endfunction
| 
| x0 = [-1.8; 1.7; 1.9; -0.8; -0.8];
| 
| [x, obj, info, iter, nf, lambda] = sqp (x0, @phi, @g, [])
| 
| I get the following error.
| error: `__qp__' undefined near line 267 column 34
| error: evaluating if command near line 263, column 5
| error: evaluating if command near line 79, column 3
| error: called from `qp' in file `/octave_files/qp.m'
| error: evaluating while command near line 279, column 5
| error: evaluating if command near line 175, column 3
| error: called from `sqp' in file `/octave_files/sqp.m'
| 
| Since sqp and qp didn't come with the default installation of octave, I
| downloaded the .m files from sourceforge but can't seem to make it work. Any
| ideas?

It looks like qp depends on __qp__.  Did you install that function
too?  And all the other dependencies (no, I don't know right off what
they might be).

Precisely where did you get sqp and qp?

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]