?? depthfirstbranchandboundsolver.cs
字號:
namespace Opus6
{
using System;
[Copyright("Copyright (c) 2001 by Bruno R. Preiss, P.Eng."), Version("$Id: DepthFirstBranchAndBoundSolver.cs,v 1.4 2001/10/28 19:50:09 brpreiss Exp $")]
public class DepthFirstBranchAndBoundSolver : AbstractSolver
{
protected override void Search(Solution current)
{
if (current.IsComplete)
{
this.UpdateBest(current);
}
else
{
foreach (Solution solution1 in current.Successors)
{
if (solution1.IsFeasible && (solution1.Bound < base.bestObjective))
{
this.Search(solution1);
}
}
}
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -