错误现象:在solver中加入了non-negative constraint后,进行计算的结果仍为小数。
解决方案:
solver的options中取消勾选’ignore Integer Constraints’
出现了整数结果:
错误现象:在solver中加入了non-negative constraint后,进行计算的结果仍为小数。
解决方案:
solver的options中取消勾选’ignore Integer Constraints’
出现了整数结果: