Skip to content

Commit e8b0e45

Browse files
committed
remove unused code
1 parent 57f65b6 commit e8b0e45

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Utilities/penalty_relaxation.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ function MOI.modify(
149149
MOI.add_constraint(model, y, MOI.GreaterThan(zero(T)))
150150
MOI.add_constraint(model, z, MOI.GreaterThan(zero(T)))
151151
func = MOI.get(model, MOI.ConstraintFunction(), ci)
152-
set = MOI.get(model, MOI.ConstraintSet(), ci)
153152
newfunc = MOI.ScalarNonlinearFunction(:+, [func, (one(T) * y - one(T) * z)])
154153
MOI.set(model, MOI.ConstraintFunction(), ci, newfunc)
155154
scale = sense == MOI.MIN_SENSE ? one(T) : -one(T)
@@ -178,7 +177,6 @@ function MOI.modify(
178177
y = MOI.add_variable(model)
179178
MOI.add_constraint(model, y, MOI.GreaterThan(zero(T)))
180179
func = MOI.get(model, MOI.ConstraintFunction(), ci)
181-
set = MOI.get(model, MOI.ConstraintSet(), ci)
182180
newfunc = MOI.ScalarNonlinearFunction(:+, [func, y])
183181
MOI.set(model, MOI.ConstraintFunction(), ci, newfunc)
184182
scale = sense == MOI.MIN_SENSE ? one(T) : -one(T)
@@ -198,7 +196,6 @@ function MOI.modify(
198196
z = MOI.add_variable(model)
199197
MOI.add_constraint(model, z, MOI.GreaterThan(zero(T)))
200198
func = MOI.get(model, MOI.ConstraintFunction(), ci)
201-
set = MOI.get(model, MOI.ConstraintSet(), ci)
202199
newfunc = MOI.ScalarNonlinearFunction(:-, [func, z])
203200
MOI.set(model, MOI.ConstraintFunction(), ci, newfunc)
204201
scale = sense == MOI.MIN_SENSE ? one(T) : -one(T)

0 commit comments

Comments
 (0)