[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
optimizing error: undefined argument
From: |
DGati |
Subject: |
optimizing error: undefined argument |
Date: |
Tue, 16 Aug 2011 01:57:36 -0700 (PDT) |
Hi octave users,
I'm currently trying out the different optimizers in the optim-package on
Octave 3.2.4, such as minimize(), line_min, or nmsmax. The file I'm
minimizing (or in case of nmsmax, I'm maximizing the file*-1) is for
simplicity's sake:
function result = func(x)
result=0.5*(x)^2-10;
endfunction
The error that I keep getting is
error: 'x' undefined near line 2, column 7
error: evaluating argument list element number 1
error: evaluating argument list element number 1
I don't understand that. How more should I define 'x' when it is simply the
argument of the function?
Thanks for tips!
--
View this message in context:
http://octave.1599824.n4.nabble.com/optimizing-error-undefined-argument-tp3746683p3746683.html
Sent from the Octave - General mailing list archive at Nabble.com.
- optimizing error: undefined argument,
DGati <=