[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fmincon - fminsearch : constrained simplex optimization in Octave?
From: |
baptiste auguie |
Subject: |
Re: fmincon - fminsearch : constrained simplex optimization in Octave? |
Date: |
Sat, 11 Nov 2006 11:38:39 +0000 |
Hello,
Thanks to your advice, I've installed Octave-Forge and I'm trying the
different optimization routines available <http://
octave.sourceforge.net/index/optimization.html#Minimization>. Without
much success for my first try :(
Here is the test example from fmins documentation and the result I get,
octave:1> fmins(inline('(x(1)-5).^2+(x(2)-8).^4'),[0;0])
error: `x' undefined near line 0 column 6
error: evaluating binary operator `-' near line 0, column 10
error: evaluating binary operator `.^' near line 0, column 13
error: evaluating binary operator `+' near line 0, column 16
error: called from `?unknown?'
error: evaluating binary operator `*' near line 63, column 12
error: evaluating assignment expression near line 63, column 6
error: called from `nmsmax' in file `/sw/share/octave/2.1.72/site/m/
octave-forge/optim/nmsmax.m'
error: evaluating assignment expression near line 78, column 9
error: called from `fmins' in file `/sw/share/octave/2.1.72/site/m/
octave-forge/optim/fmins.m'
I've tried with a simpler function, in a different file (not inline),
with the same error.
I get the same sort of error for nelder_mead_min :
error: `x' undefined near line 3 column 4
error: evaluating binary operator `-' near line 3, column 5
error: evaluating binary operator `^' near line 3, column 8
error: evaluating assignment expression near line 3, column 2
error: called from `toto' in file `/Users/.../SPPfit/toto.m'
where toto.m is the most basic function,
function f=toto(x)
f=(x-2)^2;
endfunction
same thing for samin,
error: `x' undefined near line 2 column 10
error: evaluating argument list element number 1
error: evaluating binary operator `+' near line 2, column 13
error: evaluating assignment expression near line 2, column 4
error: called from `f' in file `/Users/.../SPPfit/f.m'
error: evaluating argument list element number 1
Is there something wrong in my install of Octave-forge? I installed
it using Fink for Mac OS. Octave seems to call the right functions,
but they don't behave as I'd expect!
Best wishes
baptiste