MatthewPeterKelly / OptimTraj

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

Improve input validation #1

Open MatthewPeterKelly opened 8 years ago

MatthewPeterKelly commented 8 years ago

Right now the input validation will not warn you if there is an unused field in the options struct. This results in a problem when you make a typo in a field name, causing the solver to use the default options quietly.

MatthewPeterKelly commented 6 years ago

It might be possible to replace the current implementation for option parsing with whatever mechanism Matlab uses internally for option parsing. A good implementation will likely involve Matlab classes.

MatthewPeterKelly commented 6 years ago

It might be possible to create a Matlab object for the input options - this would likely make robust input validation easier to implement.