[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64878] fminbnd missing a check for bounds a a
From: |
Liang Tang |
Subject: |
[Octave-bug-tracker] [bug #64878] fminbnd missing a check for bounds a and b |
Date: |
Thu, 9 Nov 2023 14:39:24 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?64878>
Summary: fminbnd missing a check for bounds a and b
Group: GNU Octave
Submitter: lt1234
Submitted: Thu 09 Nov 2023 07:39:22 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Feature Request
Status: None
Assigned to: None
Originator Name: lt1234
Originator Email:
Open/Closed: Open
Release: 8.2.0
Discussion Lock: Any
Operating System: Microsoft Windows
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Thu 09 Nov 2023 07:39:22 PM UTC By: Liang Tang <lt1234>
fminbnd documentation specifies the requirements for bounds: The endpoints
must be finite.
The 8.2.0 code itself does not check for if the end points are finite. Please
see the example error state when illegal bound specifications are not
rejected. A "isfinite" check may be inserted to detect the input errors.
Thanks.
func=@(x) x.^2;
function stop=func_out(x, optv, state), stop=0; display(x); end
options=optimset('fminbnd'); options.OutputFcn=@func_out;
[k, fval, exitflag, output] = fminbnd (func, -100, 100, options)
[k, fval, exitflag, output] = fminbnd (func, [], [], options)
[k, fval, exitflag, output] = fminbnd (func, -inf, inf, options)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64878>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #64878] fminbnd missing a check for bounds a and b,
Liang Tang <=