timefold-solver icon indicating copy to clipboard operation
timefold-solver copied to clipboard

ListVariables with an empty element list should do nothing (not throw IllegalStateException)

Open ge0ffrey opened this issue 2 years ago • 2 comments

Instead it should just log that it couldn't do anything.

To reproduce, solve a ListVariable VRP (= quickstart) with an empty Visit list.

To see how it should behave - for consistency - solve employee scheduling with an empty shift list. Watch the DEBUG log.

ge0ffrey avatar Jun 10 '23 14:06 ge0ffrey

There are unit tests for non-list variables around this.

ge0ffrey avatar Jun 10 '23 14:06 ge0ffrey

image

triceo avatar Dec 11 '23 14:12 triceo