Tribal wars scavenging script4/25/2024 ![]() Unfortunately with my knowledge from my university, I was unable to solve the model with an LP solver (because it's not linear) or with a Lagrange multiplier (no closed form solution as far as I can tell). I'm not going to put the details for all of this here, but I'll post it in a reply if anyone is interested. Then I constructed a non-linear mixed integer program to maximize the sum of the rates of each tier. By using quadratic regression, I was able to get a pretty accurate function for resource rate vs number of spear fighters for each tier. I first wanted to solve this problem with only spear fighters and then attempt to expand it to all units. (This method didn't work, but I thought it was interesting. Here we can see the concept of diminishing returns, which is the reason behind why it is better to split up your troops between tiers instead of putting them all into the highest one. haul capacity for the first 3 scavenging tiers. Below are graphs of the functions of resource rate vs. So because the number of scavenge-able resources (r) is a function of the carrying capacity of your troops, and the scavenging time (t) is a function of the number of scavenge-able resources, we should be able to get a function for the resource rate (r/t) given only the quantity of each troop type or the total haul capacity. total haul capacity (x-axis) for the first 3 tiers. Below are the graphs of scavenging time (y-axis) vs. It does not take into account travel speed. Tier 4 (Great Gatherers): 75% of total haul capacityĪfter experimenting for a short while, I discovered that the scavenging time is a linear function solely based on the number of resources that will be gathered. Tier 3 (Clever Collectors): 50% of total haul capacity ![]() Tier 2 (Humble Haulers): 25% of total haul capacity Tier 1 (Lackadaisical Looters): 10% of total haul capacity Each tier returns a percentage of the total carrying capacity of the army you send. To start, we need an idea of how the number of resources and the scavenging time are determined when you enter your troops into the scavenging page. Given a number of soldiers, how can we distribute them among the 4 tiers of scavenging to maximize the resource rate? So with that information, the problem is this:
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |