From 65fa45eac7b60e1282f7a30c05336342c5e57726 Mon Sep 17 00:00:00 2001 From: Jeremy Saklad Date: Fri, 18 Jun 2021 13:49:44 -0500 Subject: [PATCH] Fix identifier for torso style variable The previous identifier used an underscore instead of a space to separate the words. --- Bone Market Solver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bone Market Solver.py b/Bone Market Solver.py index e216603..a3483ea 100644 --- a/Bone Market Solver.py +++ b/Bone Market Solver.py @@ -1238,7 +1238,7 @@ def Solve(bone_market_fluctuations, zoological_mania, occasional_buyer = None, d # Torso Style calculation - torso_style = model.NewIntVarFromDomain(cp_model.Domain.FromValues([torso.value.torso_style for torso in Torso]), 'torso_style') + torso_style = model.NewIntVarFromDomain(cp_model.Domain.FromValues([torso.value.torso_style for torso in Torso]), 'torso style') for torso, torso_variable in {key: value for (key, value) in actions.items() if isinstance(key, Torso)}.items(): model.Add(torso_style == torso.value.torso_style).OnlyEnforceIf(torso_variable)