Example #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            var folderDialog = new FolderBrowserDialog();

            if (folderDialog.ShowDialog() == DialogResult.OK)
            {
                _model.WriteResult(folderDialog.SelectedPath);
            }

            //_model.BestSolution.WriteSolution(_model.Setting.LogFolder);
        }
Example #2
0
        public void WriteResult()
        {
            //After Evolution
            //weightValues = Scaleto100(weightValues);
            var sum = weightValues[0] + weightValues[1] + weightValues[2];

            if (sum != 100)
            {
                var scale = 100 / sum;
                weightValues[0] = weightValues[0] * scale;
                weightValues[1] = weightValues[1] * scale;
                weightValues[2] = weightValues[2] * scale;
            }
            try
            {
                _model.ShowParetoSolution(weightValues[0], weightValues[1], weightValues[2]);
            }
            catch (Exception e) { Console.WriteLine(e); }
            //if (draw_pareto_3d) { _model.Draw3DPareto(); }
            //Write Results to path
            _model.WriteResult(output_path);
            Console.WriteLine("Done.");
            write_finished = true;
        }