_solver = kwds["solver"]
from mystic.monitors import Monitor
stepmon = Monitor()
evalmon = Monitor()
if kwds.has_key("itermon"):
stepmon = kwds["itermon"]
if kwds.has_key("evalmon"):
After Change
from mystic.monitors import Monitor
stepmon = kwds["itermon"] if "itermon" in kwds else Monitor()
evalmon = kwds["evalmon"] if "evalmon" in kwds else Monitor()
gtol = 10 // termination generations (scipy: 2, default: 10)
if "gtol" in kwds: gtol = kwds["gtol"]
if gtol: //if number of generations is provided, use NCOG