lsa-pucrs / mas-pc-pucrs-2016

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

Multiple actions buy #81

Open TabajaraKrausburg opened 8 years ago

TabajaraKrausburg commented 8 years ago

[vehicle7] Awarded task to get [item(item5,1)] at shop6 [vehicle7] Action: goto(facility(shop6)) - Step: 48 [vehicle7] Action: buy(item(item5),amount(1)) - Step: 53 [vehicle7] Action: buy(item(item5),amount(1)) - Step: 53 [vehicle7] Action: buy(item(item5),amount(1)) - Step: 54 [vehicle7] Action: buy(item(item10),amount(1)) - Step: 60 [vehicle7] Action: buy(item(item10),amount(1)) - Step: 60 [vehicle7] Action: buy(item(item10),amount(1)) - Step: 60 [vehicle7] Action: buy(item(item9),amount(1)) - Step: 63 [vehicle7] Action: buy(item(item9),amount(1)) - Step: 63 [vehicle7] Action: buy(item(item18),amount(1)) - Step: 64 [vehicle7] Action: buy(item(item18),amount(1)) - Step: 66 [vehicle7] Action: buy(item(item18),amount(1)) - Step: 66 [vehicle7] Action: buy(item(item18),amount(1)) - Step: 67 [vehicle7] Action: buy(item(item18),amount(1)) - Step: 68 [vehicle7] Action: buy(item(item18),amount(1)) - Step: 68 [vehicle7] Action: buy(item(item18),amount(1)) - Step: 68 [vehicle7] Action: buy(item(item18),amount(1)) - Step: 71 [vehicle7] Action: buy(item(item18),amount(1)) - Step: 71 [vehicle7] Action: buy(item(item18),amount(1)) - Step: 71 [vehicle7] Action: buy(item(item18),amount(1)) - Step: 74 [vehicle7] Action: buy(item(item18),amount(1)) - Step: 74 [vehicle7] Action: buy(item(item18),amount(1)) - Step: 76 [vehicle7] Action: buy(item(item18),amount(1)) - Step: 78 [vehicle7] Action: buy(item(item18),amount(1)) - Step: 78 [vehicle7] Action: buy(item(item18),amount(1)) - Step: 79 [vehicle7] Action: buy(item(item18),amount(1)) - Step: 81 [vehicle7] Action: buy(item(item18),amount(1)) - Step: 81

image

image

rafaelcaue commented 8 years ago

hahaha -167k :fearful:

ele ta com o wait de 1500 ms no buy? não deveria ser possível dar mais de um buy por step, isso é com o código sem nenhuma modificação?

TabajaraKrausburg commented 8 years ago

Tem algumas modificações, estou implementando a estratégia esbanjarGrana hahahaha

Mas acredito que ele faz várias vezes essa ação pq não está sendo considerado o "failed_capacity"

rafaelcaue commented 8 years ago

sim mas ele nunca deveria estourar o load dele isso já é garantido nas contract nets o problema foi que ele repetiu os buys:

[vehicle7] Action: buy(item(item5),amount(1)) - Step: 53 [vehicle7] Action: buy(item(item5),amount(1)) - Step: 53 [vehicle7] Action: buy(item(item5),amount(1)) - Step: 54 [vehicle7] Action: buy(item(item10),amount(1)) - Step: 60 [vehicle7] Action: buy(item(item10),amount(1)) - Step: 60 [vehicle7] Action: buy(item(item10),amount(1)) - Step: 60 [vehicle7] Action: buy(item(item9),amount(1)) - Step: 63 [vehicle7] Action: buy(item(item9),amount(1)) - Step: 63

Quando deveria ter feito apenas 1 buy por item. Quando ele foi fazer o último buy já tinha estourado o load porque veio item a mais do que ele tinha planejado comprar.

TabajaraKrausburg commented 8 years ago

Aham, pode ser, pode ser

Vou fazer mais uns testes aqui daee eu aviso (:

rafaelcaue commented 8 years ago

vou ver se acontece no código atual também