scipy/scipy — pull request #219 by pv (2012-05-19 21:56:31+00:00)
Title: ENH: optimize: Return additional information from COBYLA

Rescued and cleaned up from ticket http://projects.scipy.org/scipy/ticket/1350

Thanks to Darryl Wally for the patch. This looks mostly good to me.

-----------

Reported by: darrylwally

The standard outputs of fmin_cobyla that are printed to the screen, include: NFVALS, F, MAXCV and the function minimum.

These values could be useful to another program if they were captured and output as variables.

The attached patch affects the following files: cobyla.py, cobyla.f, and cobyla.pyf.

A new 4 element array variable is passed into the Fortran code which holds the information data (NFVALS, F, MaxCV and a new SUCCESS value) that is manipulated and returned. fmin_cobyla now returns the minimum, SUCCESS (True/False), NFVALS, F, and MAXCV.

This patch satisfies my requirements so I thought I would submit it to the community.