Skip to content

Commit

Permalink
quick fix to warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jalving committed Jul 5, 2024
1 parent 7c5a870 commit 0c20aff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/optimizer_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,11 @@ function JuMP.optimize!(
# check for node objectives when graph objective is empty
if iszero(objective_function(graph))
if has_node_objective(graph)
@warn "The optigraph objective is empty but objectives exist on optinodes.
@warn """
The optigraph objective is empty but objectives exist on optinodes.
If this is not intended, consider using `set_to_node_objectives(graph)` to
set the graph objective function."
set the graph objective function.
"""
end
end

Expand Down

0 comments on commit 0c20aff

Please sign in to comment.