Skip to content

Commit

Permalink
clean up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jalving committed Jul 17, 2024
1 parent dfc56ad commit 31f36c8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/aggregate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ function _copy_edge_to!(
return nothing
end

# TODO: aggregate_to_depth will not work until this is implemented
"""
Aggregate an optiedge `source_edge` into new optinode `new_node`.
"""
Expand Down
4 changes: 0 additions & 4 deletions src/jump_interop.jl
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,6 @@ function JuMP.GenericQuadExpr{C,NodeVariableRef}(
for t in f.quadratic_terms
v1 = JuMP.constraint_ref_with_index(backend, t.variable_1).index
v2 = JuMP.constraint_ref_with_index(backend, t.variable_2).index
# v1 = graph_backend(node).graph_to_element_map[t.variable_1].index
# v2 = graph_backend(node).graph_to_element_map[t.variable_2].index
coef = t.coefficient
if v1 == v2
coef /= 2
Expand Down Expand Up @@ -193,13 +191,11 @@ function JuMP.GenericQuadExpr{C,NodeVariableRef}(
end

# variable index 1
# node_var_1 = graph_backend(edge).graph_to_element_map[v1]
node_var_1 = JuMP.constraint_ref_with_index(backend, v1)
node1 = node_var_1.node
var_index_1 = node_var_1.index

# variable index 2
#node_var_2 = graph_backend(edge).graph_to_element_map[v2]
node_var_2 = JuMP.constraint_ref_with_index(backend, v2)
node2 = node_var_2.node
var_index_2 = node_var_2.index
Expand Down
1 change: 0 additions & 1 deletion src/optiedge.jl
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ function _moi_add_edge_constraint(edge::OptiEdge, con::JuMP.AbstractConstraint)
)::MOI.ConstraintIndex{typeof(moi_func),typeof(moi_set)}
cref = ConstraintRef(edge, constraint_index, JuMP.shape(con))

# TODO: disentangle backend interface
# add to each containing optigraph
for graph in containing_optigraphs(edge)
MOI.add_constraint(
Expand Down

0 comments on commit 31f36c8

Please sign in to comment.