So I got this expression here (written in pure text):
sol = -((2 r3 (-120000 r1 r2+36000 d1 r1 r2+3600 d2 r1 r2+360 d3 r1 r2+36 d4 r1 r2-580000 r2^2+198000 d1 r2^2+19800 d2 r2^2+1980 d3 r2^2+198 d4 r2^2-540000 r1 r3+162000 d1 r1 r3+16200 d2 r1 r3+1620 d3 r1 r3+162 d4 r1 r3-3230000 r2 r3+1089000 d1 r2 r3+108900 d2 r2 r3+10890 d3 r2 r3+1089 d4 r2 r3))/(-1320000 r1 r2+396000 d1 r1 r2+39600 d2 r1 r2+3960 d3 r1 r2+396 d4 r1 r2-6380000 r2^2+2178000 d1 r2^2+217800 d2 r2^2+21780 d3 r2^2+2178 d4 r2^2-7260000 r1 r3+2178000 d1 r1 r3+217800 d2 r1 r3+21780 d3 r1 r3+2178 d4 r1 r3-43550000 r2 r3+14641000 d1 r2 r3+1464100 d2 r2 r3+146410 d3 r2 r3+14641 d4 r2 r3));
I need to run this command:
Minimize[sol, {r1, r2, r3}]
It's taking forever on my weak PC (never finishes). Can somebody tell me how to optimize this so it actually finishes?
Here are a a few more constraints:
r1 > 0 && r2 > 0 && r3 > 0 && d1 ≥ 0 && d2 ≥ 0 && d3 ≥ 0 && d4 ≥ 0 && d1 ≤ 9 && d2 ≤ 9 && d3 ≤ 9 && d4 ≤ 9 && sol > 0
-- adding these constraints really help in getting it done, still takes forever.