In MiniZinc how can I resolve this error?
问题 In MiniZinc how can I get this code to compile without the error "no function or predicate with this signature found: `round(var float)'"? var int: D = 1; var int: F; constraint F = round (D / 2); 回答1: The message simply mean that MiniZinc don't have any support for round() with decision variables i.e. "round(var float)". It only support "round(float)" i.e. fixed float values. It's the same with ceil() and floor(), there is only support fixed float values. MiniZinc 2.0 automatically converts