Skip to content

Commit 9ec889f

Browse files
committed
Add to obj
1 parent e3a77b9 commit 9ec889f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/maximum_clique.jl

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ function maximum_weight_clique!(
1919
packing_constraint[i=1:nv(g), j=1:nv(g); i j && !has_edge(g, i, j)],
2020
f[i] + f[j] <= 1,
2121
)
22-
@objective(model, Max, dot(f, vertex_weights))
22+
obj = objective_function(model)
23+
add_to_expression!(obj, dot(f, vertex_weights))
24+
@objective(model, Max, obj)
2325
return model
2426
end
2527

0 commit comments

Comments
 (0)