我尝试在单个mzn
文件中应用如下结构:
define Variables;
%% first set of constraints
constraint ...;
constraint ...;
solve satisfy;
%% second set of constraints
constraint ...;
constraint ...;
solve satisfy;
其中第二组约束是应用于 first 的结果的约束solve
,单独进行操作会减少搜索空间,从而减少计算时间,这就是我首先提出这种结构的原因。
有没有办法实现这种依赖结构?由于 MiniZinc 不允许两个solve
.