Example #1
0
        public Display(Solution solution)
        {
            InitializeComponent();
            sol = solution;
            this.Text = "Solution Graph (costs: " + sol.costs() + ")";
            this.Size = new Size(800, 800);

            // depot point
            depot = new Point(this.Width / 2, this.Height / 2);

            // different strokes for different folks
            definteBrushes();

            // paint event
            this.Paint += new PaintEventHandler(drawSolution);
        }
 public IterativeImprovement(Solution initial_solution, int iter)
 {
     s = initial_solution;
     iterations = iter;
     cost_opt = s.costs(); //Initial optimal cost
 }