From 14e4941dc97c8aa9ec5cf1b4189d3c9f5087b1bc Mon Sep 17 00:00:00 2001
From: Michiel Cottaar <michiel.cottaar@ndcn.ox.ac.uk>
Date: Mon, 26 Feb 2024 12:17:04 +0000
Subject: [PATCH] Set lower scanner constraint

---
 src/variables.jl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/variables.jl b/src/variables.jl
index 37e600d..52fc853 100644
--- a/src/variables.jl
+++ b/src/variables.jl
@@ -396,9 +396,11 @@ function scanner_constraints!(bb::AbstractBlock)
         if value isa AbstractVector
             for v in value
                 @constraint global_model() v <= f(global_scanner())
+                @constraint global_model() v >= -f(global_scanner())
             end
         else
             @constraint global_model() value <= f(global_scanner())
+            @constraint global_model() value >= -f(global_scanner())
         end
     end
 end
-- 
GitLab