Paolo Dragone

Results 5 comments of Paolo Dragone

Hello Dominic, Regarding your first question, the function `pymzn.minizinc` should return a `Solutions` object regardless of the solver (see [here](https://github.com/paolodragone/pymzn/blob/master/pymzn/mzn/output.py#L49)). This object behaves like a list of solutions, so the...

> Unfortunately, opt = s[-1] delivers the optimal solution, in my case the optimal set of items for the knapsack problem. But it does not give me the objective value...

Hello @Moisan, so there actually is a way to do it: `pymzn.minizinc` returns a `Solutions` object ([docs](http://paolodragone.com/pymzn/reference/minizinc/generated/pymzn.Solutions.html#pymzn.Solutions)) which contains a field called `log`, which just contains the log of the...

Indeed the parser is expecting a floating point to look like `1.0` or `0.5`, and refuses to parse a `1` (which is something I could fix). I wonder why this...

Hi @weipeihong, This is likely to be a problem with your environment variables. You need to check in your terminal if you are able to launch the `minizinc` executable. If...