My object function is $\frac{4 d k (1 - 2 r) r + k^2(3 r-1)r + d^2 (1 + r (6 r-5))}{ 2 (1-r)^2 r} + q* \frac{d^2 (2 - 3 r) + 2 d k ( 2 r-1) + k^2 (1 -(3 - r) r)}{(1-r)^2}$.
And I'm trying to find $r\in (\frac{1}{2},1)$ that minimizes the object function under the condition of $d\in (0,1)$, $\frac{2r-1}{r}d < k <d$, and $q>1$.
My code is as follows:
minR = Last@Minimize[{(4 d k (1 - 2 r) r + k^2 r (-1 + 3 r) + d^2 (1 + r (-5 + 6 r)))/(2 (-1 + r)^2 r) + q*(d^2 (2 - 3 r) + 2 d k (-1 + 2 r) + k^2 (1 + (-3 + r) r))/(-1 + r)^2, 1/2 < r < 1, 0 < d < 1, 0 < (2 r - 1)/r d < k < d,q>1}, r]
... and it has been running forever, more than 6 hours. Any comments will be greatly appreciated!
Minimize[]
call? $\endgroup$Minimize[]
$\endgroup$Minimize[]
as well. Since the constraints are expected to be in the second part of the list input, you should do something likeMinimize[{function, 0 < d < 1 && 1/2 < r < 1 && q > 1 && 0 < (2 r - 1)/r d < k < d}, r]
. $\endgroup$Minimize[]
. But it is still running long even when I add q>1 as you suggested. $\endgroup$