pub type IntermediateCallback<P> = fn(&mut P, IntermediateCallbackData) -> bool;Expand description
Type defining the callback function for giving intermediate execution control to the user.
If set, it is called once per iteration, providing the user with some information on the state of the optimization. This can be used to print some user- defined output. It also gives the user a way to terminate the optimization prematurely. If this method returns false, Ipopt will terminate the optimization.