Skip to content

Commit

Permalink
fix operator
Browse files Browse the repository at this point in the history
  • Loading branch information
jalving committed Feb 2, 2024
1 parent 94ca27f commit 40aaa7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/optiedge.jl
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ function _extract_variables(func::JuMP.GenericNonlinearExpr)
vars = NodeVariableRef[]
for i = 1:length(func.args)
func_arg = func.args[i]
if func_arg isa JuMP.GenericNonlinearExpr
append!(vars, _extract_variables(func_arg))
elseif typeof(func_arg) == NodeVariableRef
if typeof(func_arg) == NodeVariableRef #
push!(vars, func_arg)
else
append!(vars, _extract_variables(func_arg))
end
end
return vars
Expand Down

0 comments on commit 40aaa7d

Please sign in to comment.