Skip to content

Conversation

@viens-code
Copy link

Updates to the solnpool repo to work into Pyomo WIP: Solution Pool Pyomo#3657

By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the BSD license.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

Added non-positive error check and value 1 warning for num_solutions in balas
Added num_solution error if num_solutions is non-positive, warning if num_solutions =1
Added checks and warnings for num_solutions as non-positive or 1 respectively
…de=1

Added num_solution checks and warnings for non-positive and 1 values respectively. Allowed PoolSearchMode=1 if users want, but included warning about unexpected behavior
Added checks to the policies supporting max_pool_size to error on non-positive pool size
The functionality to catch invalid policies already existed in PoolManager. Added the corresponding tests for invalid policies with and without extra arguments
Added methods to get the active pool name and the list of all pool names in the PoolManager and corresponding tests
Added the placeholder for the SolutionPoolBase so it can easily be retreived elsewhere without looking at the name of the subclass
Added methods to get the active pool and all pools policy and max_pool_sizes. Added corresponding tests
.pool -> .active_pool
._pool -> ._pools
Stresses the active pool in use and the tools to touch on multiple pools
Old to_dict method worked on all pools, renamed get_pool_dicts
New to_dict is pass through to active pool
@viens-code viens-code merged commit 73f8567 into or-fusion:solnpool Sep 5, 2025
viens-code pushed a commit that referenced this pull request Oct 1, 2025
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.

1 participant