You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I managed to make it work by wrapping the list of costs with pycsp3.tools.curser.ListInt. I take the opportunity to ask if float is a supported type when minimizing/maximizing an objective.
indeed, when data are directly given in the code (and not loaded from a file),
you may need to get the right type for lists of integers (and lists of variables)
by calling cp_array as in: costs = cp_array(costs)
For the moment, float is not supported (but it may be the case in the future).
I am trying to reproduce the Warehouse Location problem shown in the docs. I am getting the title error as soon as I use the variable
w
for indexing:Any hints?
The text was updated successfully, but these errors were encountered: