// int COUNTER = 0; public SimulatedAnnealingSolver(ISolvable model, int starttemperature, int maxsteps, int reportevery, int parallelanealings) : base(model) { this.reportevery = reportevery; this.starttemperature = starttemperature; this.maxsteps = maxsteps; this.parallelanealings = parallelanealings; }
public GeneticSolver(ISolvable model, int generations, int population_size, int mutation_probability, int reportevery) : base(model) { this.generations = generations; this.population_size = population_size; this.mutation_probability = mutation_probability; this.reportevery = reportevery; total_model_evaluations = population_size * generations; }
static public List <I2DShape> GetIntersections(ISolvable LHS, ISolvable RHS) { //List<> List <I2DShape> _return = new List <I2DShape>(); List <Point> startSolvingPoints = LHS.SolvingStartPoints; startSolvingPoints.AddRange(RHS.SolvingStartPoints); return(_return); }
private void write_result(ISolvable model) { this.lblCost.Content = "Erfolg: " + model.GetCost(); String sequence = "Sequence:"; foreach (int i in model.GetSequence()) { sequence += "-" + i.ToString(); } lblSequence.Content = sequence; }
public List <Point> GetIntersectionWith(ISolvable shape) { throw new NotImplementedException(); }
public GeneticSolver(ISolvable model) : base(model) { }
public BruteForceSolver(ISolvable model) : base(model) { }
public GreedySolver(ISolvable model) : base(model) { }
static void Main(string[] args) { ISolvable problem = Solvable; problem.Solve(); }
protected Solver(ISolvable model) { this.model = model; ProgressHandler = new Progress <Result>(); }
public ProblemToBeSolved(ISolvable problemSolver) { this.problemSolver = problemSolver; }
public void SetUp() => this._instance = GetInstance();
public NearestInsertionSolver(ISolvable model) : base(model) { }
internal static void SolveObj(ISolvable obj) { if (obj != null) obj.Solve(); }
public SavingsSolver(ISolvable model) : base(model) { }
public static void Solve(ISolvable solvable) { if (solvable != null) solvable.Solve(); }
public ProblemViewModel(ISolvable solvable, Dispatcher dispatcher) { _solvable = solvable; _solveProblemCommand = new SolveProblemCommand(this, dispatcher); }