我试图在MiniZinc中使用字符串连接运算符定义一个约束,解决变量a和b的问题。constraint("var1/var2" = (a ++ "/" ++ b));
output ["\nx=", show(a)];MiniZincmatching operator found with left-hand side type `string' and
我试图在单个mzn文件中应用如下结构:constraint ...;solve%% second set of constraintsconstraint ...;如果第二组约束是应用于第一次solve,操作结果的约束,那么单独执行操作将减少搜索空间,从而减少计算时间,这也是我首先提出这种结构的原因。因为MiniZinc不允许两个