Andiguys

65 Reputation

5 Badges

1 years, 87 days

MaplePrimes Activity


These are questions asked by Andiguys

I’m getting an error while solving the equations derived from the KKT conditions.
What syntax modifications should I make?
The decision variables are p1 and pr, with two constraints.

sheet: Q1_solve_equation.mw
 

In the 3D figure, the z-axis currently extends only to zero; please extend it to include positive values. Also help needed in setting the optimal point which is not clearly visible now—how to adjust the view and labeling to highlight only its z-value. How can we Improve the overall clarity and positioning of the figure to enhance visual readability.

Q_figure.mw

Download Q_figure.mw

Getting an error while solving. Can we get a condition like  delta ( > or <)  delta3 × constant?
Note: All parameters are positive and greater than zero.          tau, tau1, delta, delta3, delta0 are between 0 and 1. 

restart

``

ineq := (1-delta-tau1)*d*Cv+w*delta*d+Rm*tau1*d+s2*d*(delta0-delta-tau1)+g1*tau1^2*d^2+g2*delta^2*d^2 <= R0m*tau1^2*d^2+(1-delta[3]-tau1)*d*Cv+w*delta[3]*d+s2*d*(delta0-delta[3]-tau1)+g2*(delta[3]+tau1)^2*d^2

(1-delta-tau1)*d*Cv+w*delta*d+Rm*tau1*d+s2*d*(delta0-delta-tau1)+g1*tau1^2*d^2+g2*delta^2*d^2 <= R0m*tau1^2*d^2+(1-delta[3]-tau1)*d*Cv+w*delta[3]*d+s2*d*(delta0-delta[3]-tau1)+g2*(delta[3]+tau1)^2*d^2

(1)

NULL

``

temp := collect(ineq,delta);

g2*delta^2*d^2+(-Cv*d-d*s2+d*w)*delta+(1-tau1)*d*Cv+Rm*tau1*d+s2*d*(delta0-tau1)+g1*tau1^2*d^2 <= R0m*tau1^2*d^2+(1-delta[3]-tau1)*d*Cv+w*delta[3]*d+s2*d*(delta0-delta[3]-tau1)+g2*(delta[3]+tau1)^2*d^2

(2)

new := simplify(temp - remove(depends,lhs(temp),delta) - select(depends,rhs(temp),delta));

-d*(d*g2*delta[3]^2+(2*d*g2*tau1-Cv-s2+w)*delta[3]+(-delta^2*g2+g2*tau1^2)*d+(-w+Cv+s2)*delta+(-Cv-s2)*tau1+s2*delta0+Cv) <= -d*(d*(g1-R0m)*tau1^2+(-Cv+Rm-s2)*tau1+s2*delta0+Cv)

(3)

simplify(solve(new,delta));

Warning, solutions may have been lost

 

Error, invalid input: simplify uses a 1st argument, s, which is missing

 
 

NULL

Download Q_on_solve.mw

Could anyone help me with the syntax to create a Region Plot (Feasibility or Preference Map) that displays: Regions based on conditions like:

  • When   and  πR>πD ​ ​, then Strategy 1 is preferred.
    and  When ​, πR<πD then Strategy 2 is better.
     
  • When ​,πR<πD then Strategy 2 is preferred.
    and When ​,πR>πD then Strategy 1 is better.

I’d also like the plot to visually highlight the regions based on strategy​, and vice versa.

File : Regional_plot.mw

I am working with two plots and need help in labeling,

Plot 1: I would like to display the intersection point of the two curves along with the corresponding value of δ (delta) at that point. Ideally, this can be highlighted using an arrow or annotation.

Plot 2: I would like to identify and mark the maximum point of the two curves. Specifically, I want to show the maximum value and the corresponding value of w at which this occurs.

Could anyone help with the syntax. Is there any method to improve the quality of figure to export it as jpeg?

Q_NEW_PLOT.mw

1 2 3 4 5 6 7 Page 1 of 8