MadNLP / DynamicNLPModels.jl

NLPModels for dynamic optimization
MIT License
11 stars 1 forks source link

Added `SparseLQDynamicModel` and `DenseLQDynamicModel` and accompanying support #25

Closed dlcole3 closed 2 years ago

dlcole3 commented 2 years ago

Added new structs for SparseLQDynamicModel and DenseLQDynamicModel. These are still built within the function LQDynamicModel, but I removed the condense attribute of each struct. I also added the attribute blocks to DenseLQDynamicModel to store the block matrices. Updated functions that relied on the old LQDynamicModel type, including the get_* and set_* functions and the functions used in optimization (e.g., jac_coord!). Updated get_u and get_s to operate for the dense formulation by calling the stored block matrices.

codecov-commenter commented 2 years ago

Codecov Report

Merging #25 (2689d81) into main (a84116a) will increase coverage by 1.37%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #25      +/-   ##
==========================================
+ Coverage   96.23%   97.60%   +1.37%     
==========================================
  Files           1        1              
  Lines         637      668      +31     
==========================================
+ Hits          613      652      +39     
+ Misses         24       16       -8     
Impacted Files Coverage Δ
src/DynamicNLPModels.jl 97.60% <100.00%> (+1.37%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a84116a...2689d81. Read the comment docs.