public void RandomBaseline() { var solution = SimpleSolvers.Random(42, 70_000)(Problem); $"{solution.Description} the best is {solution.BestItem.Description}" .Should().Be("After 106,187 iterations the best is Size: 997, Value: 8131"); }
public void SimpleBaseline() { SimpleSolvers.LargestValueFirst(Problem).Description.Should().Be("Size: 983, Value: 4717"); SimpleSolvers.SmallestSizeFirst(Problem).Description.Should().Be("Size: 954, Value: 8188"); SimpleSolvers.BestRatioFirst(Problem).Description.Should().Be("Size: 947, Value: 9334"); }