lsa-pucrs / mas-pc-pucrs-2016

Repository for the 2016 MAS programming contest: https://multiagentcontest.org/
2 stars 1 forks source link

Vehicle buying more than its load capacity #45

Open tbasegio opened 9 years ago

tbasegio commented 9 years ago

Vehicle buying more than its load capacity

-updated the load capacity to values: Car/550, Drone/100, Motorcycle/300 and Truck/1000 -two priced jobs in the simulation job2- 30x tool3 - no winner for this job - as expected job3- 3x tool3. tool3 volume is 30 which means volume 90 (3x30) for job3. -Drone has its capacity up to 100. Thus Drone would be able to load all job3 items. But to assemble tool3 its necessary 8x base1 to each tool3. It means that for 3x tool3 it's necessary to buy 24x base1 and that would not be able to Drone buy due to its capacity.

-As result the Drone bought 24x base1 and that is a problem.

(TS#21)

rafaelcaue commented 9 years ago

Aqui funcionou normalmente, com 3x tool3 no job o drone posta bid 0 e não ganha a task.

Eu verifiquei a regra que resolve isso, calculateBasesLoad, e tudo está funcionando.

Talvez tu tenha testado em uma versão anterior ao commit 69ac420c766923e77f88c99ed49e2e7de6ccc10a

Fechando por enquanto, se conseguir replicar reabrimos.

tbasegio commented 9 years ago

Retested: Vehicle buying more than its load capacity

Steps to reproduce: -Create a priced job requesting 10x base3 -In the products xml file base3 has vloume = 500. -Drone load capacity is 2500.

Execution: -Drone gave a bid and won the task. -Drone brought all 10x base3 items which exceeds its load capacity.

Retested on commit: db1c2e3e88.

(TS#21)