/*使用LM 算法求解非线性优化问题,求导部分使用数值方法*/#include <iostream>#include <Eigen/Dense>#include <unsupported/Eigen/NonLinearOptimization> // LM minimize for sum_i (f_i(x))^2 struct ObjectFunctor{ int operator()(const Eigen::VectorXf &x, Eigen::VectorXf &fvec) const { // Implement y = (x-5 Read More
posted @ 2013-05-12 17:11 Greenbird Views(424) Comments(0) Diggs(0) Edit
/*这是一段用LevenbergMarquardt最小化y^2x-5*x的代码*//*非线性最小化问题(局部最小)*//*求导部分用解析法*//*Eighlish : http://en.wikipedia.org/wiki/Levenberg%E2%80%93Marquardt_algorithm*//*中文 :http://zh.wikipedia.org/wiki/%E8%8E%B1%E6%96%87%E8%B4%9D%E6%A0%BC%EF%BC%8D%E9%A9%AC%E5%A4%B8%E7%89%B9%E6%96%B9%E6%B3%95*/#include <iostream Read More
posted @ 2013-05-12 16:50 Greenbird Views(381) Comments(0) Diggs(0) Edit

To further demonstrate the capabilities of KinFu Large Scale, we made another example with a room.