octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #63286] [octave forge] (optim) fmincon fails f


From: Liang Tang
Subject: [Octave-bug-tracker] [bug #63286] [octave forge] (optim) fmincon fails for Rosenbrock example
Date: Tue, 1 Nov 2022 06:29:13 -0400 (EDT)

Follow-up Comment #11, bug #63286 (project octave):

Hi Arun, 

optim's web page does indicate that optim is not actively maintained.  

I will add one more item.  It is related to nonlinear constraint input of
fmincon. 

>>  fun=@(x) x^2;
>>  fun_c=@(x) 1-x^2;  % The assumed constraint is (<=0), i.e., x^2>=1 is the
constraint
>> [X, FVAL, CVG]=fmincon (fun,   0, A=[], B=[], AEQ=[], BEQ=[], LB=[],
UB=[]);             % converge to 0
>> [X, FVAL, CVG]=fmincon (fun_c, 0, A=[], B=[], AEQ=[], BEQ=[], LB=[],
UB=[]);             % diverge as expected
>> [X, FVAL, CVG]=fmincon (fun,   0, A=[], B=[], AEQ=[], BEQ=[], LB=[], UB=[],
fun_c);      % x=1 is expected
error: element number 2 undefined in return list
error: called from
    fmincon>out_2_wrapper at line 521 column 12
    fmincon>@<anonymous> at line 309 column 36
    __process_constraints__>tf_gencstr at line 147 column 7
    collect_constraints>@<anonymous> at line 115 column 2
    __process_constraints__>@<anonymous> at line 41 column 36
    __constraints_interface__ at line 35 column 18
    fmincon at line 425 column 16


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63286>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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