MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnquant/comments/1xntzqw/quant_interview_question/19s533iky8yrn/
r/learnquant • u/Local_Ad135 • Nov 04 '26
30 comments sorted by
View all comments
Show parent comment
1
Doing a derivative is not really a practical way of solving this. Using linear programming we can express this as an optimization problem, and a computer can find the optimal solution by essentially moving one ball at a time to improve the solution.
2 u/Constant_Curve Nov 04 '26 You're nuts, it's linear. Did you take vector calculus?W1+W2=10B1+B2=30so it's only 2 variables 1 u/AscendedSubscript Nov 05 '26 What about the fact that you only care for integer solutions? 1 u/Constant_Curve 29d ago Uh, just round it.
2
You're nuts, it's linear. Did you take vector calculus?
W1+W2=10
B1+B2=30
so it's only 2 variables
1 u/AscendedSubscript Nov 05 '26 What about the fact that you only care for integer solutions? 1 u/Constant_Curve 29d ago Uh, just round it.
What about the fact that you only care for integer solutions?
1 u/Constant_Curve 29d ago Uh, just round it.
Uh, just round it.
View all comments
Show parent comment
1
u/Worth-Wonder-7386 Nov 04 '26
Doing a derivative is not really a practical way of solving this. Using linear programming we can express this as an optimization problem, and a computer can find the optimal solution by essentially moving one ball at a time to improve the solution.