[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Nonlinear Equation Solve
From: |
Dmitri A. Sergatskov |
Subject: |
Re: Nonlinear Equation Solve |
Date: |
Tue, 14 Feb 2012 17:37:41 -0600 |
On Tue, Feb 14, 2012 at 5:13 PM, Thomas D. Dean <address@hidden> wrote:
> On 02/14/12 15:09, Ben Abbott wrote:
>
>>
>> Does the optimization run without error if "TolX" and "TolFun" = 10*eps ?
>>
>> Ben
>>
>>
>
> octave:72> eps
> ans = 2.2204e-16
> octave:73> [x, fval, info] = fminunc
> (@eqnsetf,y',optimset("TolX",10*eps,"TolFun",10*eps,"ComplexEqn","on"));
>
> error: __doglegm__: operator \: nonconformant arguments (op1 is 15x15, op2
> is 225x1)
> error: called from:
> error: /usr/local/share/octave/3.4.3/m/optimization/fminunc.m at line 386,
> column 3
> error: /usr/local/share/octave/3.4.3/m/optimization/fminunc.m at line 233,
> column 9
>
can you try some simple test case to see if fminunc works?
E.g.:
f = @(x)sin(x)+3;
x = fminunc(f,4, optimset("TolX",10*eps,"TolFun",10*eps,"ComplexEqn","on"))
(Should get x = 4.7124)
> Tom Dean
>
Dmitri.
--