Levenberg-Marquardt Optimization using Eigen Check out the blog post Build and Run mkdir build cd build cmake .. make ./LMOptimize Output: LM optimization status: 2 Optimization results a: -1.99839 b: 50.0387 c: 7.83367