pyminuit
pyminuit copied to clipboard
Functions with a variable number of parameters
trafficstars
Originally submitted by iamholger
Hi, Andy directed me here.
PyMinuit handles multiple parameters easily - but only if the definition of the
function to minimize is fixed. E.g. a hardcoded f(x,y) works perfectly fine, so
in our code we have to dynamically generate a string which represents a
functions
definition of N (N can be anything greater than 0) parameters that is later
used via
the 'exec' statement to actually define the function PyMinuit is considered to
optimize.
Original issue reported on code.google.com by [email protected] on 9 Jul 2008 at 12:59