Quantcast
Channel: Grasshopper - McNeel Forum
Viewing all articles
Browse latest Browse all 39494

Group number to create specified sum (galapagos?)

$
0
0

@evo85210 wrote:

I was wondering if it’s possible to group numbers into a list so that each list would have a sum close to a number i specified?

for example, i have numbers:
1,3,5,6,7,9,12
and i want a sum of list to be as close to 12 as possible
so it’d split these number into lists like:
[0] 12
[1] 9, 3
[2] 7, 5
[3] 6,1

is this possible?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 39494

Trending Articles