CreativeInquiry / PEmbroider

Embroidery Library for Processing
Other
442 stars 28 forks source link

Add optional numTrials argument to E.optimize()? #6

Closed golanlevin closed 4 years ago

golanlevin commented 4 years ago

I'm seeing some VERY long optimization times (on the order of minutes) for large/complex designs. Let's pass in an optional argument for the number of optimization trials, (default 3) so that I can decide to do a quick test, OR to let it run overnight, etc.

LingDong- commented 4 years ago

Added: 0ca31e8c67d1051d9a891f5ed52f2bc34979fdd2

E.optimize();  // default 5 trials, 999 max iterations of 2-opt per trial

E.optimize(42, 0xbeef); // 42 trials, 48879 max iterations each