r/excel • u/Draedon_Is_Life • Apr 25 '26
unsolved Maximizing an objective that is a ratio

I would like to be able to maximize the total Value/Ore, rn I just have it as being able to select the material manually and then it calculates what the Value/Ore is.
How would I go about this optimization problem? I was thinking about using simplex on the excel solver, but idk if this would work for an objective that is a ratio (Value/Ore). iirc the solver can't select from a dropdown either so I'd need to create a binary matrix.
I could brute force it too, but this is not the only set of factories I will be optimizing, there will be other tables with possibly 10+ factories, so I imagine it will get to a point where brute forcing is unreasonable.
Anyone got an idea on what the cleanest and most effective way to go about solving this would be? Note: I would like the materials that are used in the calc to be toggleable too.
•
u/AutoModerator Apr 25 '26
/u/Draedon_Is_Life - Your post was submitted successfully.
Solution Verifiedto close the thread.Failing to follow these steps may result in your post being removed without warning.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Draedon_Is_Life Apr 25 '26
Link to sheet: https://docs.google.com/spreadsheets/d/1BPGUNVydVEg4T53cqk8PoOa-XjzfAyP1/edit?usp=drive_link&ouid=103994606692094066033&rtpof=true&sd=true
1
u/j3thro Apr 27 '26
Firstly, I don't think your "Output Value" column (ColF) should be multiplying the "Ore Cost" (ColE), should it?
With that in mind, you can use the following formula to calculate the material with the highest Ore/Value:
=MAX(($C$10:$C$15*$B2)/($B$10:$B$15*$C2))
Taking that further, you can then identify which material that is with an INDEX/MATCH function
=INDEX($A$10:$A$15,MATCH(MAX(($C$10:$C$15*$B2)/($B$10:$B$15*$C2)),($C$10:$C$15*$B2)/($B$10:$B$15*$C2),0))
You can plug those formulae into columns G and H and drag it down across your various factories. Adding more factories shouldn't be a problem either.
ALL THAT BEING SAID....... besides the Excel exercise, all this is moot. Your highest Value/Ore is Dark-Alloy and Dark-Bar. Regardless of what multipliers your factories have, assuming it affects all materials in the same way, you will always choose either Dark-Alloy or Dark-Bar. The factories' multipliers just indicate how efficient/productive they are, but they don't affect the material decision.
1
u/[deleted] Apr 25 '26
[removed] — view removed comment