- #1
gevni
- 25
- 0
Hi, I have this formula, What I want is to find the value of "x" (without trying all possibilities) so that the result of the formula will be the lowest possible value under the constraint when x !=0, and x<n. Here, values of A,B,C, Q, R,n are already known and fixed.
\(\displaystyle f(x)=A\left(((\frac{Q}{n-x}-\frac{R}{x})+(n-x))n\right)+Bnx+C((\frac{R}{x})n)\)
How can I find the value of x? I know that x can be between 1 to n-1. But how do I continue from there? I was thinking there must be a way to calculate it instead of trying a lot of possibilities. Like some derived equation for optimal value of x that made the whole formula sum the lowest possible.
\(\displaystyle f(x)=A\left(((\frac{Q}{n-x}-\frac{R}{x})+(n-x))n\right)+Bnx+C((\frac{R}{x})n)\)
How can I find the value of x? I know that x can be between 1 to n-1. But how do I continue from there? I was thinking there must be a way to calculate it instead of trying a lot of possibilities. Like some derived equation for optimal value of x that made the whole formula sum the lowest possible.