We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9957a4d commit 4cdbd8bCopy full SHA for 4cdbd8b
1 file changed
src/transform/utilities.jl
@@ -483,7 +483,7 @@ function convex_evaluator(term::Num)
483
end
484
485
# Scan through the equation and pick out and organize all variables needed as inputs
486
- ordered_vars = pull_vars(cv_eqn)
+ ordered_vars = pull_vars(Num(cv_eqn))
487
488
# Create the evaluation function. This works by calling Symbolics.build_function,
489
# which creates a function as an Expr that evaluates build_function's first
@@ -517,7 +517,7 @@ function convex_evaluator(equation::Equation)
517
step_2 = shrink_eqs(step_1)
518
cv_eqn += step_2[3].rhs
519
520
521
@eval new_func = $(build_function(cv_eqn, ordered_vars..., expression=Val{true}))
522
523
else
0 commit comments