Skip to content

Commit

Permalink
Update docs/src/manual/nonlinear.md
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Nov 12, 2023
1 parent bd3a01e commit 90965f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/manual/nonlinear.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ julia> model = Model();
julia> @variable(model, x[1:2]);
julia> f(x::Vector{VariableRef}) = x[1] > 1 ? 0 : x[2]
f (generic function with 1 method)
julia> f(x)
ERROR: Cannot evaluate `>` between a variable and a number.
Expand Down

0 comments on commit 90965f1

Please sign in to comment.