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

#### pilotage

##### New Member
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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
are we talking 3 sides, 4 sides, 5 sides or more ?

are we talking 3 sides, 4 sides, 5 sides or more ?
I am not sure I understand your question. Perhaps it's 4 sides and the Max formula is to identify if it falls within the feasible region.

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

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

Replies
7
Views
936
Replies
1
Views
2K
Replies
3
Views
2K
Replies
0
Views
578
Replies
3
Views
2K

1,221,124
Messages
6,158,073
Members
451,463
Latest member
PowerIon2

### 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.

### Which adblocker are you using?

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

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