I would like to ask if there is any way to pass a custom call back function to one of the solvers (TNC) in this case. For example, I am able to make the code below work in scipy.optimize.minimize (BTW, I used jnp in both cases):
# This works
res = scipy.optimize.minimize(self.imp_sim_weighted.simulate, ln_par0, \
args = (self.controller.app_data["freq"], self.controller.app_data["z"], lb_col, ub_col, self.smf, self.controller.app_data["weight"]), method = 'TNC',
jac = self.controller.jac_deis, callback= self.imp_sim.callback, options={'maxfun':10000, 'ftol':1e-10, 'xtol':1e-10})
I would like to ask if there is any way to pass a custom call back function to one of the solvers (TNC) in this case. For example, I am able to make the code below work in scipy.optimize.minimize (BTW, I used jnp in both cases):
But with jaxopts, I get an error:
Error: