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
ValueError: could not broadcast input array from shape (0) into shape (96997)
The text was updated successfully, but these errors were encountered:
diegofrias
changed the title
one of the dyn_prog functions have a runtime error ...
one of the dyn_prog functions returns runtime error ...
Apr 2, 2021
testing the 14 functions, we found one (solve_numpy_func_buffer) that returns an the error message below:
13 : numpy-b
ValueError Traceback (most recent call last)
in
478
--> 479 solution_value, solution_weight, taken = solver(capacity, items, weights, values)
480
481 if verbose:
in solve_numpy_func_buffer(capacity, items, weights, values)
358 this_value = values[item]
359 grid[item+1, :this_weight] = grid[item, :this_weight]
--> 360 temp[:capacity+1-this_weight] = grid[item, :-this_weight] + this_value
361 grid[item + 1, this_weight:] = np.where(temp[:-this_weight] > grid[item, this_weight:], temp[:-this_weight], grid[item, this_weight:])
362
ValueError: could not broadcast input array from shape (0) into shape (96997)
The text was updated successfully, but these errors were encountered: