Let teams compete by making them create hard instances and fast solvers for problems of your choice. Then pitch these instances and solvers against one another. All language-agnostic.
Do note the items attribute: It is defined as a list of Points, which themselves are a tuple with members lengthItem and widthItem. These two members are defined to each be in an interval between 1 and InstanceRef.length.
This last guard seems to be completely ignored. Students are able to pass items such as (0,0) and to exceed the implicit guard of u64, of length and width.
Is this a problem of the concrete way we annotated these attributes?
We have designed a problem for packing a 2D Knapsack as full as possible. Here is a snippet from the
problem.py
:Do note the
items
attribute: It is defined as a list ofPoint
s, which themselves are a tuple with memberslengthItem
andwidthItem
. These two members are defined to each be in an interval between1
andInstanceRef.length
.This last guard seems to be completely ignored. Students are able to pass
item
s such as(0,0)
and to exceed the implicit guard ofu64
, oflength
andwidth
.Is this a problem of the concrete way we annotated these attributes?