From f801a59f826529a5fb4db4b1b39350e3c2cf933d Mon Sep 17 00:00:00 2001 From: "David L. Woodruff" Date: Fri, 15 Nov 2024 09:09:08 -0800 Subject: [PATCH] [WIP] gams_guest.py has debugging prints --- mpisppy/agnostic/gams_guest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mpisppy/agnostic/gams_guest.py b/mpisppy/agnostic/gams_guest.py index 7e6eeee45..ab3e7a8a0 100644 --- a/mpisppy/agnostic/gams_guest.py +++ b/mpisppy/agnostic/gams_guest.py @@ -63,10 +63,13 @@ def scenario_creator(self, scenario_name, **kwargs): opt = ws.add_options() opt.all_model_types = self.cfg.solver_name + print(f"about to instantiate {glist=}, {opt=}") if LINEARIZED: mi.instantiate("simple using lp minimizing objective_ph", glist, opt) else: mi.instantiate("simple using qcp minimizing objective_ph", glist, opt) + print("done with instantiate; quitting") + quit() ### Calling this function is required regardless of the model # This functions initializes, by adding records (and values), all the parameters that appear due to PH @@ -343,7 +346,7 @@ def create_ph_model(original_file_path, new_file_path, nonants_name_pairs): if line.startswith("solve"): # Should be in the last lines. This line words = re.findall(r'\b\w+\b', line) - print(f"{words=}") + # print(f"{words=}") if "minimizing" in words: sense = "minimizing" sign = "+"