upload a json-formatted input problem with hard-coded capacity constraints
manually add a job by clicking/geocoding via the UI
try to solve and get an error alert that looks like: Inconsistent amount/capacity lengths: 0 and 1.
What happens
When everything is defined manually through the UI, no capacity/amounts are provided. In order to easily demo multiple-vehicle problems, load-balancing is then enforced here. But when mixing an input file and manual additions, we have an inconsistent state where not all capacity/amounts are defined.
Fix
We should have some kind of flag to know whether the current underlying instance has capacity constraints or not (regardless of how it was defined) in order to:
rely on this flag to known whether enforced load-balancing is required (above link)
force a consistent state when adding an amount-less job, probably by deleting all existing capacity/amount information (and reporting this to the user).
Steps to reproduce
Inconsistent amount/capacity lengths: 0 and 1.
What happens
When everything is defined manually through the UI, no capacity/amounts are provided. In order to easily demo multiple-vehicle problems, load-balancing is then enforced here. But when mixing an input file and manual additions, we have an inconsistent state where not all capacity/amounts are defined.
Fix
We should have some kind of flag to know whether the current underlying instance has capacity constraints or not (regardless of how it was defined) in order to: