MatthewPeterKelly / OptimTraj

A trajectory optimization library for Matlab
MIT License
598 stars 207 forks source link

Portability of Interpolation #11

Open MatthewPeterKelly opened 8 years ago

MatthewPeterKelly commented 8 years ago

Part of the solution struct includes a function handle for interpolating the solution and the error estimates. This handle sometimes breaks if the solutions is saved and then opened on a different computer.

There might be a simple fix by moving some of the sub-functions to the top level directory of the code. A slightly more challenging (but robust) fix is to replace the interpolation with a data structure that can be read by the matlab command ppval. Then there is no need to pass around function handles.

MatthewPeterKelly commented 6 years ago

I suggest that this issue be fixed by making interp.state and interp.control be matlab pp structs, which can then be evaluated using matlab ppval().