fix: resolve infinite loop in multi-plate autonest and wire into console
- Change while(true) to bounded for-loop (max 100 plates) in MainForm - Use Drawing.Name comparison instead of reference equality for quantity deduction - Add Math.Max(0, ...) guard to prevent negative quantities - Tune SA parameters for faster convergence (cooling=0.995, minTemp=0.1, maxNoImprove=500) - Add --autonest flag to OpenNest.Console for CLI-based NFP autonesting Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -13,9 +13,9 @@ namespace OpenNest
|
||||
/// </summary>
|
||||
public class SimulatedAnnealing : INestOptimizer
|
||||
{
|
||||
private const double DefaultCoolingRate = 0.997;
|
||||
private const double DefaultMinTemperature = 0.01;
|
||||
private const int DefaultMaxNoImprovement = 2000;
|
||||
private const double DefaultCoolingRate = 0.995;
|
||||
private const double DefaultMinTemperature = 0.1;
|
||||
private const int DefaultMaxNoImprovement = 500;
|
||||
|
||||
public NestResult Optimize(List<NestItem> items, Box workArea, NfpCache cache,
|
||||
Dictionary<int, List<double>> candidateRotations,
|
||||
|
||||
Reference in New Issue
Block a user