Mathematical problem
-
- Ninja
- Posts: 13004
- Joined: Apr 28, 2020
Mathematical problem
Please help.
You want to produce 9000 wine bottles. Each worker can produce 0.64 wine bottles per day. Every worker must be paid a fixed payment of 50 wine bottles to start working and they continue working until 9000 wine bottles are produced.
You can not produce more than 9000 wine bottles because WickedCossack wants to decrease alcoholism among community.
However, since a wine bottle is produced it increases its value by 0.7% per day. Wine bottles paid on day 1 to workers start growing value immediately.
For example: 3 days old wine bottle is worth 1.007^3 = 1.0211 (day 1) wine bottles.
You can hire as many workers as you want (but keep in mind the opportunity cost, the bottles you pay the workers would also increase their value).
How many workers do you hire to maximize your profit?
You want to produce 9000 wine bottles. Each worker can produce 0.64 wine bottles per day. Every worker must be paid a fixed payment of 50 wine bottles to start working and they continue working until 9000 wine bottles are produced.
You can not produce more than 9000 wine bottles because WickedCossack wants to decrease alcoholism among community.
However, since a wine bottle is produced it increases its value by 0.7% per day. Wine bottles paid on day 1 to workers start growing value immediately.
For example: 3 days old wine bottle is worth 1.007^3 = 1.0211 (day 1) wine bottles.
You can hire as many workers as you want (but keep in mind the opportunity cost, the bottles you pay the workers would also increase their value).
How many workers do you hire to maximize your profit?
- edeholland
- ESOC Community Team
- Posts: 5033
- Joined: Feb 11, 2015
- ESO: edeholland
- GameRanger ID: 4053888
- Clan: ESOC
Re: Mathematical problem
What upgrades do you have on your workers?
Re: Mathematical problem
What does the interest rate of dollar being .7% mean? Also, Iām assuming the increase in value of the wine bottle is compunded?
last time i cryed was because i stood on Legoļ»æ
- edeholland
- ESOC Community Team
- Posts: 5033
- Joined: Feb 11, 2015
- ESO: edeholland
- GameRanger ID: 4053888
- Clan: ESOC
Re: Mathematical problem
You also need the production rate of the workers.
Re: Mathematical problem
Ohh I just saw this is actually an aoe priblem lol
last time i cryed was because i stood on Legoļ»æ
-
- Ninja
- Posts: 13004
- Joined: Apr 28, 2020
Re: Mathematical problem
Wait, give me a sec. It doesn't work like I want atm.
Re: Mathematical problem
A while back I made a thread calculating how much res you lose if you stop making vills vs if you keep making vills. Maybe that could help.
last time i cryed was because i stood on Legoļ»æ
-
- Ninja
- Posts: 13004
- Joined: Apr 28, 2020
Re: Mathematical problem
ovi12 wrote:What does the interest rate of dollar being .7% mean? Also, Iām assuming the increase in value of the wine bottle is compunded?
Yes.
I concluded it's easier to explain without dollars. Simply, if you now spend 50 wine bottles hiring a worker, you have to consider the lost (opportunity cost) value in the end.
-
- Ninja
- Posts: 13004
- Joined: Apr 28, 2020
Re: Mathematical problem
edeholland wrote:You also need the production rate of the workers.
It's given. 0.64 wine bottles per day per worker.
- edeholland
- ESOC Community Team
- Posts: 5033
- Joined: Feb 11, 2015
- ESO: edeholland
- GameRanger ID: 4053888
- Clan: ESOC
Re: Mathematical problem
This analogy is confusing. So there's 9000 resources and a boat is 50 resources? Does that take gathering rates into account?
Re: Mathematical problem
I dont get what the last paragraph means. What increases in value??
-
- Ninja
- Posts: 13004
- Joined: Apr 28, 2020
Re: Mathematical problem
edeholland wrote:This analogy is confusing. So there's 9000 resources and a boat is 50 resources? Does that take gathering rates into account?
So let's say hire 1 worker. You pay 50 resources for a boat. It starts gathering 0.64 res per day. Therefore, to gather 9000 resources it takes 14 062 days to gather all the resources.
Taken "resource interest rate" into consideration your final revenue will be 0.64*1.007^1+0.64*1.007^2.+0.*1.007^3 ... +0.64*1.007^14062
However, now you have to consider the opportunity cost of hiring the boat which is 50*1.007^14062.
Re: Mathematical problem
Wait, if I understood this right you will make 9000 bottles, and a bottle's value is 1*1.07^(number of days since it was produced).
If that is right, then the answer is that you hire one worker.
If that is right, then the answer is that you hire one worker.
Re: Mathematical problem
Ow, I see the problem now.
-
- Ninja
- Posts: 13004
- Joined: Apr 28, 2020
Re: Mathematical problem
momuuu wrote:I dont get what the last paragraph means. What increases in value??
A wine bottle produced on day 1 is worth 1.007 (day 1) wine bottles on day 2. And on day 3 its worth 1.007*1.007.
Re: Mathematical problem
So we want to maximize the function
F = sum from n = 1 to number of days taken (number of workers * 0.64 * 1.007^n) - number of workers * 50 * 1.007^(number of days taken)
So then we want to maximize this function.. hmm
F = sum from n = 1 to number of days taken (number of workers * 0.64 * 1.007^n) - number of workers * 50 * 1.007^(number of days taken)
So then we want to maximize this function.. hmm
-
- Ninja
- Posts: 13004
- Joined: Apr 28, 2020
Re: Mathematical problem
Maybe, I'm not really super good at math...That's why I'm asking.
I mean the cost is definitely right. But I'm not super how to write the left part. I mean it should include series like 0.64 * x * 1.007 + 0.64 * x * 1.007^2...0.64*x*1.007^t.
constraint being 0.64 * x * t < 9000
t being time and x amount of workers.
I mean the cost is definitely right. But I'm not super how to write the left part. I mean it should include series like 0.64 * x * 1.007 + 0.64 * x * 1.007^2...0.64*x*1.007^t.
constraint being 0.64 * x * t < 9000
t being time and x amount of workers.
-
- Ninja
- Posts: 13004
- Joined: Apr 28, 2020
Re: Mathematical problem
Aizamk wrote:where are you getting this 1.07 figure from?
0.7%. It's my estimation of AOE resource interest rate per second (quite early game).
Basically, it's impossible to determine accurately.
Re: Mathematical problem
somppukunkku wrote:Aizamk wrote:where are you getting this 1.07 figure from?
0.7%. It's my estimation of AOE resource interest rate per second (quite early game).
Basically, it's impossible to determine accurately.
Ok. I'll define the problem after I've had my breakfast. Probably won't take that into account.
oranges.
Re: Mathematical problem
I think I solved it
The solution seems to be that you should let your workers slack off.
The solution seems to be that you should let your workers slack off.
- Attachments
-
Re: Mathematical problem
anyone know the train time for fishing boats after EP schooners is sent?
oranges.
-
- Ninja
- Posts: 13004
- Joined: Apr 28, 2020
Re: Mathematical problem
@momuuu
I can't really see a way that it's 1 if we adapt to aoe. Or I have explained the problem wrong.
@Aizamk
I assumed that you spawn them instantly. But the problem is that if you don't, then the calculations explode. And the "resource interest" rate has to be definitely included. 200w at 2 mins is one billion times more valuable than 200w at 40 mins.
I can't really see a way that it's 1 if we adapt to aoe. Or I have explained the problem wrong.
@Aizamk
I assumed that you spawn them instantly. But the problem is that if you don't, then the calculations explode. And the "resource interest" rate has to be definitely included. 200w at 2 mins is one billion times more valuable than 200w at 40 mins.
Re: Mathematical problem
@deleted_user2 you may have converted to problem from aoe to mathematics incorrectly. It turns out that in the way you explained it the value of your 9000 bottles is maximized by taking as long as possible. It turns out that this summation of 1.007^1+1.007^2+... Blows the fuck up if you take very long. I did the maths, and its prefactor is slightly larger than the opportunity cost regardless of the workers.
Then its basically N*1.007^(1/N). So if you increase N you decrease the exponential. However the exponential grows much faster than the linear term, so to optimize it you should maximize the exponential. The profit goes to infinite as you approach zero employees.
Im pretty confident that is what you get when you solve this:
Then its basically N*1.007^(1/N). So if you increase N you decrease the exponential. However the exponential grows much faster than the linear term, so to optimize it you should maximize the exponential. The profit goes to infinite as you approach zero employees.
Im pretty confident that is what you get when you solve this:
somppukunkku wrote:So let's say hire 1 worker. You pay 50 resources for a boat. It starts gathering 0.64 res per day. Therefore, to gather 9000 resources it takes 14 062 days to gather all the resources.
Taken "resource interest rate" into consideration your final revenue will be 0.64*1.007^1+0.64*1.007^2.+0.*1.007^3 ... +0.64*1.007^14062
However, now you have to consider the opportunity cost of hiring the boat which is 50*1.007^14062.
-
- Ninja
- Posts: 13004
- Joined: Apr 28, 2020
Re: Mathematical problem
@momuuu
So this basically means that if an aoe3 boom would take infinite time, you would do 0 fish boats? Or 1? (no whales) included
Do you have any idea what could be wrong with converting adapting from aoe?
So this basically means that if an aoe3 boom would take infinite time, you would do 0 fish boats? Or 1? (no whales) included
Do you have any idea what could be wrong with converting adapting from aoe?
Who is online
Users browsing this forum: No registered users and 7 guests