Not sure if anyone else had this issue, but for me this fixes test_mode_no_orig(), which was failing because it unexpectedly provided a gradient to scipy.minimize. Now vp.mode() tells minimize that the objective is also returning the gradient as a second argument, when orig_flag=False.
Not sure if anyone else had this issue, but for me this fixes
test_mode_no_orig()
, which was failing because it unexpectedly provided a gradient toscipy.minimize
. Nowvp.mode()
tellsminimize
that the objective is also returning the gradient as a second argument, whenorig_flag=False
.