I am trying to figure out a way to find the best combination of multiple segment lengths given a rule for the remainder.
Given any curve of length L, a list of possible segment lengths and setting a minimum and a maximum Remainder values I want to find the combinations that satisfy the rule.
Not all the possible lengths must be used.
“N1,N2,…” in picture are Integers
After some work I have been able to get all the Remainder values that satisfy the rule, however I was not able to back trace the respective combinations in order to chose one of them.
Hope anyone has tackled this before and can give a hand.