MadNLP / DynamicNLPModels.jl

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

Support for `gl <= Ex + Fu <= gu` constraints added for sparse and dense formats #15

Closed dlcole3 closed 2 years ago

dlcole3 commented 2 years ago

Updated LQDynamicData to store attributes for E, F, gl, and gu data. Updated the LQDynamicModel constructor to take E, F, gl, and gu data and build it into the model for both sparse and condensed formats. Added a _build_EF function for the sparse format. Updated the sparse_LQ_test.jl file to solve the JuMP.jl model with the E and F data. Added tests to runtests.jl to test the problem with new E and F matrices.

codecov-commenter commented 2 years ago

Codecov Report

Merging #15 (49de963) into main (234f926) will decrease coverage by 0.36%. The diff coverage is 96.29%.

@@            Coverage Diff             @@
##             main      #15      +/-   ##
==========================================
- Coverage   94.27%   93.91%   -0.37%     
==========================================
  Files           1        1              
  Lines         262      345      +83     
==========================================
+ Hits          247      324      +77     
- Misses         15       21       +6     
Impacted Files Coverage Δ
src/DynamicNLPModels.jl 93.91% <96.29%> (-0.37%) :arrow_down:

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 234f926...49de963. Read the comment docs.

sshin23 commented 2 years ago

excellent work, @dlcole3