update of CPPMPC to a newer version of MATMPC generated model #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note that these changes have only been tested on the inverted pendulum, using casadi model not exported with the newest version of MATMPC.
Also, this was tested using qpOASES 3.2.1
update cppmpc to be usable with casadi_src file generated by MATMPC@299a4d8
add gitignore file ;
udpate casadi_src.cpp and .h ;
update casadi_wrapper accordingly (Ji->Hi, JN->HN) ;
remove now unused qp_workspace class ;
add qp_problem::info method computing OBJ value (cost function value
among all shooting points) ;
add OBJ double field in rti_step_workspace, also add ::info method ;
considere weights as vector as in MATMPC model generation : WN is a
vector, W is a matrix where the ith collumn is the weight for the ith
shooting point ;
generate control bounds for the nbu_idx (similar to state bounds)
use exported casadi symbols to compute hessians instead of using
intermediate jacobians ;
modify InvertedPendulum.cpp according to all these changes, and add
display of OBJective function in output file