Skip to content

Commit

Permalink
Merge pull request #62 from oxfordcontrol/bl/silent
Browse files Browse the repository at this point in the history
Fix Silent
  • Loading branch information
blegat authored Sep 1, 2019
2 parents 6f69bc4 + 4003fc5 commit 1edb217
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,11 @@ function MOI.copy_to(dest::Optimizer, src::MOI.ModelLike; copy_names=false)
assign_constraint_row_ranges!(dest.rowranges, idxmap, src)
dest.sense, P, q, dest.objconstant = processobjective(src, idxmap)
A, l, u, dest.constrconstant = processconstraints(src, idxmap, dest.rowranges)
OSQP.setup!(dest.inner; P = P, q = q, A = A, l = l, u = u, dest.settings...)
settings = copy(dest.settings)
if dest.silent
OSQP.update_settings!(dest.inner; :verbose => false)
settings[:verbose] = false
end
OSQP.setup!(dest.inner; P = P, q = q, A = A, l = l, u = u, settings...)
dest.modcache = ProblemModificationCache(P, q, A, l, u)
dest.warmstartcache = WarmStartCache{Float64}(size(A, 2), size(A, 1))
processprimalstart!(dest.warmstartcache.x, src, idxmap)
Expand Down

0 comments on commit 1edb217

Please sign in to comment.