Skip to content

Commit

Permalink
implement getobjbound for conic_to_lpqp
Browse files Browse the repository at this point in the history
  • Loading branch information
mlubin committed Mar 29, 2017
1 parent caeac16 commit 0f4a0da
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/SolverInterface/conic_to_lpqp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,13 @@ function getconstrsolution(wrap::ConicToLPQPBridge)
wrap.A * getsolution(wrap.m)
end
status(wrap::ConicToLPQPBridge) = status(wrap.m)
function getobjval(wrap::ConicToLPQPBridge)
if wrap.sense == :Max
return -getobjval(wrap.m)
else
return getobjval(wrap.m)
for f in [:getobjval, :getobjbound]
@eval function ($f)(wrap::ConicToLPQPBridge)
if wrap.sense == :Max
return -$f(wrap.m)
else
return $f(wrap.m)
end
end
end

Expand Down

0 comments on commit 0f4a0da

Please sign in to comment.