Find intersection between two sets

조회 수: 6 (최근 30일)
Aleksandrs
Aleksandrs 2013년 3월 18일
Hello,
I would be very grateful if you could help me with the following problem.
Consider a convex set represented by:
Ax<=b and x1+x2+x3+x4=22.0853
where
A =
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
1 1 0 0
1 0 1 0
1 0 0 1
0 1 1 0
0 1 0 1
0 0 1 1
1 1 1 0
1 1 0 1
1 0 1 1
0 1 1 1
and
b =
5.8737
20.5204
22.7264
7.7624
17.1473
26.6984
5.8084
21.2802
25.4698
20.2316
21.8626
21.4442
23.6201
22.8401
So, this convex set consists of all points that sum up to 22.0853 and that satisfy Ax<=b.
Next, I have another set: x2>=x1>=x4>=x3
In matrixform it can be represented in the following way:
A1x<=b1, where
A1 =
1 -1 0 0
-1 0 0 1
0 0 1 -1
b1 =
0
0
0
I know that the following point is in the intersection of these two sets (found by quadprog):
x1=
2.9042
13.3727
2.9042
2.9042
My problem is that I want to find not only one, but the whole set of points, which are in both above mentioned sets (the intersection between these sets). Is it possible to solve this problem in Matlab?
Thank you very much for your time and consideration!
Alex
  댓글 수: 2
Titus Edelhofer
Titus Edelhofer 2013년 3월 18일
Hi Alex,
hmm, how do you think should this look like? If it's not a single point it will be an area (of infinite number of points then).
Titus
Aleksandrs
Aleksandrs 2013년 3월 19일
Hi Titus,
Any representation would be great. I didn't write anything in the text, because I thought maybe some experts will get an idea that I don't have when they read my post or maybe Maybe matlab has a built in function or something.
But personally I thought finding all the extreme points. Then I can check whether everything between two given points is included in the intersection of these two sets.
Thank you!

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by