Skip to content

property GKZ_VECTOR not created as expected #311

@kalmarek

Description

@kalmarek

there is a title, but I don't think it's related to GKZ_VECTOR...

for i in 1:100
@info i
let n = 5

    c = polytope.cube(n)
    pts = Matrix{Rational{BigInt}}(c.VERTICES);
   
    for i in n+1:size(pts, 1)
        let sub_pts = pts[1:i, :]
        
            try
                pc = polytope.PointConfiguration(POINTS=sub_pts)
                pc.TRIANGULATION

                gkz = pc.TRIANGULATION.GKZ_VECTOR
            catch ex
                @error "at i = $i exception was thrown:" ex
            end                
        end
    end    
end;
end

non-deterministically (hence the outer loop) shows:

┌ Error: at i = 17 exception was thrown:
│   ex =
│    Exception occured at Polymake side:
│    property GKZ_VECTOR not created as expected at /home/kalmar/.julia/dev/Polymake/deps/usr/share/polymake/perllib/Polymake/Core/BigObject.pm line 1559.
│    
└ @ Main /tmp/placing.jl:18

to my complete chagrin shifting pc = polytope.PointConfiguration(POINTS=sub_pts) out of the try ... catch ... end block "fixes" the issue....

(the issue is even more pronounced for n=6)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions