update of CPPMPC to a newer version of MATMPC generated model#1
Open
sedith wants to merge 3 commits intochenyutao36:masterfrom
Open
update of CPPMPC to a newer version of MATMPC generated model#1sedith wants to merge 3 commits intochenyutao36:masterfrom
sedith wants to merge 3 commits intochenyutao36:masterfrom
Conversation
…99a4d8 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
file contained wrong changes, was commited by mistake ; add change Ts in InvertedPendulum.cpp to allow more shooting points
casadi 3.5 uses int for mem and long longint for iw ; remove use of nbu, nbu_idx in qp_problem, the non-constrained inputs have to be ficticiously constrained between -inf,inf before passing to the solver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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