I tried to use that instead of Matlab and almost immediately got the same results for the parameters, which is great. It was as simple as taking the example that came with levmar and modifying it to suit my needs:
- Wrote a model function that returns $T_A(P)$ in steady state;
- Supplied the $T_A$ measurements as the measurement vector x;
- Wrote a vector for the lower bounds (with low values for the parameters, like $0.01$);
- Used dlevmar_bc_dif (double precision levmar with box constraints and finite difference approximated Jacobian) for solving the minimization problem;
- As levmar has no way to directly pass inputs to the model, I passed the power settings in the additional data argument.