The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
selecting permutations of collection items
Hello all.
I have a collection of m*n (let's say 2*2=4) example sets (xsets) outputted by a loop of parameters.
From that collection, I need to be able to select 3 items at a time based on their given collection index number (4 permutations 123,124,134,234) and then join them permutatively (e.g. 1+2+3) in a single xset. I've been trying with one of the Loop* operators looping 1 to m*n with Select as its inner operator but the problem is Select expects collection but Loop* operators expect xset (e.g. LoopCollection cannot contain Select as its inner operator) so it seems they cannot be sequenced in this way.
How can I loop over items in a collection with Select as the only inner operator ? Can't seem to get my head round how to do this...
best, Harri
I have a collection of m*n (let's say 2*2=4) example sets (xsets) outputted by a loop of parameters.
From that collection, I need to be able to select 3 items at a time based on their given collection index number (4 permutations 123,124,134,234) and then join them permutatively (e.g. 1+2+3) in a single xset. I've been trying with one of the Loop* operators looping 1 to m*n with Select as its inner operator but the problem is Select expects collection but Loop* operators expect xset (e.g. LoopCollection cannot contain Select as its inner operator) so it seems they cannot be sequenced in this way.
How can I loop over items in a collection with Select as the only inner operator ? Can't seem to get my head round how to do this...
best, Harri
0