From 85c32c911e85c97c4d639f534c9bc56f0f09b21a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Thu, 30 Aug 2018 01:02:00 +0200 Subject: [PATCH] scale! -> rmul! (#220) * scale! -> rmul! * Fix for Julia v0.6 --- src/SolverInterface/conic_to_lpqp.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SolverInterface/conic_to_lpqp.jl b/src/SolverInterface/conic_to_lpqp.jl index a078235..46b03d2 100644 --- a/src/SolverInterface/conic_to_lpqp.jl +++ b/src/SolverInterface/conic_to_lpqp.jl @@ -259,7 +259,7 @@ function getreducedcosts(wrap::ConicToLPQPBridge) redcost[varidx] -= conedual[i] end if wrap.sense == :Max - scale!(redcost,-1.0) + Compat.rmul!(redcost, -1.0) end return redcost end @@ -272,7 +272,7 @@ function getconstrduals(wrap::ConicToLPQPBridge) constrduals[i-offset] -= conedual[i] end if wrap.sense == :Max - scale!(constrduals,-1.0) + Compat.rmul!(constrduals, -1.0) end return constrduals end