Andiguys

65 Reputation

4 Badges

0 years, 322 days

MaplePrimes Activity


These are replies submitted by Andiguys

@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?

@acer for the below figure how to include that in a rectange, its open now

How to tilt the direction of label [Total profit] to make it vertical?

@acer Not considering 70000 and 75000 data in plot

sheet attached: 

Download Andiguys_dual_ac.mw

can we add label to axis?
on left axis - Manufacturer profit
on right axis- retailer profit
on x-axis - cost of raw material

@acer can you help in combining both plots and giving legends for the line?

Sheet attached: Quest_plot.mw

@Kitonum can we start the plot from 70000 ?

Also the column 3rd and 5th are represented by right axis as you shown and column 2 and 4th on left axis.
I mean to include all graphs in same plot is it possible like below:

@acer How to generate a graph from the table given: The x column makes the x-axis and the profit is the y-axis. The problem is the 3rd and 5th column units are 10^6 and 2 and 4th column units are 10^8. ? In that scenario, what is the best way to represent these values on the same graph? Can you give the syntax?

 

X

70000

18963457.2

204495.57

18829161.3

221280.537

75000

17846277.6

240745.572

17647617.5

259449.16

80000

16743622.7

281162.238

16468147.5

301765.4

85000

15655492.6

325745.572

15290751.2

348229.239

90000

14581887.3

374495.572

14115428.6

398840.68

95000

13522806.7

427412.238

12942179.7

453599.723

10000

12478250.8

484495.57

11771004.6

512506.36

@Kitonum Can i get the above figure in box like below example figure:

what change in syntax to make?


 

1 2 3 4 5 Page 1 of 5