Skip to content

Commit

Permalink
No max memory for Z3 opt
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomSerg committed Jun 6, 2024
1 parent d817f44 commit efb2854
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xcsp3/executable/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ def z3_arguments(args: Args, model:cp.Model):
# Opt parameters
if args.opt:
res |= {
"memory_max_size": bytes_as_mb(remaining_memory(args.mem_limit)) if args.mem_limit is not None else None,
# opt does not seem to support setting max memory
# "memory_max_size": bytes_as_mb(remaining_memory(args.mem_limit)) if args.mem_limit is not None else None,
}

return {k:v for (k,v) in res.items() if v is not None}
Expand Down

0 comments on commit efb2854

Please sign in to comment.