Fix user iteration callbacks.

User callbacks got broken at some point due to the extra
layer of copying from Solver::Options to Minimizer::Options.
This copies the user callbacks when initializing
Minimizer::Options from Solver::Options, and adds a test to
this effect.

This also fixes a bug where the state updating callback was
not called before the user callbacks. This also adds a test
to solver_impl_test to ensure the state updating callbacks
work as expected.

Thanks to Luis Alberto Zarrabeitia for the report.

Issue: 46
Change-Id: I2b36415c89dafaa5c84ecaa727a325df122e1092
8 files changed
tree: a228e2f6a12331371423512b691c5123855975b7
  1. data/
  2. docs/
  3. examples/
  4. include/
  5. internal/
  6. .gitignore
  7. CMakeLists.txt
  8. LICENSE
  9. README