From 90965f1d7d620a94204ba62c79a336764ff87357 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Sun, 12 Nov 2023 17:51:03 +1300 Subject: [PATCH] Update docs/src/manual/nonlinear.md --- docs/src/manual/nonlinear.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/src/manual/nonlinear.md b/docs/src/manual/nonlinear.md index 799b0d6d7d5..114f775209c 100644 --- a/docs/src/manual/nonlinear.md +++ b/docs/src/manual/nonlinear.md @@ -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.