Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DSDA_Improvement #11

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

DSDA_Improvement #11

wants to merge 4 commits into from

Conversation

AlbertLee125
Copy link
Member

I commentted out the dsda_function.py import MasterProblemResults. The current pyomo.GDPopt does not have data_class.py anymore. Moreover, I set the mip_transformation as False. There are issues on the external_ref() function in dsda_function.py

Copy link
Member

@bernalde bernalde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that you removed the MIP transformation for each one of these steps. I would like you to check each subproblem, what the instance looks like, and what that MIP transformation is introducing. Start with small_batch.

@@ -152,7 +152,7 @@ def problem_logic_batch(m):
model_args={},
starting_point=starting_point,
ext_dict=ext_ref,
mip_transformation=True,
mip_transformation=False,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that you removed the MIP transformation for each one of these steps. I would like you to check each subproblem, what the instance looks like, and what that MIP transformation is introducing. Start with small_batch.

@@ -163,7 +163,7 @@ def problem_logic_batch(m):
iter_timelimit=timelimit,
timelimit=timelimit,
gams_output=False,
tee=globaltee,
tee=False,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why removing the tee?

@@ -11,7 +11,7 @@
from gdp.dsda.model_serializer import StoreSpec, from_json, to_json
from pyomo.common.errors import InfeasibleConstraintException
from pyomo.contrib.fbbt.fbbt import fbbt
from pyomo.contrib.gdpopt.data_class import MasterProblemResult
# from pyomo.contrib.gdpopt.data_class import MasterProblemResult
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is not imported anywhere, do not just comment it out but remove it

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I removed the imports

@AlbertLee125
Copy link
Member Author

I made a separate environment containing Pyomo with Zedong's version of the LD-SDA code. I added the benchmark code and its results.

@bernalde
Copy link
Member

These do not correspond to the results in the paper and there is no clear comparison between this implementation and the one from Zedong. My recommendation is to keep this repository as close to the paper as possible.
You can have a separate directory comparing with Zedong's code as it will require slightly different model implementations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants