Solving Inequality
- To: mathgroup at smc.vnet.net
- Subject: [mg82680] Solving Inequality
- From: Quang Nguyen <quangn at gmail.com>
- Date: Sun, 28 Oct 2007 04:03:19 -0500 (EST)
Dear all, My friend has the following code to solve a system of nonlinear inqualities. She can run it on her laptop. However, when I run on my laptop there was a message saying that "0.1 is not a variable". Where 0.1 is the valua that was initially assigned to an unknown parameter in the inquality system. I would highly appreciate if you can explain why this might be the case. Many thanks! Quang Here is the code: << "Algebra`InequalitySolve`" c2 = 580 c3 = 600 b1 = 50 c1 = 400 d1 = 100 p1 = .1 r1 = .3 a2 = 400 b2 = 300 d2 = 50 p2 = .9 r2 = .7 \[Alpha]1 = .1 \[Alpha]2 = .2 \[Alpha]3 = .3 \[Alpha]4 = .4 \[Alpha]5 = .5 \[Alpha]6 = .6 \[Alpha]7 = .7 \[Alpha]8 = .8 \[Alpha]9 = .9 \[Alpha]10 = 1 \[Alpha]11 = 1.1 \[Alpha]12 = 1.2 \[Alpha]13 = 1.3 \[Alpha]14 = 1.4 \[Alpha]15 = 1.5 (*0-15*) a1 = 30 a3 = 680 b = 0 \[Gamma] = 0.1 InequalitySolve[{a1^\[Alpha]1*(Exp[-(-Log[p1])^\[Gamma]]) + b1^\[Alpha]1*(1 - Exp[-(-Log[p1])^\[Gamma]]) < c1^\[Alpha]1*(Exp[-(-Log[r1])^\[Gamma]]) + d1^\[Alpha]1*(1 - Exp[-(-Log[r1])^\[Gamma]]), a3^\[Alpha]1*(Exp[-(-Log[p1])^\[Gamma]]) + b1^\[Alpha]1*(1 - Exp[-(-Log[p1])^\[Gamma]]) > c1^\[Alpha]1*(Exp[-(-Log[r1])^\[Gamma]]) + d1^\[Alpha]1*(1 - Exp[-(-Log[r1])^\[Gamma]]), a2^\[Alpha]1*(Exp[-(-Log[p2])^\[Gamma]]) + b2^\[Alpha]1*(1 - Exp[-(-Log[p2])^\[Gamma]]) > c2^\[Alpha]1*(Exp[-(-Log[r2])^\[Gamma]]) + d2^\[Alpha]1*(1 - Exp[-(-Log[r2])^\[Gamma]]), a2^\[Alpha]1*(Exp[-(-Log[p2])^\[Gamma]]) + b2^\[Alpha]1*(1 - Exp[-(-Log[p2])^\[Gamma]]) < c3^\[Alpha]1*(Exp[-(-Log[r2])^\[Gamma]]) + d2^\[Alpha]1*(1 - Exp[-(-Log[r2])^\[Gamma]])}, {\[Gamma], \[Alpha]1, b}]