Conversation
…dtPy, add test case for this bug fixing
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Tarik Levent Guler <64302098+tarikLG@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 40 out of 40 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 40 out of 40 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
bernalde
left a comment
There was a problem hiding this comment.
Good PR, I left a number of comments. Please address them and answer each one of them. Do not mark them as resolved as I will later look at them during the follow-up revision. Even if you find them unreasonable, do not just ignore them
| @@ -75,4 +93,5 @@ def add_cuts( | |||
| ) | |||
|
|
|||
| def MindtPy_iteration_loop(self): | |||
There was a problem hiding this comment.
Shouldn't it be specific to the feaspump?
There was a problem hiding this comment.
By this, I mean change the function name
|
|
||
| Call after solve fixed NLP subproblem. | ||
| Use the optimal primal bound of the relaxed problem to update the dual bound. | ||
| Call after solving a primal-feasible subproblem (typically fixed NLP). |
There was a problem hiding this comment.
Again, can this ever be a non-NLP?
Co-authored-by: David Bernal <dbernaln@purdue.edu>
Standardizes test model naming conventions for clarity and Python style, renaming MINLP example files and classes to lowercase and CamelCase formats. Removes redundant legacy test models, updates imports and references throughout the MindtPy test framework, and adds minor docstring improvements for better documentation consistency. Enhances maintainability by enforcing backward-compatible aliases where necessary and clarifying test model purposes. No functional solver logic is changed; only test model structure and integration are affected.
Corrects the indentation of class alias definitions to be outside the class scope, ensuring proper aliasing and adherence to Python conventions. No functional changes introduced.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 40 out of 40 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| from pyomo.environ import Var, Integers, ConcreteModel, Integers | ||
| from pyomo.contrib.mindtpy.algorithm_base_class import _MindtPyAlgorithm |
There was a problem hiding this comment.
The from pyomo.environ import ... statement imports Integers twice. This is redundant and may trip some linters; please remove the duplicate name from the import list.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
|
||
|
|
||
| # Backward-compatible alias. | ||
| SimpleMINLP = MinlpSimple |
There was a problem hiding this comment.
I don't think we need these aliases. Let's remove them by checking tests across the whole pyomo to avoid breaking things elsewhere
There was a problem hiding this comment.
I've gotten rid of the aliases
| @@ -474,6 +524,13 @@ def build_ordered_component_lists(self, model): | |||
| ) | |||
|
|
|||
| def add_cuts_components(self, model): | |||
There was a problem hiding this comment.
add_cut_and_feas_components
| @@ -75,4 +93,5 @@ def add_cuts( | |||
| ) | |||
|
|
|||
| def MindtPy_iteration_loop(self): | |||
There was a problem hiding this comment.
By this, I mean change the function name
…tyPump2; enhance add_orthogonality_cuts function with lazy initialization of cut containers.
…s for clarity and consistency
…d MinlpSimple classes in test files.
…d MinlpSimple classes in test files. Rename test model classes for consistency Updates test model class names to standardize naming conventions across test files, improving clarity and consistency. Removes backward-compatible aliases as part of the cleanup.
Merge main into polishing
Fixes # .
Summary/Motivation:
Improves code documentation and maintainability of the MindtPy solver package by enhancing docstrings to comply with Pyomo documentation standards. This PR adds comprehensive module-level documentation, refines function and method docstrings with NumPy-style formatting, and ensures consistency across the codebase.
Changes proposed in this PR:
MindtPy.py)algorithm_base_class.py)config_options.py)cut_generation.py)single_tree.py,tabu_list.py)util.py)Legal Acknowledgement
By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution: