From 0e70d0d4457a10c2eed614ddb48d3f989947ff15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Fri, 17 May 2019 19:34:08 +0200 Subject: [PATCH] [ci skip] Remove SingleVariable in @model macro --- docs/src/apimanual.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/src/apimanual.md b/docs/src/apimanual.md index 7d3d59a707..15c0818617 100644 --- a/docs/src/apimanual.md +++ b/docs/src/apimanual.md @@ -1078,7 +1078,8 @@ checks that `optimizer` implements support for If the wrapper does not support building the model incrementally (i.e. with `add_variable` and `add_constraint`), then `supports_default_copy_to` can be replaced by `supports_allocate_load` if appropriate (see [Implementing copy](@ref)) and the line `const bridged = ...` can be replaced with ```julia # Include here the functions/sets supported by the solver wrapper (not those that are supported through bridges) -MOIU.@model ModelData () (EqualTo, GreaterThan, LessThan) (Zeros, Nonnegatives, Nonpositives) () (SingleVariable,) (ScalarAffineFunction,) (VectorOfVariables,) (VectorAffineFunction,) +MOIU.@model(ModelData, (), (MOI.EqualTo, MOI.GreaterThan, MOI.LessThan) (MOI.Zeros, MOI.Nonnegatives, MOI.Nonpositives), (), + (), (MOI.ScalarAffineFunction,), (MOI.VectorOfVariables,), (MOI.VectorAffineFunction,)) const cache = MOIU.UniversalFallback(ModelData{Float64}()) const cached = MOIU.CachingOptimizer(cache, optimizer) const bridged = MOIB.full_bridge_optimizer(cached, Float64)