On Jun 4, 4:37 pm, Marshall Hampton <[email protected]> wrote:
> Hi,
>
> Thanks for reporting this bug! It is now on trac as ticket
> #6214:http://trac.sagemath.org/sage_trac/ticket/6214
>
> I think I understand what is causing the problem and I will try to
> make a patch soon. The .dim() method tries to store the result in
> P._dim so it is not recomputed each time, but this value is set
> incorrectly when the polytope is first defined. If you do:
Thank you, I sort of understand your explanation (the double
inequalitie makes the politope use 6 dimensions when it's being
constructed and then it's not moved down
> To clarify the inequalities, they are of the form [b,a1,...,an], which
> represents the inequality b + a1*x1 + a2*x2 + ... + an*xn >= 1. So to
> put an equality in as inequalities, you need to use [b,a1,...,an] and
> [-b1,-a1,...,-an]. The linearities keyword is better, and I see that
> it is missing from the documentation for Polyhedron.
Yes, I figured out so, as in polymake. Ecept it's >= 0 I think
>
> As an aside, you might not want to use DATA as a variable name if you
> are using the notebook, since it is predefined as a path to a special
> directory.
>
> Again, thanks for reporting this, thats how this code will get
> better.
>
> -Marshall Hampton
>
no, thank you
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---