Closed dlcole3 closed 2 years ago
Merging #7 (be33c94) into main (a0d1eef) will decrease coverage by
30.48%
. The diff coverage is51.42%
.
@@ Coverage Diff @@
## main #7 +/- ##
===========================================
- Coverage 91.93% 61.45% -30.49%
===========================================
Files 1 1
Lines 62 179 +117
===========================================
+ Hits 57 110 +53
- Misses 5 69 +64
Impacted Files | Coverage Δ | |
---|---|---|
src/DynamicNLPModels.jl | 61.45% <51.42%> (-30.49%) |
: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 a0d1eef...be33c94. Read the comment docs.
This PR provides 3 things in response to issue "Defining data structure for LQ dynamic optimization".
LQDynamicData
and provides a constructor for this struct. There are two constructor options:LQDynamicData
by passing theQ
,R
,A
,B
matrices,s0
vector, and theN
time steps with optional arguments forsl
,su
,ul
, anduu
.LQDynamicData
by passingns
,nu
, andN
. It initializes empty arrays forQ
,R
,A
, andB
and setss0
to a zero vector and defaults to infinite bounds for states and inputs. These values can then be adjusted with the API functionsLQDynamicModel(::LQDynamicData{T,S,M}; condense = false) where {T,S,M}
in the place ofbuild_QM
.LQDynamicData
can be modified or queried. The only exception is thatns
,nu
, andN
cannot be modified.