Boundaries points for Linear Programming (graphical)
Show older comments

i want to find these points without using intersection
9 Comments
Image Analyst
on 6 Jun 2020
What data do you have to start with? You forgot to show your code for how you created this figure.
HMe
on 6 Jun 2020
KSSV
on 6 Jun 2020
What exactly you want?
KSSV
on 6 Jun 2020
You can use interpolation logics to get the points you want. Is that okay for you?
HMe
on 6 Jun 2020
KSSV
on 6 Jun 2020
For the give lines in the figure, if you get the intersection points is that enough?
HMe
on 6 Jun 2020
Alexandre Riebel
on 24 Jul 2020
Edited: Alexandre Riebel
on 24 Jul 2020
It's not clear exaclty what you are looking for. For every situation that you are looking at, will there be a point at the origin, and will there be a point on the x-axis and y-axis? Or are you just looking for the intersection point between the black and red lines?
Answers (1)
John D'Errico
on 24 Jul 2020
Edited: John D'Errico
on 24 Jul 2020
0 votes
You probably want to use the code plotregion, by Per Bergström. It can be found on the file exchange.
Of course, if you have a 4-d problem or greater, then nothing will work, at least to plot.
plotregion handles general sets of linear inequality constraints, as well as bound constraints. If you have equality constraints too, things will become more complex.
If your goal is to find the intersection points themselves, then a tool like this may be appropriate, thus the function LCON2VERT from this set of tools by Matt J.
As well, there are tools from Michael Kleder, which apparently inspired the tools from Matt.
Categories
Find more on Computational Geometry in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!