Community

Do you have what it takes to be the next brilliant trader, researcher, or developer at Jane Street Capital? Find out in the Careers in Mathematics Forum.
Login Register Memberlist Search AoPS Blogs Contests Galleries Forum Index
The time now is Mon Dec 07, 2009 9:53 pm
All times are UTC - 8
View posts since last visit
View unanswered posts
Linear Programming
Moderators: High School Basics Moderators
Post new topic   Reply to topic View previous topicView next topic
9 Posts • Page 1 of 1
Author Message
isabella2296
Birch & Swinnerton Dyer
Birch & Swinnerton Dyer


Offline
Joined: 21 Mar 2008
Posts: 6168
Location: Bleh.
United States

To rate posts you must be logged in
#1
Linear Programming

My school textbook teaches that to find, for instance, the maximum profit you can make within a set of constraints in a business or whatever, you first graph the constraints and shade the common region. You then take the coordinates of the vertices of the region and find the profit each of them would yield. The largest would be the maximum profit.

But it didn't explain why this works, and that's what I'm wondering. Thanks in advance!
_________________
Czech out \mathfrak {Encyclopedia } \mathfrak { Mathematica}
Latest entry: Morley's Theorem (Proof)

PostPosted: Tue Nov 03, 2009 10:39 am  Back to top 
  ProfilePMWWWBlogAlbum
Ihatepie
Navier-Stokes Equations
Navier-Stokes Equations

Offline
Joined: 25 Oct 2006
Posts: 1900
Location: Southwest, CT

To rate posts you must be logged in
#2
Which part don't you understand?
_________________
2010 Goals: ARML-7 AMC10- 144 AMC12- 126 AIME- 8 USAJMO-14?

PostPosted: Tue Nov 03, 2009 11:49 am  Back to top 
  ProfilePMAIM
Bugi
Birch & Swinnerton Dyer
Birch & Swinnerton Dyer

Offline
Joined: 26 Jun 2008
Posts: 2522
Serbia

To rate posts you must be logged in
#3
Nice... That is the graphic method BTW

Now, what are we doing? Suppose we are doing with 2 variables, put them on a graph (normal axes, each one represents one of the variables). Now, we should (with the given conditions) enclose an area in which those values can be.
For example, find the maximum of 2a-b if
a,b\ge0
-3a+2b\le2
2a-3b\le3
a+b\le6

We draw lines which separate for each of these conditions such that they separate the plane into 2 parts, one which satisfies the condition, one that isn't (for every point inside it) - in other words, the line is the equality case (example a+b=6, so b=6-a and so on)

Now for the given example, we are left with a polygon, with vertexes (0,0),(1.5,0),(4.5,1.5),(2,4),(1,0)

We know that a and b are inside or on the sides of that polygon. Now use the fact that minimum and maximum of a linear function are on its ''ends'', so we get that one of the vertexes is the solution, or in our example: (4.5,1.5)

Note: this is not a good method for many variables and/or higher degree conditions

PostPosted: Tue Nov 03, 2009 1:45 pm  Back to top 
  ProfilePM
isabella2296
Birch & Swinnerton Dyer
Birch & Swinnerton Dyer


Offline
Joined: 21 Mar 2008
Posts: 6168
Location: Bleh.
United States

To rate posts you must be logged in
#4
@Ihatepie: Well, I know "how" to do it, I just didn't know "why".

@Bugi: Thanks! That was really helpful Smile
_________________
Czech out \mathfrak {Encyclopedia } \mathfrak { Mathematica}
Latest entry: Morley's Theorem (Proof)

PostPosted: Tue Nov 03, 2009 3:47 pm  Back to top 
  ProfilePMWWWBlogAlbum
10000th User
Navier-Stokes Equations
Navier-Stokes Equations


Offline
Joined: 04 Jul 2005
Posts: 1721
Location: NJ

To rate posts you must be logged in
#5
Re: Linear Programming

isabella2296 wrote:
But it didn't explain why this works, and that's what I'm wondering. Thanks in advance!


Bugi wrote:
That is the graphic method BTW

Hi, there is a proof which shows that optimality happens at one of the vertices of the polygon (or an edge if there are redundancies) and never at an interior point. It has to do with convex sets and convex hulls (extremal theory), maybe beyond the scope of this forum. Sorry, I can't think of a source for this info... Ewpu

EDIT: For a good linear programming book, an access to Chvatal's Linear Programming book is great. Smile
_________________
\mathrm{Hom}(\mathbb{Z},\mathbb{Z})\cong\mathbb{Z}
Disclaimer: I'll revive old threads if: 1) something ambiguous in the solution or wrong argument, 2) no solution, 3) I got new insight to input.

PostPosted: Wed Nov 04, 2009 6:40 am  Back to top 
  ProfilePMBlogAlbum
Bugi
Birch & Swinnerton Dyer
Birch & Swinnerton Dyer

Offline
Joined: 26 Jun 2008
Posts: 2522
Serbia

To rate posts you must be logged in
#6
@Izzy: no problem Smile

@10000th: as I said, linear function has its maximum on one of its ends, so if we draw a segment through a point which we look at such that one of the endpoints is one of the vertexes, and the other lies on one of the sides, we see that the value at that interior point is less or equal to at least one of the segment endpoints, which are vertex and point on a side (or vertex again)

PostPosted: Mon Nov 09, 2009 2:09 pm  Back to top 
  ProfilePM
brainomega
Hodge Conjecture
Hodge Conjecture


Offline
Joined: 05 Jun 2009
Posts: 73
Location: Earth

To rate posts you must be logged in
#7
Bugi wrote:
Note: this is not a good method for many variables and/or higher degree conditions

There's a reason why linear programming is called "linear". The function and the constraints must be linear.

PostPosted: Tue Nov 10, 2009 7:27 am  Back to top 
  ProfilePM
10000th User
Navier-Stokes Equations
Navier-Stokes Equations


Offline
Joined: 04 Jul 2005
Posts: 1721
Location: NJ

To rate posts you must be logged in
#8
Bugi wrote:
@10000th: as I said, linear function has its maximum on one of its ends, so if we draw a segment through a point which we look at such that one of the endpoints is one of the vertexes, and the other lies on one of the sides, we see that the value at that interior point is less or equal to at least one of the segment endpoints, which are vertex and point on a side (or vertex again)
FYI, my post was for isabella2296 and... I'm sorry that you are repeating this stuff again but I think I know about this subject more than you think I do Wink

@brainomega: Exactly. That makes Integer Programming a much harder set of problems, in general. Gomory cuts Mr. Green
_________________
\mathrm{Hom}(\mathbb{Z},\mathbb{Z})\cong\mathbb{Z}
Disclaimer: I'll revive old threads if: 1) something ambiguous in the solution or wrong argument, 2) no solution, 3) I got new insight to input.

PostPosted: Tue Nov 10, 2009 3:48 pm  Back to top 
  ProfilePMBlogAlbum
Bugi
Birch & Swinnerton Dyer
Birch & Swinnerton Dyer

Offline
Joined: 26 Jun 2008
Posts: 2522
Serbia

To rate posts you must be logged in
#9
@10000th: OK, no need for any panic Wink I just wanted to write it in the thread, so people could know, and it was addressed to you, because you said you can't find a source

@brainomega: hahahaha yeah I forgot it was linear programming...

PostPosted: Tue Nov 10, 2009 4:18 pm  Back to top 
  ProfilePM
Display posts from previous:   Sort by:   
9 Posts • Page 1 of 1
Post new topic   Reply to topic View previous topicView next topic
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
You cannot post calendar events in this forum


© Copyright 2008 AoPS Incorporated. All Rights Reserved. • FoundationPrivacyContact Us