We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0810c36 commit ff0b84fCopy full SHA for ff0b84f
.envrc
src/minizinc/instance.py
@@ -342,9 +342,11 @@ async def diverse_solutions(
342
with inst.branch() as child:
343
# Add constraints to the model that sets the decision variables to the reference solution, if provided
344
if reference_solution:
345
- if isinstance(reference_solution, Result) and is_dataclass(
346
- reference_solution.solution
347
- ) and not isinstance(reference_solution.solution, type):
+ if (
+ isinstance(reference_solution, Result)
+ and is_dataclass(reference_solution.solution)
348
+ and not isinstance(reference_solution.solution, type)
349
+ ):
350
solution_obj = asdict(reference_solution.solution)
351
else:
352
assert isinstance(reference_solution, dict)
0 commit comments