JuliaSmoothOptimizers / QuadraticModels.jl

Data structures for linear and quadratic optimization problems based on NLPModels.jl
Other
16 stars 10 forks source link

Adding slack variables to a QuadraticModel #2

Closed dpo closed 3 years ago

dpo commented 5 years ago

SlackModel(qp) where qp is a QuadraticModel should return another QuadraticModel.

abelsiqueira commented 4 years ago

Do we still want this? I forgot the reason. Returning a QM means creating the specific Arows, Acols and Avals vectors during the constructor (and copies of Hrows, etc.), and the current way creates them when jac_structure and jac_coord are called. If the inplace versions are called, no additional memory is created.

dpo commented 3 years ago

Done in #30