You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Assume obj and obj_grad are passedobj=args[0] ifargselsekwargs.get("obj")
obj_gradargs[1] iflen(args)>1elsekwargs.get("obj_grad")
It"obj_expr"inkwargs:
ifisinstance(args[0], Callable) orisinstance(args[1], Callable):
raiseValueError("The objective function should be provided either as expression ('obj_expr')or as two evaluation functions ('obj', 'obj_grad').")
obj, obj_grad=create_objective_function(...)
else:
args=args[2:] # Something like this
Timo suggested:
in #122 (comment)
The text was updated successfully, but these errors were encountered: