cobyla return status flag
I notice that when using 'minimize' with method = 'COBYLA' on my system, the Result object's status flag reads "1.0", although the documentation describes this as an 'int' type. Line 238 in the cobyla.py routine reads: status=info[0] Perhaps info is getting a float from the wrapped Fortran routine. Maybe a simple and unobtrusive fix would be to change that line to: status=int(info[0]) #?? Bob H
On Fri, Oct 5, 2012 at 5:47 PM, The Helmbolds <helmrp@yahoo.com> wrote:
I notice that when using 'minimize' with method = 'COBYLA' on my system, the Result object's status flag reads "1.0", although the documentation describes this as an 'int' type.
Line 238 in the cobyla.py routine reads: status=info[0]
Perhaps info is getting a float from the wrapped Fortran routine. Maybe a simple and unobtrusive fix would be to change that line to: status=int(info[0]) #??
Sure, that would work. Ralf
Ralf Gommers a écrit :
I notice that when using 'minimize' with method = 'COBYLA' on my system,
the Result object's status flag reads "1.0", although the documentation describes this as an 'int' type.
Line 238 in the cobyla.py routine reads: status=info[0]
Perhaps info is getting a float from the wrapped Fortran routine. Maybe a simple and unobtrusive fix would be to change that line to: status=int(info[0]) #??
Sure, that would work.
Fixed. -- Denis Laxalde
participants (3)
-
Denis Laxalde
-
Ralf Gommers
-
The Helmbolds