Plotting the points that make up the line constraints for a "feasible region"?

pilotage

New Member
Joined
Aug 30, 2014
Messages
2
Greetings. Is it possible to plot various "x,y" points and the respective lines between them and then shade the feasible region bounded by those constraints??

Max 5x1 + 7x2 <= 35
s.t. x1 <= 6
2x1 + 3x2 <= 19
x1 + x2 <= 8
x1, x2 >= 0
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Greetings. Is it possible to plot various "x,y" points and the respective lines between them and then shade the feasible region bounded by those constraints??

Max 5x1 + 7x2 <= 35
s.t. x1 <= 6
2x1 + 3x2 <= 19
x1 + x2 <= 8
x1, x2 >= 0

I don't do charts, so I cannot help you with that part if it is your ultimate goal, but it almost sounds like you are interested in knowing if a given point falls within a shape formed by intersecting lines. If so, you could calculate the intersection points for your lines using straight algebra, form the necessary arrays and then use the code I posted in my mini-blog article here to see if any test point is located within that shape or not...
<!-- title / author block -->
Test Whether A Point Is In A Polygon Or Not
 
Upvote 0
another possibility is making cells 3 pixels by 3 pixels put the "corner ones on and by algebra determine if all other cells are within bounds and if so colour them
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,208
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top