发布于 2020-10-06 01:04:11
CLP是针对连续线性规划问题的,因此没有整数可行容差。MIP解算器称为CBC。在CBC提示符下键入integerT??,您将看到类似以下内容:
D:\Python\Python37\Scripts>cbc
Welcome to the CBC MILP Solver
Version: 2.9.0
Build Date: Feb 12 2015
CoinSolver takes input from arguments ( - switches to stdin)
Enter ? for list of commands or help
Coin:integerT??
integerT(olerance) : For an optimal solution no integer variable may be this away from an integer value
Beware of setting this smaller than the primal tolerance.
<Range of values is 1e-020 to 0.5;
current 1e-006>
Coin:这是一个旧版本,所以请用你的CBC.EXE检查它。
请注意,有许多公差在起作用:可行性公差、最优性公差。此外,缩放和预解析可能会产生影响。我通常会保留所有这些容差不变。修正模型往往比修补这些公差要好得多。
如果您需要极高的精度,有所谓的rational MIP解算器。然而,它们往往非常慢。
https://stackoverflow.com/questions/64212989
复制相似问题