protected SolutionInstance(SolutionSpace space, IReadOnlyList <int> coords) { _cost = -1.0; Space = space; Coords = coords; Debug.Assert(CheckCoords()); }
protected SolutionInstance(SolutionSpace space, IReadOnlyList <int> coordinates) { _space = space; _coordinates = coordinates; _cost = -1.0; _neighbors = CreateNeighbors(); }
protected Solver(SolutionSpace space) { _space = space; }
protected SolutionInstance(SolutionSpace space, IReadOnlyList <int> coordinates) { _space = space; _coordinates = coordinates; _cost = -1.0; }
public GeneticSolver(SolutionSpace space, bool introduceDiversity = false, double diversityFactor = 0.5, double diversityThreshold = 30) : base(space) { _introduceDiversity = introduceDiversity; _diversityFactor = diversityFactor; _diversityThreshold = diversityThreshold; }
public SimulatedAnnealingSolver(SolutionSpace space) : base(space) { }
public MonteCarloSolver(SolutionSpace space) : base(space) { }