Andiguys

65 Reputation

5 Badges

1 years, 54 days

MaplePrimes Activity


These are replies submitted by Andiguys

@acer Thankyou. 

How can I create 2D plots for Cv vs. etemp and Cv vs. deltatemp? Additionally, is it possible to display both plots on the same graph?

Given the following values:

  • Cv = 80, deltatemp = 0.0578703702395449, etemp = 0.161839640102812
  • Cv = 85, deltatemp = 0.0636, etemp = 0.181338393233975

I have generated similar values for other points. How can I individually plot these relationships and then combine them into a single graph, considering that the numerical values of etemp are one decimal place higher than deltatemp?

sheet: Question_plot_cv_ac2B.mw

@acer 2 Questions
1. In the plot above, we can see that the profit value changes for each curve as we move upward. However, since only one decimal places are considered, the variation in values is not clearly visible. For example, in the above plot, the first curve shows 1.7, and the second curve also appears as 1.7. Could we display the full numerical values to make the differences clearer for viewers?
2. Is it possible to generate a 3D plot from which this contour plot is interpolated?

@acer Could you help me with the syntax? I want to plot all the curves on the same graph, but the challenge is that I need to fetch the data first. To do this, I plan to save the data in an array and then use it to draw the graph as shown below
But how to save data from loop and fetch it to draw the graph

Sheet: trial_question.mw

sample graph below

@Kitonum Could we modify the graph to display the index value in brackets, such as [x, y, z], instead of using P?

@acer thanks

@Kitonum Its working for s2 but not for delta?

attached fig below

@acer 

Thank you for providing the plot and for correctly evaluating and substituting tau in C1. I apologize for not framing my question clearly earlier. The term R0er should indeed be multiplied by y^2.

Additionally, is it possible to add more sliders? Specifically:

  • R0er with a range of 1 to 0.001
  • Cf  with a range of 200,000 to 700,000
    This would be alongside the existing slider for g2.

Lastly, could you help determine the x-coordinate for the point on A12 where the y-coordinate is 1?

@acer If I want to save etemp instead of stemp in matrix M, what changes do I need to make in syntax to get the contour plot?
I allready made changes as below:

@acer Thankyou for plot.

Can we change x-axis label to Ce from x and y label  to Cv?
what changes to make?

@acer Sorry for not putting all questions altogether.

I have used some code but dont know how to fetch data generated using loop to store ina array then to use in 2D plot?

Also included Kitonum's code for 2D contour plotting.

Attaching sheet: Question_plot_cv.mw

@acer How to fetch data generated using for loop to generate the 2D graph below?

Only 1st 3 colums are needed? how to do that,
like example if data generated is :- 

    80, 1, 1.80074340195803263, delta = 0.0578703702395449, e = 0.161839640102812
                                                           
    80, 2, 1.79160585795803287 , delta = 0.0578703702958708,  e = 0.161839639899066
only first three columns needed to be fetched from every row.

Attaching sheet: Question_plot_cv.mw

2D graph with labe needed: 

@acer Hey i dont know how to give path to the file? How to import the data? or how to give directory?

Error : 

@acer Thank you. As you mentioned i have used for loop to generate the data. 

How do I create a 2D graph with x and y axes, where the z value is displayed along the curve at specific points? (With same data?)

@mmcdara Thankyou for providing KKT condition syntax.

I have now considered only two constraints. As from your syntax lets say i got KKT conditions. 
Now there can be 4 cases, how to find optimal K1 and K2 and mu5 (optimal) if greater than zero and mu6(optimal) if greater than zero, by simultaneously optimizing?

Attaching sheet: s_12.mw

@Carl Love I am getting solution for all values of tau0. There is nothing like showing "No improved solution"

I just need a plot from that results which we obtained by using FOR loop. 

I want continuous plot just connecting all the solution at each points of tau0 given. No need to evaluate on other points. Is it possible?


I am attaching sheet: for_loop_question_rec.mw

2 3 4 5 6 7 Page 4 of 7