You are here:

Advanced Math/linear equations w multiple variables

Advertisement


Question
QUESTION: Hi Scott, I need to "maximise a+b+c" subject to
7a-6b-5c is < or = 0 &
-9a +8b + 7c < or = 0
where a,b,c are all > or = 0

I tried multiplying one equation & then adding to another to remove one variable and so on, but find Im going round in circles. Any help on this would be appreciated.
Thanks

ANSWER: This is a linear programming problem with the top row as a+b+c.
It would be written as such with an articficial variable added to each equation.

You would have maximize a+b+c subject to 7a-6b-5c+d=0 and
-9a+8b+7c+e=0, where d and e are the artificial variables.  The first row should be multiplied by -1.

Now each of the variable should be replaced with two variables, like a=a1-a2, where a1 and a2 have the condition that they are both nonnegative.

The starting tableau (tablo, with a short and o long) would look like
-1  1 -1  1 -1  1
7 -7 -6  6 -5  5 1 0 0
-9  9  8 -8  7 -7 0 1 0.

After only two iterations, it comes down to a tableau that has a negative in the first row and all negatives below it, which means it can't be solved.

This is the original tableau:
-1.00   1.00   -1.00   1.00   -1.00   1.00   0.00   0.00   
7.00   -7.00   -6.00   6.00   -5.00   5.00   1.00   0.00   
-9.00   9.00   8.00   -8.00   7.00   -7.00   0.00   1.00   
         
Choose the first variable and the first constraint equation, then you have
0.00   0.00   -1.86   1.86   -1.71   1.71   0.14   0.00   0.00
1.00   -1.00   -0.86   0.86   -0.71   0.71   0.14   0.00   0.00
0.00   0.00   0.29   -0.29   0.57   -0.57   1.29   1.00   0.00.

Choose the variable with the -1.71 (since that is not so negative as -1.86), and you get
0.00   0.00   -1.00   1.00   0.00   0.00   4.00   3.00   0.00
1.00   -1.00   -0.50   0.50   0.00   0.00   1.75   1.25   0.00
0.00   0.00   0.50   -0.50   1.00   -1.00   2.25   1.75   0.00

Take the -1 as the only remaining negative and you get
0   0   0   0   2   -2   8.5   6.5   0
1   -1   0   0   1   -1   4   3   0
0   0   1   -1   2   -2   4.5   3.5   0
         
The next variable to choose would be the one with the -2 in the top row (the row of constraints), but it only has negatives below it, so that says there is no solution.


---------- FOLLOW-UP ----------

QUESTION: ok, so could you tell me what the maximum value could be
for each of three variables? this is actually a small part
of something else im working on but i need to find what the
highest number can be for each of the variables.
thanks again

Answer
I thought that using operations research would provide an initial answer so that I could see what a solution was, but it doesn't.  The only solution immdeiately apparent is (0,0,0).

Since the variables are non-negative,  a simple problem could be done to find a non-zero solution.
-1 -1 -1
7 -6 -5  1 0  0
-9  8  7  0 1  0

Using this approach, it comes out with two of the variables still being 0.

Advanced Math

All Answers


Answers by Expert:


Ask Experts

Volunteer


Scott A Wilson

Expertise

I can answer any question in general math, arithetic, discret math, algebra, box problems, geometry, filling a tank with water, trigonometry, pre-calculus, linear algebra, complex mathematics, probability, statistics, and most of anything else that relates to math. I can even tell you it takes me over 2,000 steps to go a mile, but is that relevant?

Experience

Experience in the area; I have tutored people in the above areas of mathematics for almost two years in AllExperts.com. I have tutored people here and there in mathematics since before I received a BS degree almost 25 years ago. In just two more years, I received an MS degree as well, but more on that later. I tutored at OSU in the math center for all six years I was there. Most students offering assistance were juniors, seniors, or graduate students. I was allowed to tutor as a freshman. I tutored at Mathnasium for well over a year. I worked at The Boeing Company for over 5 years. I received an MS degreee in Mathematics from Oregon State Univeristy. The classes I took were over 100 hours of upper division credits in mathematical courses such as calculus, statistics, probabilty, linear algrebra, powers, linear regression, matrices, and more. I graduated with honors in both my BS and MS degrees. Past/Present Clients: College Students at Oregon State University, various math people since college, over 7,500 people on the PC from the US and rest the world.

Publications
My master's paper was published in the OSU journal. The subject of it was Numerical Analysis used in shock waves and rarefaction fans. It dealt with discontinuities that arose over time. They were solved using the Leap Frog method. That method was used and improvements of it were shown. The improvements were by Enquist-Osher, Godunov, and Lax-Wendroff.

Education/Credentials
Master of Science at OSU with high honors in mathematics. Bachelor of Science at OSU with high honors in mathematical sciences. This degree involved mathematics, statistics, and computer science. I also took sophmore level physics and chemistry while I was attending college. On the side I took raquetball, but that's still not relevant.

Awards and Honors
I earned high honors in both my BS degree and MS degree from Oregon State. I was in near the top in most of my classes. In several classes in mathematics, I was first. In a class of over 100 students, I was always one of the first ones to complete the test. I graduated with well over 50 credits in upper division mathematics.

Past/Present Clients
My clients have been students at OSU, people nearby, friends with math questions, and several people every day on the PC, and you're probably make one more.

©2012 About.com, a part of The New York Times Company. All rights reserved.