Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
P(A,b)={x∣ A.x ≤ b}
この入力で多面体を作成する必要があります
しかし、このような賢明な不等式ではA.x + b >= 0、変換する方法
A.x + b >= 0
このようなもの:
sage: A = matrix(2,2,[1,23,31,4]) sage: b = vector([55,66]) sage: Polyhedron(ieqs=(-A).augment(b)).inequalities_list() [[-1, -23, 55], [-31, -4, 66]]