I am new to Mathematica and I have a problem with solving a simultaneous equation system in combination with a variable that follows a distribution. I really hope that someone could help. My code looks like this:
Unfortunately, Mathematica does not attain the correct solution which I calculated by dividing up the system into
Solve[p == MCostqu && Demand == Q , {q, p}]
Solve[ExpectedValue[(-((-A + Qr)/(B c + n))) ((c (A - Qr))/( B c + n)) - 1/2*c*(-((-A + Qr)/(B c + n)))^2 - F, WeibullDistribution[2, 2], Qr] == Inv, {n}]
Is there any possibility to derive the solution in one step? Even better would be if Qr is replaced in the beginning as being a pdf but I dont know how to derive the ExpectedValue then.
Thanks for your help!
Thanks for your help!
Maybe I wasn’t precise enough about describeing my problem. The first solution gives me variables p and q that only depend on c,F and Inv, but they should still depend on Qr (e.g. its pdf) which is attained by the second solution.
So, I was wondering if it is possible to deter Mathematica from replacing Qr (or its pdf) in p and q when deriving p,q,n simultenously.
p,q should depend on Qr (or its pdf)
n should only depend on parameters like c,F,Inv,A,B and is fixed.