Beispiel #1
0
 internal OneStepSolver(IPenaltyCalculator injectedPenalty)
 {
     if (injectedPenalty == null)
     {
         injectedPenalty = new NeighborPenaltyCalculator();
     }
     penaltyCalculator = injectedPenalty;
 }
 internal WeightedMultiStepsSolver(IPenaltyCalculator injectedPenalty)
 {
     if (injectedPenalty == null)
     {
         injectedPenalty = new NeighborPenaltyCalculator();
     }
     penalty       = injectedPenalty;
     oneStepSolver = new OneStepSolver(penalty);
 }