Skip to content

Commit

Permalink
[WIP] gams_guest.py has debugging prints
Browse files Browse the repository at this point in the history
  • Loading branch information
DLWoodruff committed Nov 15, 2024
1 parent fa0ddab commit f801a59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mpisppy/agnostic/gams_guest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 = "+"
Expand Down

0 comments on commit f801a59

Please sign in to comment.