private void InitSolver() { IPenaltyCalculator calc = CalculatorFactory.Generate(CalculatorType.NeighborMergeAndCorner); solver = SolverFactory.Generate(SolverType.WeightedMultiSteps, calc); }