Question: problem with maximizing values from a procedure

Hi,  I've been looking for a soln for my problem and found this thread quite relevant.

Here's what i have is

PEffSQ := proc (Egx, Egy) if Egy <= Egx then 100*evalf(subs(subs(Eg1 = Egx, Eg2 = Egy, EV), SX(Egx, Egy), PCellMax/PInc)) end if end proc

and then I tried to run this maximize

maximize(PEffSQ(eg1, eg2), initialpoint = {eg1 = 2.3, eg2 = 1.4}, variable = [eg1, eg2])

And just like the problem i have with plotting values from this procedure, i have the following error:

Error, (in PEffSQ) cannot determine if this expression is true or false: eg2 <= eg1

Any suggestions?

Thanks in advance!

 

How much of the 2*Pi*h*fw*(int(v^3/(exp(hv/kTs)-1), v = 0 .. infinity))/c^2 can we harnest?

Please Wait...