How can I find all possible solutions to a LP?

6 ビュー (過去 30 日間)
Arjun M
Arjun M 2022 年 8 月 23 日
編集済み: Bruno Luong 2022 年 8 月 23 日
I have a LP with 4 variables and 12 constriants. How can I get all the possible solutions to this problem? I would ideally like to get them in the form of a matrix or arrays.
Another part of this is, how can I get the extreme points of a convex hull using MATLAB? If there are 4 lines and they form a convex hull, how can I get the extreme points of this?
Thank you for any help.

採用された回答

Matt J
Matt J 2022 年 8 月 23 日
編集済み: Matt J 2022 年 8 月 23 日
If the convex hull is a bounded polyhedron, you can use lcon2vert from,
to get its vertices.
To find all possible optimal solutions, you must evaluate the objective function at all the vertices. The set of all possible solutions will be the convex hull of the optimal vertices.
  5 件のコメント
Torsten
Torsten 2022 年 8 月 23 日
And where is the code in which you tried it ? And what is 3* ?
Bruno Luong
Bruno Luong 2022 年 8 月 23 日
編集済み: Bruno Luong 2022 年 8 月 23 日
@Arjun M As written b does not have lower bounds, so the admissibles set is unbounded.
Such set cannot be characterized fully by the vertexes (what you ask), and until you provide the cost gradient f the request of all possible solutions is not possible.
And the question has non sense for a computer to enumerate : the LP either has 0, one solution or inifity solution. Indeed if there are two or more distinct solutions then all the points in the convex combination are solutions, so the set is ininity, impossible to enumerate them.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeBounding Regions についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by