Hello!
I’m very new GH user, currently trying to solve the following problem for which I couldn’t find explanation anywhere, I hope someone can guide me in the right direction.
Lets imagine I have two sets of data -
List 1 is numbers ranging from 100 to 200, step 10
List 2 is reversed, numbers ranging from 200 to 100, step 10
I multiply the lists between them with cross reference, end result is, I get 11 lists, each with 11 results.
I’d like to find the next smallest value, that is larger than X, and find, which numbers multiplying causes it.
My current actions where -
I created a mapping list where each number is compared if it’s larger than X.
Afterwards I cull the list with every number that’s smaller.
After that I sort the list from smallest to largest value and I find the next smallest value that’s larger than X.
Now comes the problem, that I can’t understand how to index it in the first multiplying list to somehow find, from which numbers the value comes.
I have attached my GH example file.
List indexing.gh (11.8 KB)
Goal is to use this method, to find, for example, smallest necessary cross section to withstand force F, e.t.c.
Thank you for any help!