Skip to content

Get counted sols - #1270

Open
Joao-Dionisio wants to merge 5 commits into
masterfrom
get-counted-sols
Open

Joao-Dionisio wants to merge 5 commits into
masterfrom
get-counted-sols

Conversation

@Joao-Dionisio

@Joao-Dionisio Joao-Dionisio commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Fix #906

Adds the ability to get counted solutions. An appropriate flag needs to be set before solving (m.setParam("constraints/countsols/collect", True)), and after m.count() (instead of m.optimize()), one can get the enumerated solutions with m.getCountedSols() (and not m.getSols()).
Aggregated solutions make getting the counted solutions in terms of the original variables annoying, so I am, for now, requiring that presolving should be turned off. Multi-aggregation and original variables was heavily discussed during the 2026 in-person meeting.

@abb-omidi , can you please take a look at this? Does it fix your issue?

This branch has not been deployed

No deployments
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.

The issue to writing the multiple solutions

1 participant