liangrj2014 / ISPD24_contest

20 stars 0 forks source link

The variable type of capacity #14

Closed cai-zhi-jie closed 8 months ago

cai-zhi-jie commented 10 months ago

In the cap file, there is a float capacity: image

But in the evaluator, the Gcell takes the capacity as unsigned int: image

Is there a contradiction here?

cai-zhi-jie commented 10 months ago

Besides, the unsigned type capacity will also lead to 0 capacity when the actual capacity is a float number, which may be a bug. image

liangrj2014 commented 10 months ago

Thanks for pointing out the bugs! We will update the cap files to make sure all the capacity values are ints.

profmadden commented 10 months ago

Vias passing through a grid cell take a fractional amount of demand from the borders. I'd suggest making the capacity in the evaluator a float, so that the cost functions and routing problems could model things like incremental routing (where some routes and via locations are fixed -- resulting in fractional remaining capacity on the routing grid).

liangrj2014 commented 10 months ago

That's a good point! We will make the capacity in the evaluator a float instead. Thanks for the great suggestion!