ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 26 Oct 2019 00:19:36 +0200How to find the vertices a a polyhedron define by inequalities ,https://ask.sagemath.org/question/48144/how-to-find-the-vertices-a-a-polyhedron-define-by-inequalities/I would like to know if there is a way to obtain the v-representation of a polyhedron from its definition by inequalities like
$\{x \geq 0, y \geq 0, y + x \leq 10\}$
I find the opposite in the documentation. (If possible in higher dimension, because i can always solve for the solution.Wed, 02 Oct 2019 19:02:40 +0200https://ask.sagemath.org/question/48144/how-to-find-the-vertices-a-a-polyhedron-define-by-inequalities/Answer by tmonteil for <p>I would like to know if there is a way to obtain the v-representation of a polyhedron from its definition by inequalities like</p>
<p>${x \geq 0, y \geq 0, y + x \leq 10}$</p>
<p>I find the opposite in the documentation. (If possible in higher dimension, because i can always solve for the solution.</p>
https://ask.sagemath.org/question/48144/how-to-find-the-vertices-a-a-polyhedron-define-by-inequalities/?answer=48146#post-id-48146To get some autonomy, you can get informations on the `Polyhedron` constructor as:
sage: Polyhedron?
See in particular the `ieqs` parameter.
Once your polyhedron is defined, and assigned to the name, say `P`, you can use Tab completion:
sage: P.<TAB_COMPLETION>
to see all the methods available. You will see that there is a `vertices` method.
Wed, 02 Oct 2019 19:38:08 +0200https://ask.sagemath.org/question/48144/how-to-find-the-vertices-a-a-polyhedron-define-by-inequalities/?answer=48146#post-id-48146Comment by jipilab for <p>To get some autonomy, you can get informations on the <code>Polyhedron</code> constructor as:</p>
<pre><code>sage: Polyhedron?
</code></pre>
<p>See in particular the <code>ieqs</code> parameter.</p>
<p>Once your polyhedron is defined, and assigned to the name, say <code>P</code>, you can use Tab completion:</p>
<pre><code>sage: P.<TAB_COMPLETION>
</code></pre>
<p>to see all the methods available. You will see that there is a <code>vertices</code> method.</p>
https://ask.sagemath.org/question/48144/how-to-find-the-vertices-a-a-polyhedron-define-by-inequalities/?comment=48505#post-id-48505It is also possible to get the full V-representation using the `Vrepresentation` method.Sat, 26 Oct 2019 00:19:36 +0200https://ask.sagemath.org/question/48144/how-to-find-the-vertices-a-a-polyhedron-define-by-inequalities/?comment=48505#post-id-48505