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

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

[Octave-bug-tracker] [bug #63286] fmincon error with anonymous function


From: Liang Tang
Subject: [Octave-bug-tracker] [bug #63286] fmincon error with anonymous function
Date: Fri, 28 Oct 2022 17:02:01 -0400 (EDT)

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

                 Summary: fmincon error with anonymous function 
                 Project: GNU Octave
               Submitter: lt1234
               Submitted: Fri 28 Oct 2022 09:01:59 PM UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: lt1234
        Originator Email: 
             Open/Closed: Open
                 Release: 7.1.0
         Discussion Lock: Any
        Operating System: Microsoft Windows


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Fri 28 Oct 2022 09:01:59 PM UTC By: Liang Tang <lt1234>
The example below gave an unexpected error.   

>> fun = @(x) x^2;
>> x = fmincon(fun, x0=0)

In Octave 5.2.0 and optim 1.6.0, I got the right result: 
x = 0

In Octave 7.1.0 and optim  1.6.1, I had an error from the same example.  

error: @<anonymous>: function called with too many inputs
error: called from
    @<anonymous>
    __dfdp__ at line 304 column 15
    fmincon>@<anonymous> at line 385 column 26
    __jacobian_constants__>@<anonymous> at line 135 column 11
    __lm_feasible__ at line 145 column 8
    fmincon at line 451 column 24

Thanks, 












    _______________________________________________________

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]