Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Conversation

@ZedongPeng
Copy link
Member

Changes

  • Remove the redundant boolean variables in the CSTR model.

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 would like you to review if this model can be solved by LOA as it looks similar to the changes that I made earlier with @AlbertLee125 that would fail in that.
More importantly, there are issues that are being resolved with the model right now so I would hold from merging these until we are clear in that front

@bernalde
Copy link
Member

@AlbertLee125 any news?

@AlbertLee125
Copy link
Member

if __name__ == "__main__":
    m = build_model(NT=5)
    subsolver = 'scip'
    pyo.SolverFactory("gdpopt.loa").solve(
        m,
        tee=True,
        nlp_solver=subsolver,
        mip_solver=subsolver,
        minlp_solver=subsolver,
        local_minlp_solver=subsolver,
    )

Running the reformed code with the given script. The model can be solved by LOA and the objective found by LOA is similar to the objective solved by GDP reformulation.

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.

4 participants