See http://ceres-solver.org/building.html
Case Study: Extending the Tractor to do Strong Gravitational Lensing
API Reference – Tractor Basics