Skip to content

Commit 5272027

Browse files
committed
Remove secon definition
1 parent 62e6ced commit 5272027

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

Diff for: src/jump.jl

-14
Original file line numberDiff line numberDiff line change
@@ -614,20 +614,6 @@ function sos2_moment_curve_formulation!(m::JuMP.Model, λ)
614614
nothing
615615
end
616616

617-
function sos2_moment_curve_formulation!(m::JuMP.Model, λ)
618-
counter = m.ext[:PWL].counter
619-
d = length(λ)-1
620-
y = JuMP.@variable(m, [i=1:2], Int, lowerbound=1, upperbound=d^i, basename="y_$counter")
621-
for i in 1:d
622-
JuMP.@constraints(m, begin
623-
-2i*λ[1] + sum((v^2-(2i+1)*v+2min(0,i+1-v))*λ[v] for v in 2:d) + (d^2-(2i+1)*d)λ[d+1] -(2i+1)*y[1] + y[2]
624-
-2i*λ[1] + sum((v^2-(2i+1)*v+2max(0,i+1-v))*λ[v] for v in 2:d) + (d^2-(2i+1)*d)λ[d+1] -(2i+1)*y[1] + y[2]
625-
end)
626-
end
627-
push!(m.ext[:PWL].branchvars, JuMP.linearindex(y[1]))
628-
nothing
629-
end
630-
631617
function moment_curve_branch_callback(m, cb)
632618
# if CPLEX was gonna branch anyway, just use their branching decision
633619
if !isempty(cb.nodes)

0 commit comments

Comments
 (0)