Andiguys

65 Reputation

5 Badges

1 years, 79 days

MaplePrimes Activity


These are replies submitted by Andiguys

@vv When examining the first plot, the value at Pc = 1436 appears to be around 4×10⁷, but the result is showing 10⁸. Also, I'm getting a different plot after using the NLP SOLVE syntax.

Sheet: Q_result_1.mw

@vv Attaching the screeshot by using NLPsolve....Giving same result. Any other function which consider global optimum

@C_R It’s taking a long time to solve, and I still don’t have the result. Is there an easier or faster way to get it done?

Sheet: Simple_T.mw

Can we simplify C1−C2 symbolically, by eliminating all like terms, so that the resulting expression contains the minimum number of terms? Also, what is the syntax to perform this simplification without substituting any numerical values?

@mmcdara Will do.

@mmcdara You can change the syntax.

I have three equation A10,A11 and A12.

I want a slider plot where x-coordinate value is from -10000 to 30000

and y coordinate is value for the y function provided in the attached sheet. y range should be greater than 0 to 500000

Sheet: Slider_Q_(1).mw
Sample plot for your refernce is below, i need plot like this:

@acer Could you assist in solving the three equations for three variables under specific conditions, including the given constraints?

I have to solve A,B, C such that all conditions are satisfied.

Showing error : "Warning, solutions may have been lost"


 

restart

``

A := -beta*(.81*theta*upsilon+134400.00*beta-.72*theta-1125.00*upsilon+4000000)/(2*(8*beta-0.9e-2*upsilon))+500000 >= theta-upsilon*(125/2+(0.1250000000e-1*(134400.00*beta+0.9e-1*theta+3.99887500*10^6))/(16*beta-0.18e-1)+9*theta*(1/8)) and theta-upsilon*(125/2+(0.1250000000e-1*(134400.00*beta+0.9e-1*theta+3.99887500*10^6))/(16*beta-0.18e-1)+9*theta*(1/8)) >= 0

B := 40000 >= (.81*theta*upsilon+134400.00*beta-.72*theta-1125.00*upsilon+4000000)/(2*(8*beta-0.9e-2*upsilon)) and (.81*theta*upsilon+134400.00*beta-.72*theta-1125.00*upsilon+4000000)/(2*(8*beta-0.9e-2*upsilon)) >= 0

C := 3000 >= 1875/2-(0.1250000000e-1*(134400.00*beta+0.9e-1*theta+3.99887500*10^6))/(16*beta-0.18e-1)-9*theta*(1/8) and 1875/2-(0.1250000000e-1*(134400.00*beta+0.9e-1*theta+3.99887500*10^6))/(16*beta-0.18e-1)-9*theta*(1/8) >= 0

-0.1250000000e-1*(134400.00*beta+0.9e-1*theta+3998875.000)/(16*beta-0.18e-1)-(9/8)*theta <= 4125/2 and 0 <= 1875/2-0.1250000000e-1*(134400.00*beta+0.9e-1*theta+3998875.000)/(16*beta-0.18e-1)-(9/8)*theta

(1)

solve(eval({A, B, C}), [upsilon, beta, theta])

``

``


 

Download Q4.mw

 

@acer 

Thank you for your response.

I have a question—suppose I assign numerical values to the parameters Pu and theta, and I want to determine the range of upsilon that satisfies all the given conditions. What would be the appropriate syntax for this?

lets say Pu= 800 and theta = 30000

@mmcdara Thankyou for the reply

Will make changes in the models so that it result in less complex solution.

@mmcdara 

Thank you for your response.
Attaching sheet with changes: common_term.mw

In your syntax, you've identified the common terms between just two expressions, such as g1 and g_1. However, my intention is to find the common terms that appear across all the variables—specifically: g1,g2 , g3, pi1,pi2 , g_1, g_2 , g_3, pi_1,pi_2. I’m looking for the terms that are shared among all of them, not just between pairs.

For instance, the expression:

1/((w+Ce)2⋅(−δ+w+Ce)2⋅λ−16⋅U[0]2)

is common in g1,g2, g3,  pi1,pi2 and it also appears in g_1, g_2, g_3,pi_1,pi_2. though in the latter it includes an additional term 't' So, I’m thinking it would be helpful to assign a name to this common sub-expression (e.g.,common factor) and re-write the full expressions using these named terms to make them cleaner and more readable.

Additionally, I noticed you've listed common terms in a format like name^constant but we can likely ignore such simple power-based repetitions. Instead, I suggest can we focus on:

  • common terms that with three or more terms,

  • or take the longest common sequence and assign a name to it.

Could you help with identifying such common expressions across all these variables and re-writing the full expressions using named components for clarity?

@acer Thankyou

@acer what changes i should make?

@acer I am not sure of deleting anything on jan 30. I dont remember. Is there any options to know that i have deleted in maple, so that i can check.

Can you explain my previous question why that error happening ? what syntax should i change?

@acer 

restart;

with(plots):


X:=[2000,3000,4000,5000,6000]:
Pi__DR:=[0, 0.13419216, 0.26838433, 0.40257649, 0.53676865];

Pi__DD:=[0, 0.13515835, 0.26935051, 0.40354267, 0.40354267, 0.53773484];

[0, .13419216, .26838433, .40257649, .53676865]

 

[0, .13515835, .26935051, .40354267, .40354267, .53773484]

(1)

 

P1 := plot([ <<X>|<Pi__DR>>[1..,..],
             <<X>|<Pi__DR>>[1..,..],
             <<X>|<Pi__DD>>[1..,..],
             <<X>|<Pi__DD>>[1..,..] ],
           color="Burgundy",
           legend=[`#msubsup(mi("Pi"),mn("DR"));`,
                   "",
                   `#msubsup(mi("Pi"),mn("DD"));`,
                   ""],
           labels=["manufacturer profit",
                   "Total profit\n"],
           labeldirections=[horizontal,vertical],
           style=[point,line,point,line], view=0.1..0.55, symbolsize=9,
           symbol=[box,box,asterisk,asterisk]
           );

Error, (in Matrix) this entry is too tall or too short: Vector(6, {(1) = 0, (2) = .13515835, (3) = .26935051, (4) = .40354267, (5) = .40354267, (6) = .53773484})

 

``

Download gggg.mw

@acer When i am giving C_v in labels

but in graph it shoving like C_v only its not shovwing Cv. What should i change?

2 3 4 5 6 7 8 Page 4 of 9