edits to multmin to handle ill-conditioned pars

Some random parameter sets were causing issues internally with
fmincon. This fixes that by changing from a fixed iteration to a
while loop with try/catch inside.