Skip to content

Test solvers design#1

Open
eminyouskn wants to merge 2 commits intomasterfrom
test-solvers
Open

Test solvers design#1
eminyouskn wants to merge 2 commits intomasterfrom
test-solvers

Conversation

@eminyouskn
Copy link
Owner

This PR just to start review of the test solvers suite.

eminyouskn pushed a commit that referenced this pull request Oct 7, 2025
self._tests = {}

def _get_or_create_test_meta(self, func: Callable) -> SolverTestMeta:
name = func.__name__

Choose a reason for hiding this comment

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

I worry about name conflicts here.

Choose a reason for hiding this comment

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

Let's use the function and the name to identify name conflicts and raise errors?

Comment on lines +18 to +23
include: Optional[List[Union[str, re.Pattern]]] = None,
exclude: Optional[List[Union[str, re.Pattern]]] = None,
include_tags: Optional[List[str]] = None,
exclude_tags: Optional[List[str]] = None,
warn_unsupported: bool = False,
warn_unavailable: bool = False,

Choose a reason for hiding this comment

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

Can you describe each of these in a docstring?

Choose a reason for hiding this comment

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

Particularly the first two. They are not obvious to me.

pass


add_tests(TestSolvers, GurobiDirect)

Choose a reason for hiding this comment

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

Does the order in which python imports files matter here?

Copy link

@michaelbynum michaelbynum Oct 21, 2025

Choose a reason for hiding this comment

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

Maybe this is just something we address with documentation.

eminyouskn pushed a commit that referenced this pull request Feb 16, 2026
eminyouskn pushed a commit that referenced this pull request Feb 16, 2026
Removed the tabulate dependency and replaced it with simple logger output.
Fixed _solve_GDP_subproblem so primal_bound is None when the solver fails (not just on preprocessing infeasibility).
eminyouskn pushed a commit that referenced this pull request Feb 19, 2026
* TXP-7757: removed most deprecation warnings up to current unpublished release

* Fixed more warnings

* Missing version agnostic functions

* Fixed version specific LPStatus enums + renamed get-lb/ub methods

* Suggested improvements
eminyouskn pushed a commit that referenced this pull request Feb 19, 2026
[Xpress] Remove deprecation warnings (#1)
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