Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Help moving model to float (arithmetic error: arithmetic operation on infinite value) #138
I'm trying to solve a constraints problem using MiniZinc, and I'm encountering an issue while trying to move my model to use floats.
This is my first time using MiniZinc, so I might be misusing it or making a silly mistake.
Problem: Given a matrix with products X feature weights, select multiple products that respect the sum constraints. One product can be chosen multiple times.
I started from the Knapsack example, here: https://github.com/MiniZinc/minizinc-examples/blob/master/knapsack/knapsack01.mzn, removed solving for maximizing profit and generalized for nFeatures.
The model executes correctly for integer inputs, but I need the model to work with floats instead.
but I'm getting the following error:
Am I doing something wrong?