Add callback on optimization routines
Parameters --> Rules

See the Linear example for updates on how to migrate to this version.