Create multiple subobjects using rules

Questions and problems about using polymake go here.
lkastner
Developer
Posts: 12
Joined: 27 May 2012, 23:35

Create multiple subobjects using rules

Postby lkastner » 27 May 2012, 23:41

I was wondering if it is possible to set multiple using rules. For example for Ideals we want to compute the primary decomposition which is a set of ideals. We introduced this as a multiple subobject, but it doesn't seem to be possible to add multiple subobjects in rules. Is there some workaround for this? We can't introduce an array of ideals instead, since arrays don't work for polymake objects.
Cheers,
Lars

User avatar
gawrilow
Main Author
Posts: 423
Joined: 25 Dec 2010, 17:40

Re: Create multiple subobjects using rules

Postby gawrilow » 29 May 2012, 11:53

You have poked at two long-term construction sites, unfortunately. In your case, multiple subobjects are not appropriate, because the individual instances are not related to each other, they can be even deleted at the user's will. You need indeed the Array<perl::Object>. The number of the ticket devoted to it is embarrassingly low :-) I'll try to find some interim solution in the coming days.

lkastner
Developer
Posts: 12
Joined: 27 May 2012, 23:35

Re: Create multiple subobjects using rules

Postby lkastner » 29 May 2012, 14:42

Right now I am using a user_function to set these values from the outside as an interim solution. This is not very pretty, but it works fine, so take your time.
Thanks, Lars


Return to “Helpdesk”