ninoum

10 Reputation

3 Badges

12 years, 277 days

MaplePrimes Activity


These are answers submitted by ninoum

Thank you for your reply,

In the last post, I just added an explanation about the interval on which the variable theta is defined, (0.1 <theta <0.4), and which represents a constraint of the problem that I forgot to mention at the first post. I know it is understandable even for an intermediate student.

Thank you for your help.

Thank you very much for your answer, in fact I made a mistake in the first post, I want to maximize the function Prof (P, W, theta), (not minimizing). In addition the variable theta lies between 0.1 and 0.4.

Are you using the optimization package to get this result?

Thank you in advance.

Thank you for your answers, in fact I found a solution that seems to work, I will still try and get back to you:


restart;
with(Optimization);
R:=array(1..2);
m:=Maximize(int(((P-(50000+50000*exp((.4-.16)/(.16-.1)))*(1/23676)-(10+30*.16^(-.5))*(2000*(1/23676))^.4-(30*.16)*W)*3)*10^9*(W+.1)^.10*(1-23676*(1/25000))*(0.3e-1+23676*(1/25000))*exp(-.15*t)/P^2, t = 0 .. 5), P = 0 .. 500, W = 0 .. 5, output = solutionmodule);


R:=m:-Results(solutionpoint);
assign(R);
P,W;
o:=m:-Results(objectivevalue);
o;
restart;
with(Optimization);
R1:=array(1..2);
m1:=Maximize(int(((P1-(5000+5000*exp((.4-.16)/(.16-.1)))*(1/23676)-(10+30*.16^(-.5))*(2000*(1/23676))^.4-(30*.16)*W1)*3)*10^9*(W1+.1)^.10*(1-23676*(1/25000))*(0.3e-1+23676*(1/25000))*exp(-.15*t)/P1^2, t = 0 .. 2.5)+(int(((P1-(50000+50000*exp((.4-.16)/(.16-.1)))*(1/23676)-(10+30*.16^(-.5))*(2000*(1/23676))^.4-(30*.16)*W1)*3)*10^9*(W1+.1)^.10*(1-23676*(1/25000))*(0.3e-1+23676*(1/25000))*exp(-.15*t)/P1^2, t = 0 .. 2.5)), P1 = 0 .. 500, W1 = 0 .. 5, output = solutionmodule);


R1:=m1:-Results(solutionpoint);
assign(R1);
P1,W1;

  [ImportMPS, Interactive, LPSolve, LSSolve, Maximize, Minimize, NLPSolve,

    QPSolve]

               module () export Results, Settings; end module
             [P = 330.144861849340884, W = 3.33900897232123617]
                  330.144861849340884, 3.33900897232123617
                                                 5
                           9.35688791366187042 10
                                                 5
                           9.35688791366187042 10
  [ImportMPS, Interactive, LPSolve, LSSolve, Maximize, Minimize, NLPSolve,

    QPSolve]

               module () export Results, Settings; end module
            [P1 = 212.730287290146748, W1 = 2.11594048166789550]
                  212.730287290146748, 2.11594048166789550

thanks.

Page 1 of 1