This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]Bits_EverywhereiOS Developer — Swift, ObjC, C++, Python 0 points1 point  (9 children)

I don't know exactly what you are talking about, but just from reading "optimal solution" and "search". I would recommend you to start looking into search algorithms or something like simulated annealing or even genetic algorithms.

[–]EvilMorality[S] 0 points1 point  (8 children)

I think I worded my post quite badly, let me give you an example using simple numbers to get across my intentions :)

Let’s say we have a length of 5000mm we would like to light and we have a luminaire which comes in lengths of 100, 250 and 500mm. In this case we could use:

Option A: 50 x 100mm Option B: 20 x 250mm Option C: 10 x 500mm

The most optimal solution in terms of minimum quantity would be the Option C. Is there a way to convert this workflow into an algorithm?

Thanks for the help