Skip to content

Commit b0b5328

Browse files
authored
Update Dualization.jl (#10)
* update dualization * bump * remap p
1 parent efd6a27 commit b0b5328

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ MathOptSetDistances = "3b969827-a86c-476c-9527-bb6f1a8fbad5"
1414
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1515

1616
[compat]
17-
Dualization = "=0.6.1"
17+
Dualization = "=0.7.0"
1818
MathOptSetDistances = "=0.2.11"
1919

2020
[extras]

src/layers/generic.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,11 @@ function _make_completion_model(decomposition::AbstractDecomposition, dual_model
6060
filter_constraints=c -> !(c in y_cone_constraints)
6161
)
6262

63-
# mark y and p as parameters (optimizing over z only)
63+
# mark y as parameters (optimizing over z only)
6464
p_ref = getindex.(ref_map, get_p(dual_model, decomposition))
6565
y_ref = getindex.(ref_map, get_y_dual(dual_model, decomposition))
6666
y_ref_flat = reduce(vcat, y_ref)
6767
JuMP.@constraint(completion_model, y_ref_flat .∈ MOI.Parameter.(zeros(length(y_ref_flat))))
68-
JuMP.@constraint(completion_model, p_ref .∈ MOI.Parameter.(zeros(length(p_ref))))
6968

7069
return completion_model, (p_ref, y_ref, ref_map)
7170
end

0 commit comments

Comments
 (0)