MadNLP / DynamicNLPModels.jl

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

Updated `_build_H` and `_build_sparse_J` to remove unnecessary for loops #17

Closed dlcole3 closed 2 years ago

dlcole3 commented 2 years ago

Removed the extra for loops in the functions _build_H and _build_sparse_J and replaced them by setting slices of the arrays equal to the Q, R, A, B, and Qf arrays. Also added types to these matrices.