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: Nitish Ranjan
Subject: sqp doesn't work on Octave windows version
Date: Wed, 2 Aug 2006 18:48:50 +0530

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?

--
Carpe Diem
Nitish

"Do not worry about your problems with mathematics, I assure you mine are far greater."..Albert Einstein

reply via email to

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