public void SolveJob_1() { var solver = new Solver(null); solver.AddDostawca(50); solver.AddDostawca(70); solver.AddDostawca(30); solver.AddOdbiorca(20); solver.AddOdbiorca(40); solver.AddOdbiorca(90); solver.Init(JobType.TransportCosts); solver.AddKosztyJednostkowe(0, 0, 3); solver.AddKosztyJednostkowe(0, 1, 5); solver.AddKosztyJednostkowe(0, 2, 7); solver.AddKosztyJednostkowe(1, 0, 12); solver.AddKosztyJednostkowe(1, 1, 10); solver.AddKosztyJednostkowe(1, 2, 9); solver.AddKosztyJednostkowe(2, 0, 13); solver.AddKosztyJednostkowe(2, 1, 3); solver.AddKosztyJednostkowe(2, 2, 9); solver.Resolve(JobType.TransportCosts); var iterations = solver.Iterations; Assert.AreEqual(3, iterations.Count); Assert.AreEqual(1120, iterations[0].IterationResultValue); Assert.AreEqual(1050, iterations[1].IterationResultValue); Assert.AreEqual(970, iterations[2].IterationResultValue); }