Find intersection between two sets
조회 수: 6 (최근 30일)
이전 댓글 표시
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
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!