[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fminunc error
From: |
Gaël de Lannoy |
Subject: |
fminunc error |
Date: |
Tue, 31 Aug 2010 17:19:54 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2 |
Hello everybody
I have recently quit matlab for octave. I am trying to use fminunc in a
matlab-like style and get the following error:
error: unknown option 'maxit'
error: evaluating if command near line 136, column 5
error: evaluating if command near line 135, column 3
error: evaluating while command near line 116, column 1
error: called from `read_options' in file
`/usr/share/octave/2.1.57/site/m/octave-forge/miscellaneous/read_options.m'
error: evaluating assignment expression near line 157, column 5
error: called from `minimize' in file
`/usr/share/octave/2.1.57/site/m/octave-forge/optim/minimize.m'
error: evaluating if command near line 125, column 1
error: called from `fminunc' in file
`/usr/share/octave/2.1.57/site/m/octave-forge/optim/fminunc.m'
error: called from `mycrfchaintrain' in file `mychaintrain.m'
error: evaluating for command near line 71, column 5
My function mychaintrain contains this call to fminunc():
options = optimset('GradObj', 'on', 'Diagnostics', 'off',
'Display','off', 'MaxIter', 20, 'TolFun', 1e-10, 'TolX', 1e-10);
[w, finalErr, exitFlag, out] = fminunc(@mychainErrAndGrad, w, options,
features, labels, C);
What am I doing wrong?
Many thanks in advance!
Gael
- fminunc error,
Gaël de Lannoy <=