ArgumentNullException raised when calling StateInteger.SearchAllSolutions
See original GitHub issueI’m trying to enumerate all solutions for a custom point structure P(X, Y)
where the variables X and Y are defined as having the domain [0, 10]
. I’m expecting 11*11 = 121
solutions in the unconstrained case. The solver returns all solutions correctly, but fails at the very end with a NRE.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This bug has been fixed by https://github.com/lifebeyondfife/Decider/pull/60. Thanks once more, @G3Kappa. Hope Decider is useful for your hobby project.
Found the issue. Searching all solutions where every combination is a valid possibility eventually leads to searching for a solution which has an empty variable. This causes the search routine to fail when trying to instantiate the empty variable. I’ve put a check for empty variables in the search function before starting.
I’ll create a PR sometime this week and publish a new nuget package.