From 71e2e9ef4b3f3141c0369ae1385886e1b788d11f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Mon, 6 Sep 2021 19:23:38 +0200 Subject: [PATCH] Update callback docstring now that SingleVariable is gone --- src/attributes.jl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/attributes.jl b/src/attributes.jl index 36308391b3..7a1118d72f 100644 --- a/src/attributes.jl +++ b/src/attributes.jl @@ -540,11 +540,10 @@ argument to the feasible solution callback. ## Examples -Suppose `fx = x` and `fx = y` -where `x` and `y` are [`VariableIndex`](@ref)s of `optimizer`. To add a +Suppose `x` and `y` are [`VariableIndex`](@ref)s of `optimizer`. To add a `LazyConstraint` for `2x + 3y <= 1`, write ```julia -func = 2.0fx + 3.0fy +func = 2.0x + 3.0y set = MOI.LessThan(1.0) MOI.submit(optimizer, MOI.LazyConstraint(callback_data), func, set) ```