Skip to content

Commit

Permalink
Attempting to fix variable mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Henry committed Feb 14, 2025
1 parent a472beb commit 89d8471
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modelseedpy/fbapkg/problemreplicationpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ def build_package(self, parameters):
self.variables[str(count)] = {}
newobj = []
new_var_hash = {}
othermdl.solver = "gurobi"
for var in othermdl.variables:
if var.name not in shared_var_hash:
print("Original variable: " + str(Variable))
newvar = Variable.clone(var)
print("Copy variable: " + str(newvar))
newvar.name = var.name + "." + str(count)
self.variables[str(count)][var.name] = newvar
new_var_hash[var.name] = newvar
Expand Down

0 comments on commit 89d8471

Please sign in to comment.