From 500244cd6707c87fec9650f2f1e6e28b096479a9 Mon Sep 17 00:00:00 2001 From: mitchphillipson Date: Wed, 27 Sep 2023 10:02:01 -0500 Subject: [PATCH] Fix typo in activating elements --- src/GamsSet.jl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/GamsSet.jl b/src/GamsSet.jl index 6419ff4..10d2ce8 100644 --- a/src/GamsSet.jl +++ b/src/GamsSet.jl @@ -54,12 +54,12 @@ Deactivate the given elements from the set. function deactivate(GU::GamsUniverse,s::Symbol,elements...) N = 0 for elm in elements - if GU[:s][elm].active - GU[:s][elm].active = false + if GU[s][elm].active + GU[s][elm].active = false N+=1 end end - GU[:s].length += -N + GU[s].length += -N end """ @@ -70,12 +70,12 @@ Activate the given elements from the set. function activate(GU::GamsUniverse,s::Symbol,elements...) N = 0 for elm in elements - if !GU[:s][elm].active - GU[:s][elm].active = true + if !GU[s][elm].active + GU[s][elm].active = true N+=1 end end - GU[:s].length += N + GU[s].length += N end