Maple 2019 Questions and Posts

These are Posts and Questions associated with the product, Maple 2019

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

I have a contour plot, and I need to make the following modifications. Could anyone please guide me on how to change the syntax accordingly?
 

  1. Remove grid lines (black lines) from my plot.

  2. Swap the axes so that s2  appears on the Y-axis, ranging from 1000 to 7000. Currently, s2 is shown on the X-axis from 1 to 7.

  3. Add a color scale (legend) for the contour values of stemp (with label), with formatted values like 1.47 × 10⁷ (scientific notation).

    Attaching my file with plot: S1_vs_s2_contour_plot.mw

I’ve attached (or described) a sample contour plot for reference.

I am trying to display the results by substituting values into a table format after solving the KKT conditions. I attempted to do this using Maplet, but it did not give the desired output or flexibility.

Could you please guide me on:

  • The correct way to capture and display substituted results in a table?

  • Any alternative syntax or functions (other than Maplet) that are better suited for this purpose?

I would also like to confirm whether the substitution I made for the lower and upper bounds—specifically C_min value  and C_max value —has been done correctly. Could you please verify if this is the correct way to implement these bounds within the KKT formulation?

KKT_Table_Q-22.mw

When optimizing with constraints, I’m getting an error: ‘NLP no feasible point’.

However, when I plot the graph, it shows a result — there appears to be a point where p1 is positive and s is maximized.

Could you help identify if there’s a syntax issue? Also, what’s the correct syntax to visualize the constraints in the plot?

Sheet: 07.mw

I need to export an image in high resolution in JPEG, JPG, and PDF formats. Right now, I'm using screenshots, which results in low clarity. Could you please help me with the correct syntax to generate a high-resolution, downloadable image in these formats? I'm attaching the file below:

q_new.mw

The two profit functions intersect at a certain point, but the graph is not clearly visible in the range of Cb​ from 30,000 to around 60,000. How can I adjust the plot to make this range more visible? What can i do such that two lines are seen distinct in that area?

Sheet:Q_12.mw

I'm working on an optimization problem involving a single decision variable p1, subject to four inequality constraints:

  • Two upper bound constraints:

    p1 < b1,p1 < b2
  • Two lower bound constraints:

    c1 ≤ p1,c2 ≤ p1

Effectively, the feasible region for p1 is:

max⁡(c1,c2)  ≤  p1  ≤  min⁡(b1,b2)

I have already formulated the Karush-Kuhn-Tucker (KKT) conditions for this setup, and now I'm trying to determine:

  1. The optimal value p1∗​

  2. The corresponding feasibility conditions

  3. A case-wise breakdown depending on which constraints are active or inactive


Sheet:  Q_P1_Optimum_condition.mw

How can I rearrange the inequality to isolate p1​ on one side?
I'm currently using the 'isolate' function, but it's returning expressions with the signum function.

Q_isolate.mw

Given two optimality conditions defined as inequalities — a lower bound condition and an upper bound condition — under the assumptions that all parameters are positive and satisfy the relationships w>Pu>Ce>U[0]>0, and w>Pu>Ce,   and upsilon,varphi, tau0, eta are between (0,1), where 1>=varphi>=tau0>=0. and upsilon>eta

Under what conditions on the parameters does the lower bound condition become violated while the upper bound condition is also violated?

Detailed question in sheet attached: Q_Condition.mw

[ see also Q_Const.mw ]

I am working on a script (attached sheet) where I use a FOR loop to iterate over different values of varepsilon. Within each iteration, I perform the following steps:

  1. I optimize the function R_out and obtain a result, denoted as Pc

  2. I then substitute Pc into another function, L_out and optimize it to find the values of p1,p2, and the corresponding function value.

I follow a similar procedure for a second case as well.

However, I'm encountering an issue: I'm unable to successfully substitute the result from R_out into L_out within the loop. This is causing an error in execution.

Finally, I intend to generate a plot with varepsilon  on the x-axis and certain result variables on the y-axis in a single plot (as indicated at the end of the sheet).

Sheet: Question_New.mw

Can someone help me:

  1. Fix the substitution error in the loop, and

  2. Provide the correct syntax for generating the desired plot?

I'm optimizing a function with constraints, meaning the decision variable has both a lower and an upper bound. When I use the  (MAX) syntax in Maple, it returns the lower bound as the optimal value (Pc) along with the corresponding function value. However, when I plot the graph, it shows that the function actually reaches its maximum at the upper bound. What could be causing this discrepancy

Sheet:Q_result_1.mw

Suppose we have two equations, and all parameters involved are assumed to be positive. Is there a systematic way or syntax to determine whether C1>C2​ or vice versa? Additionally, can we derive specific conditions under which C1>C2​ holds

Sheet: Q_greater.mw

I need to create a slider plot for A10, A11, and A12 by varying the parameters theta, Pu, and a.
I have a syntax ready — could you suggest modifications to make it work correctly and generate the plot?

Additionally, is it possible to compute the values of A13 and A14 by substituting the obtained A10, A11, and A12 values for each combination of theta, Pu, and a from the slider plot?

Sheet attached: Slider_Q.mw

I have two conditions, A and B, which must both be greater than or equal to zero. However, when I try to solve the problem, I encounter an error.

Could you please help me resolve this?

Note: All the parameters, whether specified or not, are positive and greater than zero.
File : Q3.mw

1 2 3 4 5 6 7 Last Page 1 of 47