Chart control.

The chart control allows to display multiple charts at time of different types: dots, lines, connected dots.

Sample usage:

// create data series array double[,] testValues = new double[10, 2]; // fill data series for ( int i = 0; i < 10; i++ ) { testValues[i, 0] = i; // X values testValues[i, 1] = Math.Sin( i / 18.0 * Math.PI ); // Y values } // add new data series to the chart chart.AddDataSeries( "Test", Color.DarkGreen, Chart.SeriesType.ConnectedDots, 3 ); // set X range to display chart.RangeX = new AForge.Range( 0, 9 ); // update the chart chart.UpdateDataSeries( "Test", testValues );
Inheritance: System.Windows.Forms.Control
        public TrainingDialog(ref TrainingDataSet dataSet)
        {
            InitializeComponent();

            _BackgroundWorker = new BackgroundWorker();
            _BackgroundWorker.WorkerReportsProgress = true;
            _BackgroundWorker.WorkerSupportsCancellation = true;
            _BackgroundWorker.DoWork += new DoWorkEventHandler(DoWork);
            _BackgroundWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(RunWorkerCompleted);
            _BackgroundWorker.ProgressChanged += new ProgressChangedEventHandler(ProgressChanged);        

            _DataSet = dataSet;

             _Chart = new Chart();
            windowsFormsHost1.Child = _Chart;

            _Series = 0;

            StopButton.IsEnabled = false;
        
            _Network = new ActivationNetwork(
                new SigmoidFunction(),
                _NumInputNeurons,
                9,
                _NumOutputNeurons
            );

            #region Initialize ANN stuff
            _ANN = new ANN();
            _ANN.NumLayers = 3;
            _ANN.SetNumNeurons(0, _NumInputNeurons);
            _ANN.SetNumNeurons(1, 9);
            _ANN.SetNumNeurons(2, _NumOutputNeurons);

            // Bind DataGrid to ANN-DataSet now
            _DataSetANN = new DataSet("HiddenLayer");
            _DataSetANN.Tables.Add("HiddenLayerTable");
            uint tmp = 9;
            _DataSetANN.Tables[0].Columns.Add("Neurons", tmp.GetType());
            _DataSetANN.Tables[0].Rows.Add(tmp);
            HiddenLayerDataGrid.DataContext = _DataSetANN.Tables[0];
            #endregion
        }
Exemplo n.º 2
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(XorProblem));
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.stopButton = new System.Windows.Forms.Button();
            this.startButton = new System.Windows.Forms.Button();
            this.label5 = new System.Windows.Forms.Label();
            this.currentErrorBox = new System.Windows.Forms.TextBox();
            this.label11 = new System.Windows.Forms.Label();
            this.currentIterationBox = new System.Windows.Forms.TextBox();
            this.label8 = new System.Windows.Forms.Label();
            this.label7 = new System.Windows.Forms.Label();
            this.sigmoidTypeCombo = new System.Windows.Forms.ComboBox();
            this.errorLimitBox = new System.Windows.Forms.TextBox();
            this.label3 = new System.Windows.Forms.Label();
            this.alphaBox = new System.Windows.Forms.TextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.learningRateBox = new System.Windows.Forms.TextBox();
            this.label1 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.errorChart = new AForge.Controls.Chart();
            this.saveFilesCheck = new System.Windows.Forms.CheckBox();
            this.groupBox1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.SuspendLayout();
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.stopButton);
            this.groupBox1.Controls.Add(this.startButton);
            this.groupBox1.Controls.Add(this.label5);
            this.groupBox1.Controls.Add(this.currentErrorBox);
            this.groupBox1.Controls.Add(this.label11);
            this.groupBox1.Controls.Add(this.currentIterationBox);
            this.groupBox1.Controls.Add(this.label8);
            this.groupBox1.Controls.Add(this.label7);
            this.groupBox1.Controls.Add(this.sigmoidTypeCombo);
            this.groupBox1.Controls.Add(this.errorLimitBox);
            this.groupBox1.Controls.Add(this.label3);
            this.groupBox1.Controls.Add(this.alphaBox);
            this.groupBox1.Controls.Add(this.label2);
            this.groupBox1.Controls.Add(this.learningRateBox);
            this.groupBox1.Controls.Add(this.label1);
            this.groupBox1.Controls.Add(this.label4);
            this.groupBox1.Location = new System.Drawing.Point(16, 15);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(312, 380);
            this.groupBox1.TabIndex = 0;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Neural Network";
            // 
            // stopButton
            // 
            this.stopButton.Enabled = false;
            this.stopButton.Location = new System.Drawing.Point(176, 329);
            this.stopButton.Name = "stopButton";
            this.stopButton.Size = new System.Drawing.Size(120, 33);
            this.stopButton.TabIndex = 28;
            this.stopButton.Text = "S&top";
            this.stopButton.Click += new System.EventHandler(this.stopButton_Click);
            // 
            // startButton
            // 
            this.startButton.Location = new System.Drawing.Point(40, 329);
            this.startButton.Name = "startButton";
            this.startButton.Size = new System.Drawing.Size(120, 33);
            this.startButton.TabIndex = 27;
            this.startButton.Text = "&Start";
            this.startButton.Click += new System.EventHandler(this.startButton_Click);
            // 
            // label5
            // 
            this.label5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.label5.Location = new System.Drawing.Point(16, 308);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(280, 3);
            this.label5.TabIndex = 26;
            // 
            // currentErrorBox
            // 
            this.currentErrorBox.Location = new System.Drawing.Point(200, 270);
            this.currentErrorBox.Name = "currentErrorBox";
            this.currentErrorBox.ReadOnly = true;
            this.currentErrorBox.Size = new System.Drawing.Size(96, 26);
            this.currentErrorBox.TabIndex = 25;
            // 
            // label11
            // 
            this.label11.Location = new System.Drawing.Point(16, 273);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(194, 21);
            this.label11.TabIndex = 24;
            this.label11.Text = "Current summary error:";
            // 
            // currentIterationBox
            // 
            this.currentIterationBox.Location = new System.Drawing.Point(200, 234);
            this.currentIterationBox.Name = "currentIterationBox";
            this.currentIterationBox.ReadOnly = true;
            this.currentIterationBox.Size = new System.Drawing.Size(96, 26);
            this.currentIterationBox.TabIndex = 23;
            // 
            // label8
            // 
            this.label8.Location = new System.Drawing.Point(16, 237);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(157, 23);
            this.label8.TabIndex = 22;
            this.label8.Text = "Current iteration:";
            // 
            // label7
            // 
            this.label7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.label7.Location = new System.Drawing.Point(16, 219);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(280, 3);
            this.label7.TabIndex = 21;
            // 
            // sigmoidTypeCombo
            // 
            this.sigmoidTypeCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.sigmoidTypeCombo.Items.AddRange(new object[] {
            "Unipolar",
            "Bipolar"});
            this.sigmoidTypeCombo.Location = new System.Drawing.Point(200, 140);
            this.sigmoidTypeCombo.Name = "sigmoidTypeCombo";
            this.sigmoidTypeCombo.Size = new System.Drawing.Size(96, 28);
            this.sigmoidTypeCombo.TabIndex = 9;
            // 
            // errorLimitBox
            // 
            this.errorLimitBox.Location = new System.Drawing.Point(200, 104);
            this.errorLimitBox.Name = "errorLimitBox";
            this.errorLimitBox.Size = new System.Drawing.Size(96, 26);
            this.errorLimitBox.TabIndex = 7;
            // 
            // label3
            // 
            this.label3.Location = new System.Drawing.Point(16, 107);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(176, 22);
            this.label3.TabIndex = 6;
            this.label3.Text = "Learning error limit:";
            // 
            // alphaBox
            // 
            this.alphaBox.Location = new System.Drawing.Point(200, 67);
            this.alphaBox.Name = "alphaBox";
            this.alphaBox.Size = new System.Drawing.Size(96, 26);
            this.alphaBox.TabIndex = 5;
            // 
            // label2
            // 
            this.label2.Location = new System.Drawing.Point(16, 70);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(192, 22);
            this.label2.TabIndex = 4;
            this.label2.Text = "Sigmoid\'s alpha value:";
            // 
            // learningRateBox
            // 
            this.learningRateBox.Location = new System.Drawing.Point(200, 29);
            this.learningRateBox.Name = "learningRateBox";
            this.learningRateBox.Size = new System.Drawing.Size(96, 26);
            this.learningRateBox.TabIndex = 1;
            // 
            // label1
            // 
            this.label1.Location = new System.Drawing.Point(16, 32);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(125, 21);
            this.label1.TabIndex = 0;
            this.label1.Text = "Learning rate:";
            // 
            // label4
            // 
            this.label4.Location = new System.Drawing.Point(16, 143);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(160, 22);
            this.label4.TabIndex = 8;
            this.label4.Text = "Sigmoid\'s type:";
            // 
            // groupBox2
            // 
            this.groupBox2.Controls.Add(this.errorChart);
            this.groupBox2.Controls.Add(this.saveFilesCheck);
            this.groupBox2.Location = new System.Drawing.Point(344, 15);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(352, 380);
            this.groupBox2.TabIndex = 1;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Error\'s dynamics";
            // 
            // errorChart
            // 
            this.errorChart.Location = new System.Drawing.Point(16, 29);
            this.errorChart.Name = "errorChart";
            this.errorChart.RangeX = ((AForge.Range)(resources.GetObject("errorChart.RangeX")));
            this.errorChart.RangeY = ((AForge.Range)(resources.GetObject("errorChart.RangeY")));
            this.errorChart.Size = new System.Drawing.Size(320, 300);
            this.errorChart.TabIndex = 2;
            this.errorChart.Text = "chart1";
            // 
            // saveFilesCheck
            // 
            this.saveFilesCheck.Location = new System.Drawing.Point(16, 341);
            this.saveFilesCheck.Name = "saveFilesCheck";
            this.saveFilesCheck.Size = new System.Drawing.Size(320, 26);
            this.saveFilesCheck.TabIndex = 1;
            this.saveFilesCheck.Text = "Save errors to files";
            // 
            // XorProblem
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
            this.ClientSize = new System.Drawing.Size(707, 409);
            this.Controls.Add(this.groupBox2);
            this.Controls.Add(this.groupBox1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.Name = "XorProblem";
            this.Text = "XOR Problem (Levenberg-Marquardt)";
            this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.ResumeLayout(false);

        }
Exemplo n.º 3
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.dataList = new System.Windows.Forms.ListView();
			this.yColumnHeader = new System.Windows.Forms.ColumnHeader();
			this.estimatedYColumnHeader = new System.Windows.Forms.ColumnHeader();
			this.loadDataButton = new System.Windows.Forms.Button();
			this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.chart = new AForge.Controls.Chart();
			this.groupBox3 = new System.Windows.Forms.GroupBox();
			this.moreSettingsButton = new System.Windows.Forms.Button();
			this.label10 = new System.Windows.Forms.Label();
			this.iterationsBox = new System.Windows.Forms.TextBox();
			this.label9 = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.predictionSizeBox = new System.Windows.Forms.TextBox();
			this.label7 = new System.Windows.Forms.Label();
			this.windowSizeBox = new System.Windows.Forms.TextBox();
			this.label6 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.geneticMethodBox = new System.Windows.Forms.ComboBox();
			this.label4 = new System.Windows.Forms.Label();
			this.functionsSetBox = new System.Windows.Forms.ComboBox();
			this.label3 = new System.Windows.Forms.Label();
			this.selectionBox = new System.Windows.Forms.ComboBox();
			this.label2 = new System.Windows.Forms.Label();
			this.populationSizeBox = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.startButton = new System.Windows.Forms.Button();
			this.stopButton = new System.Windows.Forms.Button();
			this.groupBox4 = new System.Windows.Forms.GroupBox();
			this.currentPredictionErrorBox = new System.Windows.Forms.TextBox();
			this.label13 = new System.Windows.Forms.Label();
			this.currentLearningErrorBox = new System.Windows.Forms.TextBox();
			this.label12 = new System.Windows.Forms.Label();
			this.currentIterationBox = new System.Windows.Forms.TextBox();
			this.label11 = new System.Windows.Forms.Label();
			this.groupBox5 = new System.Windows.Forms.GroupBox();
			this.solutionBox = new System.Windows.Forms.TextBox();
			this.toolTip = new System.Windows.Forms.ToolTip(this.components);
			this.groupBox1.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.groupBox3.SuspendLayout();
			this.groupBox4.SuspendLayout();
			this.groupBox5.SuspendLayout();
			this.SuspendLayout();
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.dataList);
			this.groupBox1.Controls.Add(this.loadDataButton);
			this.groupBox1.Location = new System.Drawing.Point(10, 10);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(180, 380);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "Data";
			// 
			// dataList
			// 
			this.dataList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
																					   this.yColumnHeader,
																					   this.estimatedYColumnHeader});
			this.dataList.FullRowSelect = true;
			this.dataList.GridLines = true;
			this.dataList.Location = new System.Drawing.Point(10, 20);
			this.dataList.Name = "dataList";
			this.dataList.Size = new System.Drawing.Size(160, 315);
			this.dataList.TabIndex = 1;
			this.dataList.View = System.Windows.Forms.View.Details;
			// 
			// yColumnHeader
			// 
			this.yColumnHeader.Text = "Y:Real";
			this.yColumnHeader.Width = 70;
			// 
			// estimatedYColumnHeader
			// 
			this.estimatedYColumnHeader.Text = "Y:Estimated";
			this.estimatedYColumnHeader.Width = 70;
			// 
			// loadDataButton
			// 
			this.loadDataButton.Location = new System.Drawing.Point(10, 345);
			this.loadDataButton.Name = "loadDataButton";
			this.loadDataButton.TabIndex = 1;
			this.loadDataButton.Text = "&Load";
			this.loadDataButton.Click += new System.EventHandler(this.loadDataButton_Click);
			// 
			// openFileDialog
			// 
			this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
			this.openFileDialog.Title = "Select data file";
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.Add(this.chart);
			this.groupBox2.Location = new System.Drawing.Point(200, 10);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(300, 380);
			this.groupBox2.TabIndex = 1;
			this.groupBox2.TabStop = false;
			this.groupBox2.Text = "Function";
			// 
			// chart
			// 
			this.chart.Location = new System.Drawing.Point(10, 20);
			this.chart.Name = "chart";
			this.chart.Size = new System.Drawing.Size(280, 350);
			this.chart.TabIndex = 0;
			// 
			// groupBox3
			// 
			this.groupBox3.Controls.Add(this.moreSettingsButton);
			this.groupBox3.Controls.Add(this.label10);
			this.groupBox3.Controls.Add(this.iterationsBox);
			this.groupBox3.Controls.Add(this.label9);
			this.groupBox3.Controls.Add(this.label8);
			this.groupBox3.Controls.Add(this.predictionSizeBox);
			this.groupBox3.Controls.Add(this.label7);
			this.groupBox3.Controls.Add(this.windowSizeBox);
			this.groupBox3.Controls.Add(this.label6);
			this.groupBox3.Controls.Add(this.label5);
			this.groupBox3.Controls.Add(this.geneticMethodBox);
			this.groupBox3.Controls.Add(this.label4);
			this.groupBox3.Controls.Add(this.functionsSetBox);
			this.groupBox3.Controls.Add(this.label3);
			this.groupBox3.Controls.Add(this.selectionBox);
			this.groupBox3.Controls.Add(this.label2);
			this.groupBox3.Controls.Add(this.populationSizeBox);
			this.groupBox3.Controls.Add(this.label1);
			this.groupBox3.Location = new System.Drawing.Point(510, 10);
			this.groupBox3.Name = "groupBox3";
			this.groupBox3.Size = new System.Drawing.Size(185, 240);
			this.groupBox3.TabIndex = 2;
			this.groupBox3.TabStop = false;
			this.groupBox3.Text = "Settings";
			// 
			// moreSettingsButton
			// 
			this.moreSettingsButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204)));
			this.moreSettingsButton.ForeColor = System.Drawing.SystemColors.ControlText;
			this.moreSettingsButton.Location = new System.Drawing.Point(10, 220);
			this.moreSettingsButton.Name = "moreSettingsButton";
			this.moreSettingsButton.Size = new System.Drawing.Size(25, 15);
			this.moreSettingsButton.TabIndex = 17;
			this.moreSettingsButton.Text = ">>";
			this.toolTip.SetToolTip(this.moreSettingsButton, "More settings");
			this.moreSettingsButton.Click += new System.EventHandler(this.moreSettingsButton_Click);
			// 
			// label10
			// 
			this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.label10.Location = new System.Drawing.Point(125, 220);
			this.label10.Name = "label10";
			this.label10.Size = new System.Drawing.Size(58, 14);
			this.label10.TabIndex = 16;
			this.label10.Text = "( 0 - inifinity )";
			// 
			// iterationsBox
			// 
			this.iterationsBox.Location = new System.Drawing.Point(125, 200);
			this.iterationsBox.Name = "iterationsBox";
			this.iterationsBox.Size = new System.Drawing.Size(50, 20);
			this.iterationsBox.TabIndex = 15;
			this.iterationsBox.Text = "";
			// 
			// label9
			// 
			this.label9.Location = new System.Drawing.Point(10, 202);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(70, 16);
			this.label9.TabIndex = 14;
			this.label9.Text = "Iterations:";
			// 
			// label8
			// 
			this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.label8.Location = new System.Drawing.Point(10, 190);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(165, 2);
			this.label8.TabIndex = 13;
			// 
			// predictionSizeBox
			// 
			this.predictionSizeBox.Location = new System.Drawing.Point(125, 160);
			this.predictionSizeBox.Name = "predictionSizeBox";
			this.predictionSizeBox.Size = new System.Drawing.Size(50, 20);
			this.predictionSizeBox.TabIndex = 12;
			this.predictionSizeBox.Text = "";
			this.predictionSizeBox.TextChanged += new System.EventHandler(this.predictionSizeBox_TextChanged);
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(10, 162);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(90, 16);
			this.label7.TabIndex = 11;
			this.label7.Text = "Prediction size:";
			// 
			// windowSizeBox
			// 
			this.windowSizeBox.Location = new System.Drawing.Point(125, 135);
			this.windowSizeBox.Name = "windowSizeBox";
			this.windowSizeBox.Size = new System.Drawing.Size(50, 20);
			this.windowSizeBox.TabIndex = 10;
			this.windowSizeBox.Text = "";
			this.windowSizeBox.TextChanged += new System.EventHandler(this.windowSizeBox_TextChanged);
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(10, 137);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(80, 16);
			this.label6.TabIndex = 9;
			this.label6.Text = "Window size:";
			// 
			// label5
			// 
			this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.label5.Location = new System.Drawing.Point(10, 125);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(165, 2);
			this.label5.TabIndex = 8;
			// 
			// geneticMethodBox
			// 
			this.geneticMethodBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.geneticMethodBox.Items.AddRange(new object[] {
																  "GP",
																  "GEP"});
			this.geneticMethodBox.Location = new System.Drawing.Point(110, 95);
			this.geneticMethodBox.Name = "geneticMethodBox";
			this.geneticMethodBox.Size = new System.Drawing.Size(65, 21);
			this.geneticMethodBox.TabIndex = 7;
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(10, 97);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(100, 16);
			this.label4.TabIndex = 6;
			this.label4.Text = "Genetic method:";
			// 
			// functionsSetBox
			// 
			this.functionsSetBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.functionsSetBox.Items.AddRange(new object[] {
																 "Simple",
																 "Extended"});
			this.functionsSetBox.Location = new System.Drawing.Point(110, 70);
			this.functionsSetBox.Name = "functionsSetBox";
			this.functionsSetBox.Size = new System.Drawing.Size(65, 21);
			this.functionsSetBox.TabIndex = 5;
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(10, 72);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(100, 16);
			this.label3.TabIndex = 4;
			this.label3.Text = "Function set:";
			// 
			// selectionBox
			// 
			this.selectionBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.selectionBox.Items.AddRange(new object[] {
															  "Elite",
															  "Rank",
															  "Roulette"});
			this.selectionBox.Location = new System.Drawing.Point(110, 45);
			this.selectionBox.Name = "selectionBox";
			this.selectionBox.Size = new System.Drawing.Size(65, 21);
			this.selectionBox.TabIndex = 3;
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(10, 47);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(100, 16);
			this.label2.TabIndex = 2;
			this.label2.Text = "Selection method:";
			// 
			// populationSizeBox
			// 
			this.populationSizeBox.Location = new System.Drawing.Point(125, 20);
			this.populationSizeBox.Name = "populationSizeBox";
			this.populationSizeBox.Size = new System.Drawing.Size(50, 20);
			this.populationSizeBox.TabIndex = 1;
			this.populationSizeBox.Text = "";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(10, 22);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(100, 16);
			this.label1.TabIndex = 0;
			this.label1.Text = "Population size:";
			// 
			// startButton
			// 
			this.startButton.Enabled = false;
			this.startButton.Location = new System.Drawing.Point(535, 364);
			this.startButton.Name = "startButton";
			this.startButton.TabIndex = 3;
			this.startButton.Text = "&Start";
			this.startButton.Click += new System.EventHandler(this.startButton_Click);
			// 
			// stopButton
			// 
			this.stopButton.Enabled = false;
			this.stopButton.Location = new System.Drawing.Point(620, 364);
			this.stopButton.Name = "stopButton";
			this.stopButton.TabIndex = 4;
			this.stopButton.Text = "S&top";
			this.stopButton.Click += new System.EventHandler(this.stopButton_Click);
			// 
			// groupBox4
			// 
			this.groupBox4.Controls.Add(this.currentPredictionErrorBox);
			this.groupBox4.Controls.Add(this.label13);
			this.groupBox4.Controls.Add(this.currentLearningErrorBox);
			this.groupBox4.Controls.Add(this.label12);
			this.groupBox4.Controls.Add(this.currentIterationBox);
			this.groupBox4.Controls.Add(this.label11);
			this.groupBox4.Location = new System.Drawing.Point(510, 255);
			this.groupBox4.Name = "groupBox4";
			this.groupBox4.Size = new System.Drawing.Size(185, 100);
			this.groupBox4.TabIndex = 5;
			this.groupBox4.TabStop = false;
			this.groupBox4.Text = "Current iteration:";
			// 
			// currentPredictionErrorBox
			// 
			this.currentPredictionErrorBox.Location = new System.Drawing.Point(125, 70);
			this.currentPredictionErrorBox.Name = "currentPredictionErrorBox";
			this.currentPredictionErrorBox.ReadOnly = true;
			this.currentPredictionErrorBox.Size = new System.Drawing.Size(50, 20);
			this.currentPredictionErrorBox.TabIndex = 5;
			this.currentPredictionErrorBox.Text = "";
			// 
			// label13
			// 
			this.label13.Location = new System.Drawing.Point(10, 72);
			this.label13.Name = "label13";
			this.label13.Size = new System.Drawing.Size(100, 16);
			this.label13.TabIndex = 4;
			this.label13.Text = "Prediction error:";
			// 
			// currentLearningErrorBox
			// 
			this.currentLearningErrorBox.Location = new System.Drawing.Point(125, 45);
			this.currentLearningErrorBox.Name = "currentLearningErrorBox";
			this.currentLearningErrorBox.ReadOnly = true;
			this.currentLearningErrorBox.Size = new System.Drawing.Size(50, 20);
			this.currentLearningErrorBox.TabIndex = 3;
			this.currentLearningErrorBox.Text = "";
			// 
			// label12
			// 
			this.label12.Location = new System.Drawing.Point(10, 47);
			this.label12.Name = "label12";
			this.label12.Size = new System.Drawing.Size(80, 16);
			this.label12.TabIndex = 2;
			this.label12.Text = "Learning error:";
			// 
			// currentIterationBox
			// 
			this.currentIterationBox.Location = new System.Drawing.Point(125, 20);
			this.currentIterationBox.Name = "currentIterationBox";
			this.currentIterationBox.ReadOnly = true;
			this.currentIterationBox.Size = new System.Drawing.Size(50, 20);
			this.currentIterationBox.TabIndex = 1;
			this.currentIterationBox.Text = "";
			// 
			// label11
			// 
			this.label11.Location = new System.Drawing.Point(10, 22);
			this.label11.Name = "label11";
			this.label11.Size = new System.Drawing.Size(70, 16);
			this.label11.TabIndex = 0;
			this.label11.Text = "Iteration:";
			// 
			// groupBox5
			// 
			this.groupBox5.Controls.Add(this.solutionBox);
			this.groupBox5.Location = new System.Drawing.Point(10, 395);
			this.groupBox5.Name = "groupBox5";
			this.groupBox5.Size = new System.Drawing.Size(685, 50);
			this.groupBox5.TabIndex = 6;
			this.groupBox5.TabStop = false;
			this.groupBox5.Text = "Solution";
			// 
			// solutionBox
			// 
			this.solutionBox.Location = new System.Drawing.Point(10, 20);
			this.solutionBox.Name = "solutionBox";
			this.solutionBox.ReadOnly = true;
			this.solutionBox.Size = new System.Drawing.Size(665, 20);
			this.solutionBox.TabIndex = 0;
			this.solutionBox.Text = "";
			// 
			// MainForm
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(704, 455);
			this.Controls.Add(this.groupBox5);
			this.Controls.Add(this.groupBox4);
			this.Controls.Add(this.stopButton);
			this.Controls.Add(this.startButton);
			this.Controls.Add(this.groupBox3);
			this.Controls.Add(this.groupBox2);
			this.Controls.Add(this.groupBox1);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.Name = "MainForm";
			this.Text = "Time Series Prediction using Genetic Programming and Gene Expression Programming";
			this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
			this.groupBox1.ResumeLayout(false);
			this.groupBox2.ResumeLayout(false);
			this.groupBox3.ResumeLayout(false);
			this.groupBox4.ResumeLayout(false);
			this.groupBox5.ResumeLayout(false);
			this.ResumeLayout(false);

		}
Exemplo n.º 4
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.loadButton = new System.Windows.Forms.Button();
     this.chart = new AForge.Controls.Chart();
     this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.weightsList = new System.Windows.Forms.ListView();
     this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
     this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
     this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
     this.label4 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.saveFilesCheck = new System.Windows.Forms.CheckBox();
     this.stopButton = new System.Windows.Forms.Button();
     this.startButton = new System.Windows.Forms.Button();
     this.iterationsBox = new System.Windows.Forms.TextBox();
     this.label2 = new System.Windows.Forms.Label();
     this.learningRateBox = new System.Windows.Forms.TextBox();
     this.label1 = new System.Windows.Forms.Label();
     this.groupBox3 = new System.Windows.Forms.GroupBox();
     this.errorChart = new AForge.Controls.Chart();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                             this.loadButton,
                                                                             this.chart});
     this.groupBox1.Location = new System.Drawing.Point(10, 10);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(220, 255);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Data";
     //
     // loadButton
     //
     this.loadButton.Location = new System.Drawing.Point(10, 225);
     this.loadButton.Name = "loadButton";
     this.loadButton.TabIndex = 1;
     this.loadButton.Text = "&Load";
     this.loadButton.Click += new System.EventHandler(this.loadButton_Click);
     //
     // chart
     //
     this.chart.Location = new System.Drawing.Point(10, 20);
     this.chart.Name = "chart";
     this.chart.Size = new System.Drawing.Size(200, 200);
     this.chart.TabIndex = 0;
     //
     // openFileDialog
     //
     this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
     this.openFileDialog.Title = "Select data file";
     //
     // groupBox2
     //
     this.groupBox2.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                             this.weightsList,
                                                                             this.label4,
                                                                             this.label3,
                                                                             this.saveFilesCheck,
                                                                             this.stopButton,
                                                                             this.startButton,
                                                                             this.iterationsBox,
                                                                             this.label2,
                                                                             this.learningRateBox,
                                                                             this.label1});
     this.groupBox2.Location = new System.Drawing.Point(240, 10);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size(240, 410);
     this.groupBox2.TabIndex = 1;
     this.groupBox2.TabStop = false;
     this.groupBox2.Text = "Training";
     //
     // weightsList
     //
     this.weightsList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
                                                                                   this.columnHeader1,
                                                                                   this.columnHeader2,
                                                                                   this.columnHeader3});
     this.weightsList.FullRowSelect = true;
     this.weightsList.GridLines = true;
     this.weightsList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.weightsList.Location = new System.Drawing.Point(10, 130);
     this.weightsList.Name = "weightsList";
     this.weightsList.Size = new System.Drawing.Size(220, 270);
     this.weightsList.TabIndex = 14;
     this.weightsList.View = System.Windows.Forms.View.Details;
     //
     // columnHeader1
     //
     this.columnHeader1.Text = "Neuron";
     //
     // columnHeader2
     //
     this.columnHeader2.Text = "Weigh";
     //
     // columnHeader3
     //
     this.columnHeader3.Text = "Value";
     this.columnHeader3.Width = 65;
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(10, 110);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(55, 16);
     this.label4.TabIndex = 13;
     this.label4.Text = "Weights:";
     //
     // label3
     //
     this.label3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label3.Location = new System.Drawing.Point(10, 100);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(220, 2);
     this.label3.TabIndex = 12;
     //
     // saveFilesCheck
     //
     this.saveFilesCheck.Location = new System.Drawing.Point(10, 80);
     this.saveFilesCheck.Name = "saveFilesCheck";
     this.saveFilesCheck.Size = new System.Drawing.Size(150, 16);
     this.saveFilesCheck.TabIndex = 11;
     this.saveFilesCheck.Text = "Save weights and errors to files";
     //
     // stopButton
     //
     this.stopButton.Enabled = false;
     this.stopButton.Location = new System.Drawing.Point(155, 49);
     this.stopButton.Name = "stopButton";
     this.stopButton.TabIndex = 10;
     this.stopButton.Text = "S&top";
     this.stopButton.Click += new System.EventHandler(this.stopButton_Click);
     //
     // startButton
     //
     this.startButton.Enabled = false;
     this.startButton.Location = new System.Drawing.Point(155, 19);
     this.startButton.Name = "startButton";
     this.startButton.TabIndex = 9;
     this.startButton.Text = "&Start";
     this.startButton.Click += new System.EventHandler(this.startButton_Click);
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(90, 50);
     this.iterationsBox.Name = "iterationsBox";
     this.iterationsBox.ReadOnly = true;
     this.iterationsBox.Size = new System.Drawing.Size(50, 20);
     this.iterationsBox.TabIndex = 3;
     this.iterationsBox.Text = "";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(10, 52);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(55, 13);
     this.label2.TabIndex = 2;
     this.label2.Text = "Iterations:";
     //
     // learningRateBox
     //
     this.learningRateBox.Location = new System.Drawing.Point(90, 20);
     this.learningRateBox.Name = "learningRateBox";
     this.learningRateBox.Size = new System.Drawing.Size(50, 20);
     this.learningRateBox.TabIndex = 1;
     this.learningRateBox.Text = "";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(10, 22);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(80, 17);
     this.label1.TabIndex = 0;
     this.label1.Text = "Learning rate:";
     //
     // groupBox3
     //
     this.groupBox3.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                             this.errorChart});
     this.groupBox3.Location = new System.Drawing.Point(10, 270);
     this.groupBox3.Name = "groupBox3";
     this.groupBox3.Size = new System.Drawing.Size(220, 150);
     this.groupBox3.TabIndex = 2;
     this.groupBox3.TabStop = false;
     this.groupBox3.Text = "Error\'s dynamics";
     //
     // errorChart
     //
     this.errorChart.Location = new System.Drawing.Point(10, 20);
     this.errorChart.Name = "errorChart";
     this.errorChart.Size = new System.Drawing.Size(200, 120);
     this.errorChart.TabIndex = 0;
     this.errorChart.Text = "chart1";
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(489, 430);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                   this.groupBox3,
                                                                   this.groupBox2,
                                                                   this.groupBox1});
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox = false;
     this.Name = "MainForm";
     this.Text = "One-Layer Perceptron Classifier";
     this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.Load += new System.EventHandler(this.MainForm_Load);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox3.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
     this.groupBox1              = new System.Windows.Forms.GroupBox();
     this.dataList               = new System.Windows.Forms.ListView();
     this.yColumnHeader          = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.estimatedYColumnHeader = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.loadDataButton         = new System.Windows.Forms.Button();
     this.groupBox2              = new System.Windows.Forms.GroupBox();
     this.chart                     = new AForge.Controls.Chart();
     this.openFileDialog            = new System.Windows.Forms.OpenFileDialog();
     this.stopButton                = new System.Windows.Forms.Button();
     this.startButton               = new System.Windows.Forms.Button();
     this.groupBox4                 = new System.Windows.Forms.GroupBox();
     this.currentPredictionErrorBox = new System.Windows.Forms.TextBox();
     this.label13                   = new System.Windows.Forms.Label();
     this.currentLearningErrorBox   = new System.Windows.Forms.TextBox();
     this.label12                   = new System.Windows.Forms.Label();
     this.currentIterationBox       = new System.Windows.Forms.TextBox();
     this.label11                   = new System.Windows.Forms.Label();
     this.label5                    = new System.Windows.Forms.Label();
     this.label9                    = new System.Windows.Forms.Label();
     this.label10                   = new System.Windows.Forms.Label();
     this.label3                    = new System.Windows.Forms.Label();
     this.windowSizeBox             = new System.Windows.Forms.TextBox();
     this.label7                    = new System.Windows.Forms.Label();
     this.predictionSizeBox         = new System.Windows.Forms.TextBox();
     this.iterationsBox             = new System.Windows.Forms.TextBox();
     this.label8                    = new System.Windows.Forms.Label();
     this.label1                    = new System.Windows.Forms.Label();
     this.learningRateBox           = new System.Windows.Forms.TextBox();
     this.label2                    = new System.Windows.Forms.Label();
     this.alphaBox                  = new System.Windows.Forms.TextBox();
     this.groupBox3                 = new System.Windows.Forms.GroupBox();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox4.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.dataList);
     this.groupBox1.Controls.Add(this.loadDataButton);
     this.groupBox1.Location = new System.Drawing.Point(10, 10);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(180, 380);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Data";
     //
     // dataList
     //
     this.dataList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.yColumnHeader,
         this.estimatedYColumnHeader
     });
     this.dataList.FullRowSelect = true;
     this.dataList.GridLines     = true;
     this.dataList.Location      = new System.Drawing.Point(10, 20);
     this.dataList.Name          = "dataList";
     this.dataList.Size          = new System.Drawing.Size(160, 315);
     this.dataList.TabIndex      = 3;
     this.dataList.UseCompatibleStateImageBehavior = false;
     this.dataList.View = System.Windows.Forms.View.Details;
     //
     // yColumnHeader
     //
     this.yColumnHeader.Text  = "Y:Real";
     this.yColumnHeader.Width = 70;
     //
     // estimatedYColumnHeader
     //
     this.estimatedYColumnHeader.Text  = "Y:Estimated";
     this.estimatedYColumnHeader.Width = 70;
     //
     // loadDataButton
     //
     this.loadDataButton.Location = new System.Drawing.Point(10, 345);
     this.loadDataButton.Name     = "loadDataButton";
     this.loadDataButton.Size     = new System.Drawing.Size(75, 23);
     this.loadDataButton.TabIndex = 2;
     this.loadDataButton.Text     = "&Load";
     this.loadDataButton.Click   += new System.EventHandler(this.loadDataButton_Click);
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.chart);
     this.groupBox2.Location = new System.Drawing.Point(200, 10);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(300, 380);
     this.groupBox2.TabIndex = 2;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Function";
     //
     // chart
     //
     this.chart.Location = new System.Drawing.Point(10, 20);
     this.chart.Name     = "chart";
     this.chart.RangeX   = ((AForge.Range)(resources.GetObject("chart.RangeX")));
     this.chart.RangeY   = ((AForge.Range)(resources.GetObject("chart.RangeY")));
     this.chart.Size     = new System.Drawing.Size(280, 350);
     this.chart.TabIndex = 0;
     //
     // openFileDialog
     //
     this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
     this.openFileDialog.Title  = "Select data file";
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(630, 360);
     this.stopButton.Name     = "stopButton";
     this.stopButton.Size     = new System.Drawing.Size(75, 23);
     this.stopButton.TabIndex = 6;
     this.stopButton.Text     = "S&top";
     this.stopButton.Click   += new System.EventHandler(this.stopButton_Click);
     //
     // startButton
     //
     this.startButton.Enabled  = false;
     this.startButton.Location = new System.Drawing.Point(540, 360);
     this.startButton.Name     = "startButton";
     this.startButton.Size     = new System.Drawing.Size(75, 23);
     this.startButton.TabIndex = 5;
     this.startButton.Text     = "&Start";
     this.startButton.Click   += new System.EventHandler(this.startButton_Click);
     //
     // groupBox4
     //
     this.groupBox4.Controls.Add(this.currentPredictionErrorBox);
     this.groupBox4.Controls.Add(this.label13);
     this.groupBox4.Controls.Add(this.currentLearningErrorBox);
     this.groupBox4.Controls.Add(this.label12);
     this.groupBox4.Controls.Add(this.currentIterationBox);
     this.groupBox4.Controls.Add(this.label11);
     this.groupBox4.Location = new System.Drawing.Point(510, 225);
     this.groupBox4.Name     = "groupBox4";
     this.groupBox4.Size     = new System.Drawing.Size(195, 100);
     this.groupBox4.TabIndex = 7;
     this.groupBox4.TabStop  = false;
     this.groupBox4.Text     = "Current iteration:";
     //
     // currentPredictionErrorBox
     //
     this.currentPredictionErrorBox.Location = new System.Drawing.Point(125, 70);
     this.currentPredictionErrorBox.Name     = "currentPredictionErrorBox";
     this.currentPredictionErrorBox.ReadOnly = true;
     this.currentPredictionErrorBox.Size     = new System.Drawing.Size(60, 20);
     this.currentPredictionErrorBox.TabIndex = 5;
     //
     // label13
     //
     this.label13.Location = new System.Drawing.Point(10, 72);
     this.label13.Name     = "label13";
     this.label13.Size     = new System.Drawing.Size(100, 16);
     this.label13.TabIndex = 4;
     this.label13.Text     = "Prediction error:";
     //
     // currentLearningErrorBox
     //
     this.currentLearningErrorBox.Location = new System.Drawing.Point(125, 45);
     this.currentLearningErrorBox.Name     = "currentLearningErrorBox";
     this.currentLearningErrorBox.ReadOnly = true;
     this.currentLearningErrorBox.Size     = new System.Drawing.Size(60, 20);
     this.currentLearningErrorBox.TabIndex = 3;
     //
     // label12
     //
     this.label12.Location = new System.Drawing.Point(10, 47);
     this.label12.Name     = "label12";
     this.label12.Size     = new System.Drawing.Size(80, 16);
     this.label12.TabIndex = 2;
     this.label12.Text     = "Learning error:";
     //
     // currentIterationBox
     //
     this.currentIterationBox.Location = new System.Drawing.Point(125, 20);
     this.currentIterationBox.Name     = "currentIterationBox";
     this.currentIterationBox.ReadOnly = true;
     this.currentIterationBox.Size     = new System.Drawing.Size(60, 20);
     this.currentIterationBox.TabIndex = 1;
     //
     // label11
     //
     this.label11.Location = new System.Drawing.Point(10, 22);
     this.label11.Name     = "label11";
     this.label11.Size     = new System.Drawing.Size(70, 16);
     this.label11.TabIndex = 0;
     this.label11.Text     = "Iteration:";
     //
     // label5
     //
     this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.label5.Location    = new System.Drawing.Point(11, 104);
     this.label5.Name        = "label5";
     this.label5.Size        = new System.Drawing.Size(175, 2);
     this.label5.TabIndex    = 17;
     //
     // label9
     //
     this.label9.Location = new System.Drawing.Point(11, 174);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(70, 16);
     this.label9.TabIndex = 23;
     this.label9.Text     = "Iterations:";
     //
     // label10
     //
     this.label10.Font     = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label10.Location = new System.Drawing.Point(127, 192);
     this.label10.Name     = "label10";
     this.label10.Size     = new System.Drawing.Size(58, 14);
     this.label10.TabIndex = 25;
     this.label10.Text     = "( 0 - inifinity )";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(11, 114);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(80, 16);
     this.label3.TabIndex = 18;
     this.label3.Text     = "Window size:";
     //
     // windowSizeBox
     //
     this.windowSizeBox.Location     = new System.Drawing.Point(126, 112);
     this.windowSizeBox.Name         = "windowSizeBox";
     this.windowSizeBox.Size         = new System.Drawing.Size(60, 20);
     this.windowSizeBox.TabIndex     = 19;
     this.windowSizeBox.TextChanged += new System.EventHandler(this.windowSizeBox_TextChanged);
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(11, 139);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(90, 16);
     this.label7.TabIndex = 20;
     this.label7.Text     = "Prediction size:";
     //
     // predictionSizeBox
     //
     this.predictionSizeBox.Location     = new System.Drawing.Point(126, 137);
     this.predictionSizeBox.Name         = "predictionSizeBox";
     this.predictionSizeBox.Size         = new System.Drawing.Size(60, 20);
     this.predictionSizeBox.TabIndex     = 21;
     this.predictionSizeBox.TextChanged += new System.EventHandler(this.predictionSizeBox_TextChanged);
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(126, 172);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.Size     = new System.Drawing.Size(60, 20);
     this.iterationsBox.TabIndex = 24;
     //
     // label8
     //
     this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.label8.Location    = new System.Drawing.Point(11, 164);
     this.label8.Name        = "label8";
     this.label8.Size        = new System.Drawing.Size(175, 2);
     this.label8.TabIndex    = 22;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(10, 22);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(78, 14);
     this.label1.TabIndex = 6;
     this.label1.Text     = "Learning rate:";
     //
     // learningRateBox
     //
     this.learningRateBox.Location = new System.Drawing.Point(125, 20);
     this.learningRateBox.Name     = "learningRateBox";
     this.learningRateBox.Size     = new System.Drawing.Size(60, 20);
     this.learningRateBox.TabIndex = 7;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(10, 48);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(120, 15);
     this.label2.TabIndex = 10;
     this.label2.Text     = "Sigmoid\'s alpha value:";
     //
     // alphaBox
     //
     this.alphaBox.Location = new System.Drawing.Point(125, 46);
     this.alphaBox.Name     = "alphaBox";
     this.alphaBox.Size     = new System.Drawing.Size(60, 20);
     this.alphaBox.TabIndex = 11;
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.alphaBox);
     this.groupBox3.Controls.Add(this.label2);
     this.groupBox3.Controls.Add(this.learningRateBox);
     this.groupBox3.Controls.Add(this.label1);
     this.groupBox3.Controls.Add(this.label8);
     this.groupBox3.Controls.Add(this.iterationsBox);
     this.groupBox3.Controls.Add(this.predictionSizeBox);
     this.groupBox3.Controls.Add(this.label7);
     this.groupBox3.Controls.Add(this.windowSizeBox);
     this.groupBox3.Controls.Add(this.label3);
     this.groupBox3.Controls.Add(this.label10);
     this.groupBox3.Controls.Add(this.label9);
     this.groupBox3.Controls.Add(this.label5);
     this.groupBox3.Location = new System.Drawing.Point(510, 10);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(195, 209);
     this.groupBox3.TabIndex = 3;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Settings";
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(715, 398);
     this.Controls.Add(this.groupBox4);
     this.Controls.Add(this.stopButton);
     this.Controls.Add(this.startButton);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.Name            = "MainForm";
     this.Text            = "Time Series Prediction using Multi-Layer Neural Network (Resilient Backpropagatio" +
                            "n)";
     this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox4.ResumeLayout(false);
     this.groupBox4.PerformLayout();
     this.groupBox3.ResumeLayout(false);
     this.groupBox3.PerformLayout();
     this.ResumeLayout(false);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.groupBox1           = new System.Windows.Forms.GroupBox();
     this.dataList            = new System.Windows.Forms.ListView();
     this.xColumnHeader       = new System.Windows.Forms.ColumnHeader();
     this.yColumnHeader       = new System.Windows.Forms.ColumnHeader();
     this.loadDataButton      = new System.Windows.Forms.Button();
     this.openFileDialog      = new System.Windows.Forms.OpenFileDialog();
     this.groupBox2           = new System.Windows.Forms.GroupBox();
     this.chart               = new AForge.Controls.Chart();
     this.groupBox3           = new System.Windows.Forms.GroupBox();
     this.geneticMethodBox    = new System.Windows.Forms.ComboBox();
     this.label8              = new System.Windows.Forms.Label();
     this.functionsSetBox     = new System.Windows.Forms.ComboBox();
     this.label7              = new System.Windows.Forms.Label();
     this.label4              = new System.Windows.Forms.Label();
     this.iterationsBox       = new System.Windows.Forms.TextBox();
     this.label3              = new System.Windows.Forms.Label();
     this.selectionBox        = new System.Windows.Forms.ComboBox();
     this.label2              = new System.Windows.Forms.Label();
     this.populationSizeBox   = new System.Windows.Forms.TextBox();
     this.label1              = new System.Windows.Forms.Label();
     this.startButton         = new System.Windows.Forms.Button();
     this.stopButton          = new System.Windows.Forms.Button();
     this.groupBox4           = new System.Windows.Forms.GroupBox();
     this.currentErrorBox     = new System.Windows.Forms.TextBox();
     this.label6              = new System.Windows.Forms.Label();
     this.currentIterationBox = new System.Windows.Forms.TextBox();
     this.label5              = new System.Windows.Forms.Label();
     this.groupBox5           = new System.Windows.Forms.GroupBox();
     this.solutionBox         = new System.Windows.Forms.TextBox();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.groupBox4.SuspendLayout();
     this.groupBox5.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.dataList);
     this.groupBox1.Controls.Add(this.loadDataButton);
     this.groupBox1.Location = new System.Drawing.Point(10, 10);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(180, 310);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Data";
     //
     // dataList
     //
     this.dataList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.xColumnHeader,
         this.yColumnHeader
     });
     this.dataList.FullRowSelect = true;
     this.dataList.GridLines     = true;
     this.dataList.Location      = new System.Drawing.Point(10, 20);
     this.dataList.Name          = "dataList";
     this.dataList.Size          = new System.Drawing.Size(160, 255);
     this.dataList.TabIndex      = 0;
     this.dataList.View          = System.Windows.Forms.View.Details;
     //
     // xColumnHeader
     //
     this.xColumnHeader.Text = "X";
     //
     // yColumnHeader
     //
     this.yColumnHeader.Text = "Y";
     //
     // loadDataButton
     //
     this.loadDataButton.Location = new System.Drawing.Point(10, 280);
     this.loadDataButton.Name     = "loadDataButton";
     this.loadDataButton.TabIndex = 1;
     this.loadDataButton.Text     = "&Load";
     this.loadDataButton.Click   += new System.EventHandler(this.loadDataButton_Click);
     //
     // openFileDialog
     //
     this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
     this.openFileDialog.Title  = "Select data file";
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.chart);
     this.groupBox2.Location = new System.Drawing.Point(200, 10);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(300, 310);
     this.groupBox2.TabIndex = 1;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Function";
     //
     // chart
     //
     this.chart.Location = new System.Drawing.Point(10, 20);
     this.chart.Name     = "chart";
     this.chart.Size     = new System.Drawing.Size(280, 280);
     this.chart.TabIndex = 0;
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.geneticMethodBox);
     this.groupBox3.Controls.Add(this.label8);
     this.groupBox3.Controls.Add(this.functionsSetBox);
     this.groupBox3.Controls.Add(this.label7);
     this.groupBox3.Controls.Add(this.label4);
     this.groupBox3.Controls.Add(this.iterationsBox);
     this.groupBox3.Controls.Add(this.label3);
     this.groupBox3.Controls.Add(this.selectionBox);
     this.groupBox3.Controls.Add(this.label2);
     this.groupBox3.Controls.Add(this.populationSizeBox);
     this.groupBox3.Controls.Add(this.label1);
     this.groupBox3.Location = new System.Drawing.Point(510, 10);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(185, 198);
     this.groupBox3.TabIndex = 2;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Settings";
     //
     // geneticMethodBox
     //
     this.geneticMethodBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.geneticMethodBox.Items.AddRange(new object[] {
         "GP",
         "GEP"
     });
     this.geneticMethodBox.Location = new System.Drawing.Point(110, 95);
     this.geneticMethodBox.Name     = "geneticMethodBox";
     this.geneticMethodBox.Size     = new System.Drawing.Size(65, 21);
     this.geneticMethodBox.TabIndex = 7;
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(10, 97);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(88, 16);
     this.label8.TabIndex = 6;
     this.label8.Text     = "Genetic method:";
     //
     // functionsSetBox
     //
     this.functionsSetBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.functionsSetBox.Items.AddRange(new object[] {
         "Simple",
         "Extended"
     });
     this.functionsSetBox.Location = new System.Drawing.Point(110, 70);
     this.functionsSetBox.Name     = "functionsSetBox";
     this.functionsSetBox.Size     = new System.Drawing.Size(65, 21);
     this.functionsSetBox.TabIndex = 5;
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(10, 72);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(80, 16);
     this.label7.TabIndex = 4;
     this.label7.Text     = "Functions set:";
     //
     // label4
     //
     this.label4.Font     = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 204);
     this.label4.Location = new System.Drawing.Point(125, 175);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(56, 15);
     this.label4.TabIndex = 10;
     this.label4.Text     = "( 0 - inifinity )";
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(125, 155);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.Size     = new System.Drawing.Size(50, 20);
     this.iterationsBox.TabIndex = 9;
     this.iterationsBox.Text     = "";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(10, 157);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(60, 16);
     this.label3.TabIndex = 8;
     this.label3.Text     = "Iterations:";
     //
     // selectionBox
     //
     this.selectionBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.selectionBox.Items.AddRange(new object[] {
         "Elite",
         "Rank",
         "Roulette"
     });
     this.selectionBox.Location = new System.Drawing.Point(110, 45);
     this.selectionBox.Name     = "selectionBox";
     this.selectionBox.Size     = new System.Drawing.Size(65, 21);
     this.selectionBox.TabIndex = 3;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(10, 47);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(100, 16);
     this.label2.TabIndex = 2;
     this.label2.Text     = "Selection method:";
     //
     // populationSizeBox
     //
     this.populationSizeBox.Location = new System.Drawing.Point(125, 20);
     this.populationSizeBox.Name     = "populationSizeBox";
     this.populationSizeBox.Size     = new System.Drawing.Size(50, 20);
     this.populationSizeBox.TabIndex = 1;
     this.populationSizeBox.Text     = "";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(10, 22);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(85, 16);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Population size:";
     //
     // startButton
     //
     this.startButton.Enabled  = false;
     this.startButton.Location = new System.Drawing.Point(530, 297);
     this.startButton.Name     = "startButton";
     this.startButton.TabIndex = 3;
     this.startButton.Text     = "&Start";
     this.startButton.Click   += new System.EventHandler(this.startButton_Click);
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(620, 297);
     this.stopButton.Name     = "stopButton";
     this.stopButton.TabIndex = 4;
     this.stopButton.Text     = "S&top";
     this.stopButton.Click   += new System.EventHandler(this.stopButton_Click);
     //
     // groupBox4
     //
     this.groupBox4.Controls.Add(this.currentErrorBox);
     this.groupBox4.Controls.Add(this.label6);
     this.groupBox4.Controls.Add(this.currentIterationBox);
     this.groupBox4.Controls.Add(this.label5);
     this.groupBox4.Location = new System.Drawing.Point(510, 216);
     this.groupBox4.Name     = "groupBox4";
     this.groupBox4.Size     = new System.Drawing.Size(185, 75);
     this.groupBox4.TabIndex = 5;
     this.groupBox4.TabStop  = false;
     this.groupBox4.Text     = "Current iteration";
     //
     // currentErrorBox
     //
     this.currentErrorBox.Location = new System.Drawing.Point(125, 45);
     this.currentErrorBox.Name     = "currentErrorBox";
     this.currentErrorBox.ReadOnly = true;
     this.currentErrorBox.Size     = new System.Drawing.Size(50, 20);
     this.currentErrorBox.TabIndex = 3;
     this.currentErrorBox.Text     = "";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(10, 47);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(70, 16);
     this.label6.TabIndex = 2;
     this.label6.Text     = "Error:";
     //
     // currentIterationBox
     //
     this.currentIterationBox.Location = new System.Drawing.Point(125, 20);
     this.currentIterationBox.Name     = "currentIterationBox";
     this.currentIterationBox.ReadOnly = true;
     this.currentIterationBox.Size     = new System.Drawing.Size(50, 20);
     this.currentIterationBox.TabIndex = 1;
     this.currentIterationBox.Text     = "";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(10, 22);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(70, 16);
     this.label5.TabIndex = 0;
     this.label5.Text     = "Iteration:";
     //
     // groupBox5
     //
     this.groupBox5.Controls.Add(this.solutionBox);
     this.groupBox5.Location = new System.Drawing.Point(10, 330);
     this.groupBox5.Name     = "groupBox5";
     this.groupBox5.Size     = new System.Drawing.Size(685, 50);
     this.groupBox5.TabIndex = 6;
     this.groupBox5.TabStop  = false;
     this.groupBox5.Text     = "Solution:";
     //
     // solutionBox
     //
     this.solutionBox.Location = new System.Drawing.Point(10, 20);
     this.solutionBox.Name     = "solutionBox";
     this.solutionBox.ReadOnly = true;
     this.solutionBox.Size     = new System.Drawing.Size(665, 20);
     this.solutionBox.TabIndex = 0;
     this.solutionBox.Text     = "";
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(704, 390);
     this.Controls.Add(this.groupBox5);
     this.Controls.Add(this.groupBox4);
     this.Controls.Add(this.stopButton);
     this.Controls.Add(this.startButton);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.Name            = "MainForm";
     this.Text            = "Approximation (Symbolic Regression) using Genetic Programming and Gene Expression" +
                            " Programming";
     this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox3.ResumeLayout(false);
     this.groupBox4.ResumeLayout(false);
     this.groupBox5.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 7
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.generateMapButton = new System.Windows.Forms.Button();
			this.citiesCountBox = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.mapControl = new AForge.Controls.Chart();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.greedyCrossoverBox = new System.Windows.Forms.CheckBox();
			this.label5 = new System.Windows.Forms.Label();
			this.iterationsBox = new System.Windows.Forms.TextBox();
			this.label4 = new System.Windows.Forms.Label();
			this.selectionBox = new System.Windows.Forms.ComboBox();
			this.label3 = new System.Windows.Forms.Label();
			this.populationSizeBox = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.groupBox3 = new System.Windows.Forms.GroupBox();
			this.pathLengthBox = new System.Windows.Forms.TextBox();
			this.label7 = new System.Windows.Forms.Label();
			this.currentIterationBox = new System.Windows.Forms.TextBox();
			this.label6 = new System.Windows.Forms.Label();
			this.startButton = new System.Windows.Forms.Button();
			this.stopButton = new System.Windows.Forms.Button();
			this.groupBox1.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.groupBox3.SuspendLayout();
			this.SuspendLayout();
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.generateMapButton);
			this.groupBox1.Controls.Add(this.citiesCountBox);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Controls.Add(this.mapControl);
			this.groupBox1.Location = new System.Drawing.Point(10, 10);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(300, 340);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "Map";
			// 
			// generateMapButton
			// 
			this.generateMapButton.Location = new System.Drawing.Point(110, 309);
			this.generateMapButton.Name = "generateMapButton";
			this.generateMapButton.Size = new System.Drawing.Size(75, 22);
			this.generateMapButton.TabIndex = 3;
			this.generateMapButton.Text = "&Generate";
			this.generateMapButton.Click += new System.EventHandler(this.generateMapButton_Click);
			// 
			// citiesCountBox
			// 
			this.citiesCountBox.Location = new System.Drawing.Point(50, 310);
			this.citiesCountBox.Name = "citiesCountBox";
			this.citiesCountBox.Size = new System.Drawing.Size(50, 20);
			this.citiesCountBox.TabIndex = 2;
			this.citiesCountBox.Text = "";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(10, 312);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(40, 16);
			this.label1.TabIndex = 1;
			this.label1.Text = "Cities:";
			// 
			// mapControl
			// 
			this.mapControl.Location = new System.Drawing.Point(10, 20);
			this.mapControl.Name = "mapControl";
			this.mapControl.Size = new System.Drawing.Size(280, 280);
			this.mapControl.TabIndex = 0;
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.Add(this.greedyCrossoverBox);
			this.groupBox2.Controls.Add(this.label5);
			this.groupBox2.Controls.Add(this.iterationsBox);
			this.groupBox2.Controls.Add(this.label4);
			this.groupBox2.Controls.Add(this.selectionBox);
			this.groupBox2.Controls.Add(this.label3);
			this.groupBox2.Controls.Add(this.populationSizeBox);
			this.groupBox2.Controls.Add(this.label2);
			this.groupBox2.Location = new System.Drawing.Point(320, 10);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(185, 225);
			this.groupBox2.TabIndex = 1;
			this.groupBox2.TabStop = false;
			this.groupBox2.Text = "Settings";
			// 
			// greedyCrossoverBox
			// 
			this.greedyCrossoverBox.Location = new System.Drawing.Point(10, 70);
			this.greedyCrossoverBox.Name = "greedyCrossoverBox";
			this.greedyCrossoverBox.Size = new System.Drawing.Size(120, 24);
			this.greedyCrossoverBox.TabIndex = 7;
			this.greedyCrossoverBox.Text = "Greedy crossover";
			// 
			// label5
			// 
			this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.label5.Location = new System.Drawing.Point(125, 200);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(58, 15);
			this.label5.TabIndex = 6;
			this.label5.Text = "( 0 - inifinity )";
			// 
			// iterationsBox
			// 
			this.iterationsBox.Location = new System.Drawing.Point(125, 180);
			this.iterationsBox.Name = "iterationsBox";
			this.iterationsBox.Size = new System.Drawing.Size(50, 20);
			this.iterationsBox.TabIndex = 5;
			this.iterationsBox.Text = "";
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(10, 182);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(60, 16);
			this.label4.TabIndex = 4;
			this.label4.Text = "Iterations:";
			// 
			// selectionBox
			// 
			this.selectionBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.selectionBox.Items.AddRange(new object[] {
															  "Elite",
															  "Rank",
															  "Roulette"});
			this.selectionBox.Location = new System.Drawing.Point(110, 45);
			this.selectionBox.Name = "selectionBox";
			this.selectionBox.Size = new System.Drawing.Size(65, 21);
			this.selectionBox.TabIndex = 3;
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(10, 47);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(100, 16);
			this.label3.TabIndex = 2;
			this.label3.Text = "Selection method:";
			// 
			// populationSizeBox
			// 
			this.populationSizeBox.Location = new System.Drawing.Point(125, 20);
			this.populationSizeBox.Name = "populationSizeBox";
			this.populationSizeBox.Size = new System.Drawing.Size(50, 20);
			this.populationSizeBox.TabIndex = 1;
			this.populationSizeBox.Text = "";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(10, 22);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(90, 16);
			this.label2.TabIndex = 0;
			this.label2.Text = "Population size:";
			// 
			// groupBox3
			// 
			this.groupBox3.Controls.Add(this.pathLengthBox);
			this.groupBox3.Controls.Add(this.label7);
			this.groupBox3.Controls.Add(this.currentIterationBox);
			this.groupBox3.Controls.Add(this.label6);
			this.groupBox3.Location = new System.Drawing.Point(320, 240);
			this.groupBox3.Name = "groupBox3";
			this.groupBox3.Size = new System.Drawing.Size(185, 75);
			this.groupBox3.TabIndex = 2;
			this.groupBox3.TabStop = false;
			this.groupBox3.Text = "Current iteration";
			// 
			// pathLengthBox
			// 
			this.pathLengthBox.Location = new System.Drawing.Point(125, 45);
			this.pathLengthBox.Name = "pathLengthBox";
			this.pathLengthBox.ReadOnly = true;
			this.pathLengthBox.Size = new System.Drawing.Size(50, 20);
			this.pathLengthBox.TabIndex = 3;
			this.pathLengthBox.Text = "";
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(10, 47);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(80, 16);
			this.label7.TabIndex = 2;
			this.label7.Text = "Path length:";
			// 
			// currentIterationBox
			// 
			this.currentIterationBox.Location = new System.Drawing.Point(125, 20);
			this.currentIterationBox.Name = "currentIterationBox";
			this.currentIterationBox.ReadOnly = true;
			this.currentIterationBox.Size = new System.Drawing.Size(50, 20);
			this.currentIterationBox.TabIndex = 1;
			this.currentIterationBox.Text = "";
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(10, 22);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(50, 16);
			this.label6.TabIndex = 0;
			this.label6.Text = "Iteration:";
			// 
			// startButton
			// 
			this.startButton.Location = new System.Drawing.Point(340, 325);
			this.startButton.Name = "startButton";
			this.startButton.TabIndex = 3;
			this.startButton.Text = "&Start";
			this.startButton.Click += new System.EventHandler(this.startButton_Click);
			// 
			// stopButton
			// 
			this.stopButton.Enabled = false;
			this.stopButton.Location = new System.Drawing.Point(430, 325);
			this.stopButton.Name = "stopButton";
			this.stopButton.TabIndex = 4;
			this.stopButton.Text = "S&top";
			this.stopButton.Click += new System.EventHandler(this.stopButton_Click);
			// 
			// MainForm
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(514, 360);
			this.Controls.Add(this.stopButton);
			this.Controls.Add(this.startButton);
			this.Controls.Add(this.groupBox3);
			this.Controls.Add(this.groupBox2);
			this.Controls.Add(this.groupBox1);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.Name = "MainForm";
			this.Text = "Traveling Salesman Problem using Genetic Algorithms";
			this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
			this.groupBox1.ResumeLayout(false);
			this.groupBox2.ResumeLayout(false);
			this.groupBox3.ResumeLayout(false);
			this.ResumeLayout(false);

		}
Exemplo n.º 8
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TimeSeries));
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.dataList = new System.Windows.Forms.ListView();
            this.yColumnHeader = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.estimatedYColumnHeader = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.loadDataButton = new System.Windows.Forms.Button();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.chart = new AForge.Controls.Chart();
            this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
            this.stopButton = new System.Windows.Forms.Button();
            this.startButton = new System.Windows.Forms.Button();
            this.groupBox4 = new System.Windows.Forms.GroupBox();
            this.currentPredictionErrorBox = new System.Windows.Forms.TextBox();
            this.label13 = new System.Windows.Forms.Label();
            this.currentLearningErrorBox = new System.Windows.Forms.TextBox();
            this.label12 = new System.Windows.Forms.Label();
            this.currentIterationBox = new System.Windows.Forms.TextBox();
            this.label11 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.label9 = new System.Windows.Forms.Label();
            this.label10 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.windowSizeBox = new System.Windows.Forms.TextBox();
            this.label7 = new System.Windows.Forms.Label();
            this.predictionSizeBox = new System.Windows.Forms.TextBox();
            this.iterationsBox = new System.Windows.Forms.TextBox();
            this.label8 = new System.Windows.Forms.Label();
            this.label1 = new System.Windows.Forms.Label();
            this.learningRateBox = new System.Windows.Forms.TextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.alphaBox = new System.Windows.Forms.TextBox();
            this.groupBox3 = new System.Windows.Forms.GroupBox();
            this.cbRegularization = new System.Windows.Forms.CheckBox();
            this.groupBox1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.groupBox4.SuspendLayout();
            this.groupBox3.SuspendLayout();
            this.SuspendLayout();
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.dataList);
            this.groupBox1.Controls.Add(this.loadDataButton);
            this.groupBox1.Location = new System.Drawing.Point(16, 15);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(288, 555);
            this.groupBox1.TabIndex = 0;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Data";
            // 
            // dataList
            // 
            this.dataList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.yColumnHeader,
            this.estimatedYColumnHeader});
            this.dataList.FullRowSelect = true;
            this.dataList.GridLines = true;
            this.dataList.Location = new System.Drawing.Point(16, 29);
            this.dataList.Name = "dataList";
            this.dataList.Size = new System.Drawing.Size(256, 461);
            this.dataList.TabIndex = 3;
            this.dataList.UseCompatibleStateImageBehavior = false;
            this.dataList.View = System.Windows.Forms.View.Details;
            // 
            // yColumnHeader
            // 
            this.yColumnHeader.Text = "Y:Real";
            this.yColumnHeader.Width = 70;
            // 
            // estimatedYColumnHeader
            // 
            this.estimatedYColumnHeader.Text = "Y:Estimated";
            this.estimatedYColumnHeader.Width = 70;
            // 
            // loadDataButton
            // 
            this.loadDataButton.Location = new System.Drawing.Point(16, 504);
            this.loadDataButton.Name = "loadDataButton";
            this.loadDataButton.Size = new System.Drawing.Size(120, 34);
            this.loadDataButton.TabIndex = 2;
            this.loadDataButton.Text = "&Load";
            this.loadDataButton.Click += new System.EventHandler(this.loadDataButton_Click);
            // 
            // groupBox2
            // 
            this.groupBox2.Controls.Add(this.chart);
            this.groupBox2.Location = new System.Drawing.Point(320, 15);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(480, 555);
            this.groupBox2.TabIndex = 2;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Function";
            // 
            // chart
            // 
            this.chart.Location = new System.Drawing.Point(16, 29);
            this.chart.Name = "chart";
            this.chart.RangeX = ((AForge.Range)(resources.GetObject("chart.RangeX")));
            this.chart.RangeY = ((AForge.Range)(resources.GetObject("chart.RangeY")));
            this.chart.Size = new System.Drawing.Size(448, 512);
            this.chart.TabIndex = 0;
            // 
            // openFileDialog
            // 
            this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
            this.openFileDialog.Title = "Select data file";
            // 
            // stopButton
            // 
            this.stopButton.Enabled = false;
            this.stopButton.Location = new System.Drawing.Point(1008, 526);
            this.stopButton.Name = "stopButton";
            this.stopButton.Size = new System.Drawing.Size(120, 34);
            this.stopButton.TabIndex = 6;
            this.stopButton.Text = "S&top";
            this.stopButton.Click += new System.EventHandler(this.stopButton_Click);
            // 
            // startButton
            // 
            this.startButton.Enabled = false;
            this.startButton.Location = new System.Drawing.Point(864, 526);
            this.startButton.Name = "startButton";
            this.startButton.Size = new System.Drawing.Size(120, 34);
            this.startButton.TabIndex = 5;
            this.startButton.Text = "&Start";
            this.startButton.Click += new System.EventHandler(this.startButton_Click);
            // 
            // groupBox4
            // 
            this.groupBox4.Controls.Add(this.currentPredictionErrorBox);
            this.groupBox4.Controls.Add(this.label13);
            this.groupBox4.Controls.Add(this.currentLearningErrorBox);
            this.groupBox4.Controls.Add(this.label12);
            this.groupBox4.Controls.Add(this.currentIterationBox);
            this.groupBox4.Controls.Add(this.label11);
            this.groupBox4.Location = new System.Drawing.Point(816, 329);
            this.groupBox4.Name = "groupBox4";
            this.groupBox4.Size = new System.Drawing.Size(312, 146);
            this.groupBox4.TabIndex = 7;
            this.groupBox4.TabStop = false;
            this.groupBox4.Text = "Current iteration:";
            // 
            // currentPredictionErrorBox
            // 
            this.currentPredictionErrorBox.Location = new System.Drawing.Point(200, 102);
            this.currentPredictionErrorBox.Name = "currentPredictionErrorBox";
            this.currentPredictionErrorBox.ReadOnly = true;
            this.currentPredictionErrorBox.Size = new System.Drawing.Size(96, 26);
            this.currentPredictionErrorBox.TabIndex = 5;
            // 
            // label13
            // 
            this.label13.Location = new System.Drawing.Point(16, 105);
            this.label13.Name = "label13";
            this.label13.Size = new System.Drawing.Size(160, 24);
            this.label13.TabIndex = 4;
            this.label13.Text = "Prediction error:";
            // 
            // currentLearningErrorBox
            // 
            this.currentLearningErrorBox.Location = new System.Drawing.Point(200, 66);
            this.currentLearningErrorBox.Name = "currentLearningErrorBox";
            this.currentLearningErrorBox.ReadOnly = true;
            this.currentLearningErrorBox.Size = new System.Drawing.Size(96, 26);
            this.currentLearningErrorBox.TabIndex = 3;
            // 
            // label12
            // 
            this.label12.Location = new System.Drawing.Point(16, 69);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(128, 23);
            this.label12.TabIndex = 2;
            this.label12.Text = "Learning error:";
            // 
            // currentIterationBox
            // 
            this.currentIterationBox.Location = new System.Drawing.Point(200, 29);
            this.currentIterationBox.Name = "currentIterationBox";
            this.currentIterationBox.ReadOnly = true;
            this.currentIterationBox.Size = new System.Drawing.Size(96, 26);
            this.currentIterationBox.TabIndex = 1;
            // 
            // label11
            // 
            this.label11.Location = new System.Drawing.Point(16, 32);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(112, 24);
            this.label11.TabIndex = 0;
            this.label11.Text = "Iteration:";
            // 
            // label5
            // 
            this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.label5.Location = new System.Drawing.Point(18, 152);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(280, 3);
            this.label5.TabIndex = 17;
            // 
            // label9
            // 
            this.label9.Location = new System.Drawing.Point(18, 254);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(112, 24);
            this.label9.TabIndex = 23;
            this.label9.Text = "Iterations:";
            // 
            // label10
            // 
            this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label10.Location = new System.Drawing.Point(203, 281);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(93, 20);
            this.label10.TabIndex = 25;
            this.label10.Text = "( 0 - inifinity )";
            // 
            // label3
            // 
            this.label3.Location = new System.Drawing.Point(18, 167);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(128, 23);
            this.label3.TabIndex = 18;
            this.label3.Text = "Window size:";
            // 
            // windowSizeBox
            // 
            this.windowSizeBox.Location = new System.Drawing.Point(202, 164);
            this.windowSizeBox.Name = "windowSizeBox";
            this.windowSizeBox.Size = new System.Drawing.Size(96, 26);
            this.windowSizeBox.TabIndex = 19;
            this.windowSizeBox.TextChanged += new System.EventHandler(this.windowSizeBox_TextChanged);
            // 
            // label7
            // 
            this.label7.Location = new System.Drawing.Point(18, 203);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(144, 24);
            this.label7.TabIndex = 20;
            this.label7.Text = "Prediction size:";
            // 
            // predictionSizeBox
            // 
            this.predictionSizeBox.Location = new System.Drawing.Point(202, 200);
            this.predictionSizeBox.Name = "predictionSizeBox";
            this.predictionSizeBox.Size = new System.Drawing.Size(96, 26);
            this.predictionSizeBox.TabIndex = 21;
            this.predictionSizeBox.TextChanged += new System.EventHandler(this.predictionSizeBox_TextChanged);
            // 
            // iterationsBox
            // 
            this.iterationsBox.Location = new System.Drawing.Point(202, 251);
            this.iterationsBox.Name = "iterationsBox";
            this.iterationsBox.Size = new System.Drawing.Size(96, 26);
            this.iterationsBox.TabIndex = 24;
            // 
            // label8
            // 
            this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.label8.Location = new System.Drawing.Point(18, 240);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(280, 3);
            this.label8.TabIndex = 22;
            // 
            // label1
            // 
            this.label1.Location = new System.Drawing.Point(16, 32);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(125, 21);
            this.label1.TabIndex = 6;
            this.label1.Text = "Learning rate:";
            // 
            // learningRateBox
            // 
            this.learningRateBox.Location = new System.Drawing.Point(200, 29);
            this.learningRateBox.Name = "learningRateBox";
            this.learningRateBox.Size = new System.Drawing.Size(96, 26);
            this.learningRateBox.TabIndex = 7;
            // 
            // label2
            // 
            this.label2.Location = new System.Drawing.Point(16, 70);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(192, 22);
            this.label2.TabIndex = 10;
            this.label2.Text = "Sigmoid\'s alpha value:";
            // 
            // alphaBox
            // 
            this.alphaBox.Location = new System.Drawing.Point(200, 67);
            this.alphaBox.Name = "alphaBox";
            this.alphaBox.Size = new System.Drawing.Size(96, 26);
            this.alphaBox.TabIndex = 11;
            // 
            // groupBox3
            // 
            this.groupBox3.Controls.Add(this.cbRegularization);
            this.groupBox3.Controls.Add(this.alphaBox);
            this.groupBox3.Controls.Add(this.label2);
            this.groupBox3.Controls.Add(this.learningRateBox);
            this.groupBox3.Controls.Add(this.label1);
            this.groupBox3.Controls.Add(this.label8);
            this.groupBox3.Controls.Add(this.iterationsBox);
            this.groupBox3.Controls.Add(this.predictionSizeBox);
            this.groupBox3.Controls.Add(this.label7);
            this.groupBox3.Controls.Add(this.windowSizeBox);
            this.groupBox3.Controls.Add(this.label3);
            this.groupBox3.Controls.Add(this.label10);
            this.groupBox3.Controls.Add(this.label9);
            this.groupBox3.Controls.Add(this.label5);
            this.groupBox3.Location = new System.Drawing.Point(816, 15);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new System.Drawing.Size(312, 305);
            this.groupBox3.TabIndex = 3;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "Settings";
            // 
            // cbRegularization
            // 
            this.cbRegularization.AutoSize = true;
            this.cbRegularization.Location = new System.Drawing.Point(22, 105);
            this.cbRegularization.Name = "cbRegularization";
            this.cbRegularization.Size = new System.Drawing.Size(239, 24);
            this.cbRegularization.TabIndex = 26;
            this.cbRegularization.Text = "Use Bayesian Regularization";
            this.cbRegularization.UseVisualStyleBackColor = true;
            // 
            // TimeSeries
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
            this.ClientSize = new System.Drawing.Size(1145, 581);
            this.Controls.Add(this.groupBox4);
            this.Controls.Add(this.stopButton);
            this.Controls.Add(this.startButton);
            this.Controls.Add(this.groupBox3);
            this.Controls.Add(this.groupBox2);
            this.Controls.Add(this.groupBox1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.Name = "TimeSeries";
            this.Text = "Time Series Prediction using Multi-Layer Neural Network (Levenberg-Marquardt)";
            this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
            this.groupBox1.ResumeLayout(false);
            this.groupBox2.ResumeLayout(false);
            this.groupBox4.ResumeLayout(false);
            this.groupBox4.PerformLayout();
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            this.ResumeLayout(false);

        }
Exemplo n.º 9
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TimeSeries));
     this.groupBox1              = new System.Windows.Forms.GroupBox();
     this.dataList               = new System.Windows.Forms.ListView();
     this.yColumnHeader          = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.estimatedYColumnHeader = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.loadDataButton         = new System.Windows.Forms.Button();
     this.groupBox2              = new System.Windows.Forms.GroupBox();
     this.chart                     = new AForge.Controls.Chart();
     this.openFileDialog            = new System.Windows.Forms.OpenFileDialog();
     this.stopButton                = new System.Windows.Forms.Button();
     this.startButton               = new System.Windows.Forms.Button();
     this.groupBox4                 = new System.Windows.Forms.GroupBox();
     this.currentPredictionErrorBox = new System.Windows.Forms.TextBox();
     this.label13                   = new System.Windows.Forms.Label();
     this.currentLearningErrorBox   = new System.Windows.Forms.TextBox();
     this.label12                   = new System.Windows.Forms.Label();
     this.currentIterationBox       = new System.Windows.Forms.TextBox();
     this.label11                   = new System.Windows.Forms.Label();
     this.label5                    = new System.Windows.Forms.Label();
     this.label9                    = new System.Windows.Forms.Label();
     this.label10                   = new System.Windows.Forms.Label();
     this.label3                    = new System.Windows.Forms.Label();
     this.windowSizeBox             = new System.Windows.Forms.TextBox();
     this.label7                    = new System.Windows.Forms.Label();
     this.predictionSizeBox         = new System.Windows.Forms.TextBox();
     this.iterationsBox             = new System.Windows.Forms.TextBox();
     this.label8                    = new System.Windows.Forms.Label();
     this.label1                    = new System.Windows.Forms.Label();
     this.learningRateBox           = new System.Windows.Forms.TextBox();
     this.label2                    = new System.Windows.Forms.Label();
     this.alphaBox                  = new System.Windows.Forms.TextBox();
     this.groupBox3                 = new System.Windows.Forms.GroupBox();
     this.cbRegularization          = new System.Windows.Forms.CheckBox();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox4.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.dataList);
     this.groupBox1.Controls.Add(this.loadDataButton);
     this.groupBox1.Location = new System.Drawing.Point(16, 15);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(288, 555);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Data";
     //
     // dataList
     //
     this.dataList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.yColumnHeader,
         this.estimatedYColumnHeader
     });
     this.dataList.FullRowSelect = true;
     this.dataList.GridLines     = true;
     this.dataList.Location      = new System.Drawing.Point(16, 29);
     this.dataList.Name          = "dataList";
     this.dataList.Size          = new System.Drawing.Size(256, 461);
     this.dataList.TabIndex      = 3;
     this.dataList.UseCompatibleStateImageBehavior = false;
     this.dataList.View = System.Windows.Forms.View.Details;
     //
     // yColumnHeader
     //
     this.yColumnHeader.Text  = "Y:Real";
     this.yColumnHeader.Width = 70;
     //
     // estimatedYColumnHeader
     //
     this.estimatedYColumnHeader.Text  = "Y:Estimated";
     this.estimatedYColumnHeader.Width = 70;
     //
     // loadDataButton
     //
     this.loadDataButton.Location = new System.Drawing.Point(16, 504);
     this.loadDataButton.Name     = "loadDataButton";
     this.loadDataButton.Size     = new System.Drawing.Size(120, 34);
     this.loadDataButton.TabIndex = 2;
     this.loadDataButton.Text     = "&Load";
     this.loadDataButton.Click   += new System.EventHandler(this.loadDataButton_Click);
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.chart);
     this.groupBox2.Location = new System.Drawing.Point(320, 15);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(480, 555);
     this.groupBox2.TabIndex = 2;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Function";
     //
     // chart
     //
     this.chart.Location = new System.Drawing.Point(16, 29);
     this.chart.Name     = "chart";
     this.chart.RangeX   = ((AForge.Range)(resources.GetObject("chart.RangeX")));
     this.chart.RangeY   = ((AForge.Range)(resources.GetObject("chart.RangeY")));
     this.chart.Size     = new System.Drawing.Size(448, 512);
     this.chart.TabIndex = 0;
     //
     // openFileDialog
     //
     this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
     this.openFileDialog.Title  = "Select data file";
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(1008, 526);
     this.stopButton.Name     = "stopButton";
     this.stopButton.Size     = new System.Drawing.Size(120, 34);
     this.stopButton.TabIndex = 6;
     this.stopButton.Text     = "S&top";
     this.stopButton.Click   += new System.EventHandler(this.stopButton_Click);
     //
     // startButton
     //
     this.startButton.Enabled  = false;
     this.startButton.Location = new System.Drawing.Point(864, 526);
     this.startButton.Name     = "startButton";
     this.startButton.Size     = new System.Drawing.Size(120, 34);
     this.startButton.TabIndex = 5;
     this.startButton.Text     = "&Start";
     this.startButton.Click   += new System.EventHandler(this.startButton_Click);
     //
     // groupBox4
     //
     this.groupBox4.Controls.Add(this.currentPredictionErrorBox);
     this.groupBox4.Controls.Add(this.label13);
     this.groupBox4.Controls.Add(this.currentLearningErrorBox);
     this.groupBox4.Controls.Add(this.label12);
     this.groupBox4.Controls.Add(this.currentIterationBox);
     this.groupBox4.Controls.Add(this.label11);
     this.groupBox4.Location = new System.Drawing.Point(816, 329);
     this.groupBox4.Name     = "groupBox4";
     this.groupBox4.Size     = new System.Drawing.Size(312, 146);
     this.groupBox4.TabIndex = 7;
     this.groupBox4.TabStop  = false;
     this.groupBox4.Text     = "Current iteration:";
     //
     // currentPredictionErrorBox
     //
     this.currentPredictionErrorBox.Location = new System.Drawing.Point(200, 102);
     this.currentPredictionErrorBox.Name     = "currentPredictionErrorBox";
     this.currentPredictionErrorBox.ReadOnly = true;
     this.currentPredictionErrorBox.Size     = new System.Drawing.Size(96, 26);
     this.currentPredictionErrorBox.TabIndex = 5;
     //
     // label13
     //
     this.label13.Location = new System.Drawing.Point(16, 105);
     this.label13.Name     = "label13";
     this.label13.Size     = new System.Drawing.Size(160, 24);
     this.label13.TabIndex = 4;
     this.label13.Text     = "Prediction error:";
     //
     // currentLearningErrorBox
     //
     this.currentLearningErrorBox.Location = new System.Drawing.Point(200, 66);
     this.currentLearningErrorBox.Name     = "currentLearningErrorBox";
     this.currentLearningErrorBox.ReadOnly = true;
     this.currentLearningErrorBox.Size     = new System.Drawing.Size(96, 26);
     this.currentLearningErrorBox.TabIndex = 3;
     //
     // label12
     //
     this.label12.Location = new System.Drawing.Point(16, 69);
     this.label12.Name     = "label12";
     this.label12.Size     = new System.Drawing.Size(128, 23);
     this.label12.TabIndex = 2;
     this.label12.Text     = "Learning error:";
     //
     // currentIterationBox
     //
     this.currentIterationBox.Location = new System.Drawing.Point(200, 29);
     this.currentIterationBox.Name     = "currentIterationBox";
     this.currentIterationBox.ReadOnly = true;
     this.currentIterationBox.Size     = new System.Drawing.Size(96, 26);
     this.currentIterationBox.TabIndex = 1;
     //
     // label11
     //
     this.label11.Location = new System.Drawing.Point(16, 32);
     this.label11.Name     = "label11";
     this.label11.Size     = new System.Drawing.Size(112, 24);
     this.label11.TabIndex = 0;
     this.label11.Text     = "Iteration:";
     //
     // label5
     //
     this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.label5.Location    = new System.Drawing.Point(18, 152);
     this.label5.Name        = "label5";
     this.label5.Size        = new System.Drawing.Size(280, 3);
     this.label5.TabIndex    = 17;
     //
     // label9
     //
     this.label9.Location = new System.Drawing.Point(18, 254);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(112, 24);
     this.label9.TabIndex = 23;
     this.label9.Text     = "Iterations:";
     //
     // label10
     //
     this.label10.Font     = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label10.Location = new System.Drawing.Point(203, 281);
     this.label10.Name     = "label10";
     this.label10.Size     = new System.Drawing.Size(93, 20);
     this.label10.TabIndex = 25;
     this.label10.Text     = "( 0 - inifinity )";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(18, 167);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(128, 23);
     this.label3.TabIndex = 18;
     this.label3.Text     = "Window size:";
     //
     // windowSizeBox
     //
     this.windowSizeBox.Location     = new System.Drawing.Point(202, 164);
     this.windowSizeBox.Name         = "windowSizeBox";
     this.windowSizeBox.Size         = new System.Drawing.Size(96, 26);
     this.windowSizeBox.TabIndex     = 19;
     this.windowSizeBox.TextChanged += new System.EventHandler(this.windowSizeBox_TextChanged);
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(18, 203);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(144, 24);
     this.label7.TabIndex = 20;
     this.label7.Text     = "Prediction size:";
     //
     // predictionSizeBox
     //
     this.predictionSizeBox.Location     = new System.Drawing.Point(202, 200);
     this.predictionSizeBox.Name         = "predictionSizeBox";
     this.predictionSizeBox.Size         = new System.Drawing.Size(96, 26);
     this.predictionSizeBox.TabIndex     = 21;
     this.predictionSizeBox.TextChanged += new System.EventHandler(this.predictionSizeBox_TextChanged);
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(202, 251);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.Size     = new System.Drawing.Size(96, 26);
     this.iterationsBox.TabIndex = 24;
     //
     // label8
     //
     this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.label8.Location    = new System.Drawing.Point(18, 240);
     this.label8.Name        = "label8";
     this.label8.Size        = new System.Drawing.Size(280, 3);
     this.label8.TabIndex    = 22;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(16, 32);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(125, 21);
     this.label1.TabIndex = 6;
     this.label1.Text     = "Learning rate:";
     //
     // learningRateBox
     //
     this.learningRateBox.Location = new System.Drawing.Point(200, 29);
     this.learningRateBox.Name     = "learningRateBox";
     this.learningRateBox.Size     = new System.Drawing.Size(96, 26);
     this.learningRateBox.TabIndex = 7;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 70);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(192, 22);
     this.label2.TabIndex = 10;
     this.label2.Text     = "Sigmoid\'s alpha value:";
     //
     // alphaBox
     //
     this.alphaBox.Location = new System.Drawing.Point(200, 67);
     this.alphaBox.Name     = "alphaBox";
     this.alphaBox.Size     = new System.Drawing.Size(96, 26);
     this.alphaBox.TabIndex = 11;
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.cbRegularization);
     this.groupBox3.Controls.Add(this.alphaBox);
     this.groupBox3.Controls.Add(this.label2);
     this.groupBox3.Controls.Add(this.learningRateBox);
     this.groupBox3.Controls.Add(this.label1);
     this.groupBox3.Controls.Add(this.label8);
     this.groupBox3.Controls.Add(this.iterationsBox);
     this.groupBox3.Controls.Add(this.predictionSizeBox);
     this.groupBox3.Controls.Add(this.label7);
     this.groupBox3.Controls.Add(this.windowSizeBox);
     this.groupBox3.Controls.Add(this.label3);
     this.groupBox3.Controls.Add(this.label10);
     this.groupBox3.Controls.Add(this.label9);
     this.groupBox3.Controls.Add(this.label5);
     this.groupBox3.Location = new System.Drawing.Point(816, 15);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(312, 305);
     this.groupBox3.TabIndex = 3;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Settings";
     //
     // cbRegularization
     //
     this.cbRegularization.AutoSize = true;
     this.cbRegularization.Location = new System.Drawing.Point(22, 105);
     this.cbRegularization.Name     = "cbRegularization";
     this.cbRegularization.Size     = new System.Drawing.Size(239, 24);
     this.cbRegularization.TabIndex = 26;
     this.cbRegularization.Text     = "Use Bayesian Regularization";
     this.cbRegularization.UseVisualStyleBackColor = true;
     //
     // TimeSeries
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
     this.ClientSize          = new System.Drawing.Size(1145, 581);
     this.Controls.Add(this.groupBox4);
     this.Controls.Add(this.stopButton);
     this.Controls.Add(this.startButton);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.Name            = "TimeSeries";
     this.Text            = "Time Series Prediction using Multi-Layer Neural Network (Levenberg-Marquardt)";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox4.ResumeLayout(false);
     this.groupBox4.PerformLayout();
     this.groupBox3.ResumeLayout(false);
     this.groupBox3.PerformLayout();
     this.ResumeLayout(false);
 }
Exemplo n.º 10
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DeltaRuleForm));
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.classesBox = new System.Windows.Forms.TextBox();
            this.label10 = new System.Windows.Forms.Label();
            this.dataList = new System.Windows.Forms.ListView();
            this.loadButton = new System.Windows.Forms.Button();
            this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.currentErrorBox = new System.Windows.Forms.TextBox();
            this.label11 = new System.Windows.Forms.Label();
            this.label9 = new System.Windows.Forms.Label();
            this.currentIterationBox = new System.Windows.Forms.TextBox();
            this.label8 = new System.Windows.Forms.Label();
            this.label7 = new System.Windows.Forms.Label();
            this.errorLimitCheck = new System.Windows.Forms.CheckBox();
            this.oneNeuronForTwoCheck = new System.Windows.Forms.CheckBox();
            this.neuronsBox = new System.Windows.Forms.TextBox();
            this.label6 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.iterationsBox = new System.Windows.Forms.TextBox();
            this.label4 = new System.Windows.Forms.Label();
            this.errorLimitBox = new System.Windows.Forms.TextBox();
            this.label3 = new System.Windows.Forms.Label();
            this.alphaBox = new System.Windows.Forms.TextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.label1 = new System.Windows.Forms.Label();
            this.learningRateBox = new System.Windows.Forms.TextBox();
            this.stopButton = new System.Windows.Forms.Button();
            this.startButton = new System.Windows.Forms.Button();
            this.groupBox3 = new System.Windows.Forms.GroupBox();
            this.saveFilesCheck = new System.Windows.Forms.CheckBox();
            this.label13 = new System.Windows.Forms.Label();
            this.weightsList = new System.Windows.Forms.ListView();
            this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.errorChart = new AForge.Controls.Chart();
            this.label12 = new System.Windows.Forms.Label();
            this.groupBox1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.groupBox3.SuspendLayout();
            this.SuspendLayout();
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.classesBox);
            this.groupBox1.Controls.Add(this.label10);
            this.groupBox1.Controls.Add(this.dataList);
            this.groupBox1.Controls.Add(this.loadButton);
            this.groupBox1.Location = new System.Drawing.Point(16, 15);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(368, 482);
            this.groupBox1.TabIndex = 0;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Data";
            // 
            // classesBox
            // 
            this.classesBox.Location = new System.Drawing.Point(304, 434);
            this.classesBox.Name = "classesBox";
            this.classesBox.ReadOnly = true;
            this.classesBox.Size = new System.Drawing.Size(48, 26);
            this.classesBox.TabIndex = 3;
            // 
            // label10
            // 
            this.label10.Location = new System.Drawing.Point(224, 437);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(80, 18);
            this.label10.TabIndex = 2;
            this.label10.Text = "Classes:";
            // 
            // dataList
            // 
            this.dataList.FullRowSelect = true;
            this.dataList.GridLines = true;
            this.dataList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
            this.dataList.Location = new System.Drawing.Point(16, 29);
            this.dataList.Name = "dataList";
            this.dataList.Size = new System.Drawing.Size(336, 395);
            this.dataList.TabIndex = 0;
            this.dataList.UseCompatibleStateImageBehavior = false;
            this.dataList.View = System.Windows.Forms.View.Details;
            // 
            // loadButton
            // 
            this.loadButton.Location = new System.Drawing.Point(16, 434);
            this.loadButton.Name = "loadButton";
            this.loadButton.Size = new System.Drawing.Size(120, 34);
            this.loadButton.TabIndex = 1;
            this.loadButton.Text = "&Load";
            this.loadButton.Click += new System.EventHandler(this.loadButton_Click);
            // 
            // openFileDialog
            // 
            this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
            this.openFileDialog.Title = "Select data file";
            // 
            // groupBox2
            // 
            this.groupBox2.Controls.Add(this.currentErrorBox);
            this.groupBox2.Controls.Add(this.label11);
            this.groupBox2.Controls.Add(this.label9);
            this.groupBox2.Controls.Add(this.currentIterationBox);
            this.groupBox2.Controls.Add(this.label8);
            this.groupBox2.Controls.Add(this.label7);
            this.groupBox2.Controls.Add(this.errorLimitCheck);
            this.groupBox2.Controls.Add(this.oneNeuronForTwoCheck);
            this.groupBox2.Controls.Add(this.neuronsBox);
            this.groupBox2.Controls.Add(this.label6);
            this.groupBox2.Controls.Add(this.label5);
            this.groupBox2.Controls.Add(this.iterationsBox);
            this.groupBox2.Controls.Add(this.label4);
            this.groupBox2.Controls.Add(this.errorLimitBox);
            this.groupBox2.Controls.Add(this.label3);
            this.groupBox2.Controls.Add(this.alphaBox);
            this.groupBox2.Controls.Add(this.label2);
            this.groupBox2.Controls.Add(this.label1);
            this.groupBox2.Controls.Add(this.learningRateBox);
            this.groupBox2.Controls.Add(this.stopButton);
            this.groupBox2.Controls.Add(this.startButton);
            this.groupBox2.Location = new System.Drawing.Point(400, 15);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(296, 482);
            this.groupBox2.TabIndex = 1;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Training";
            // 
            // currentErrorBox
            // 
            this.currentErrorBox.Location = new System.Drawing.Point(200, 373);
            this.currentErrorBox.Name = "currentErrorBox";
            this.currentErrorBox.ReadOnly = true;
            this.currentErrorBox.Size = new System.Drawing.Size(80, 26);
            this.currentErrorBox.TabIndex = 20;
            // 
            // label11
            // 
            this.label11.Location = new System.Drawing.Point(16, 376);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(194, 20);
            this.label11.TabIndex = 19;
            this.label11.Text = "Current average error:";
            // 
            // label9
            // 
            this.label9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.label9.Location = new System.Drawing.Point(16, 414);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(264, 3);
            this.label9.TabIndex = 18;
            // 
            // currentIterationBox
            // 
            this.currentIterationBox.Location = new System.Drawing.Point(200, 336);
            this.currentIterationBox.Name = "currentIterationBox";
            this.currentIterationBox.ReadOnly = true;
            this.currentIterationBox.Size = new System.Drawing.Size(80, 26);
            this.currentIterationBox.TabIndex = 17;
            // 
            // label8
            // 
            this.label8.Location = new System.Drawing.Point(16, 339);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(157, 23);
            this.label8.TabIndex = 16;
            this.label8.Text = "Current iteration:";
            // 
            // label7
            // 
            this.label7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.label7.Location = new System.Drawing.Point(16, 322);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(264, 2);
            this.label7.TabIndex = 15;
            // 
            // errorLimitCheck
            // 
            this.errorLimitCheck.Location = new System.Drawing.Point(16, 270);
            this.errorLimitCheck.Name = "errorLimitCheck";
            this.errorLimitCheck.Size = new System.Drawing.Size(251, 44);
            this.errorLimitCheck.TabIndex = 14;
            this.errorLimitCheck.Text = "Use error limit (checked) or iterations limit";
            // 
            // oneNeuronForTwoCheck
            // 
            this.oneNeuronForTwoCheck.Enabled = false;
            this.oneNeuronForTwoCheck.Location = new System.Drawing.Point(16, 241);
            this.oneNeuronForTwoCheck.Name = "oneNeuronForTwoCheck";
            this.oneNeuronForTwoCheck.Size = new System.Drawing.Size(269, 22);
            this.oneNeuronForTwoCheck.TabIndex = 13;
            this.oneNeuronForTwoCheck.Text = "Use 1 neuron for 2 classes";
            this.oneNeuronForTwoCheck.CheckedChanged += new System.EventHandler(this.oneNeuronForTwoCheck_CheckedChanged);
            // 
            // neuronsBox
            // 
            this.neuronsBox.Location = new System.Drawing.Point(200, 197);
            this.neuronsBox.Name = "neuronsBox";
            this.neuronsBox.ReadOnly = true;
            this.neuronsBox.Size = new System.Drawing.Size(80, 26);
            this.neuronsBox.TabIndex = 12;
            // 
            // label6
            // 
            this.label6.Location = new System.Drawing.Point(16, 200);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(94, 18);
            this.label6.TabIndex = 11;
            this.label6.Text = "Neurons:";
            // 
            // label5
            // 
            this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.label5.Location = new System.Drawing.Point(200, 168);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(93, 25);
            this.label5.TabIndex = 10;
            this.label5.Text = "( 0 - inifinity )";
            // 
            // iterationsBox
            // 
            this.iterationsBox.Location = new System.Drawing.Point(200, 139);
            this.iterationsBox.Name = "iterationsBox";
            this.iterationsBox.Size = new System.Drawing.Size(80, 26);
            this.iterationsBox.TabIndex = 9;
            // 
            // label4
            // 
            this.label4.Location = new System.Drawing.Point(16, 142);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(144, 19);
            this.label4.TabIndex = 8;
            this.label4.Text = "Iterations limit:";
            // 
            // errorLimitBox
            // 
            this.errorLimitBox.Location = new System.Drawing.Point(200, 102);
            this.errorLimitBox.Name = "errorLimitBox";
            this.errorLimitBox.Size = new System.Drawing.Size(80, 26);
            this.errorLimitBox.TabIndex = 7;
            // 
            // label3
            // 
            this.label3.Location = new System.Drawing.Point(16, 105);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(176, 22);
            this.label3.TabIndex = 6;
            this.label3.Text = "Learning error limit:";
            // 
            // alphaBox
            // 
            this.alphaBox.Location = new System.Drawing.Point(200, 66);
            this.alphaBox.Name = "alphaBox";
            this.alphaBox.Size = new System.Drawing.Size(80, 26);
            this.alphaBox.TabIndex = 5;
            // 
            // label2
            // 
            this.label2.Location = new System.Drawing.Point(16, 69);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(192, 22);
            this.label2.TabIndex = 4;
            this.label2.Text = "Sigmoid\'s alpha value:";
            // 
            // label1
            // 
            this.label1.Location = new System.Drawing.Point(16, 32);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(120, 24);
            this.label1.TabIndex = 2;
            this.label1.Text = "Learning rate:";
            // 
            // learningRateBox
            // 
            this.learningRateBox.Location = new System.Drawing.Point(200, 29);
            this.learningRateBox.Name = "learningRateBox";
            this.learningRateBox.Size = new System.Drawing.Size(80, 26);
            this.learningRateBox.TabIndex = 3;
            // 
            // stopButton
            // 
            this.stopButton.Enabled = false;
            this.stopButton.Location = new System.Drawing.Point(160, 434);
            this.stopButton.Name = "stopButton";
            this.stopButton.Size = new System.Drawing.Size(120, 34);
            this.stopButton.TabIndex = 6;
            this.stopButton.Text = "S&top";
            this.stopButton.Click += new System.EventHandler(this.stopButton_Click);
            // 
            // startButton
            // 
            this.startButton.Enabled = false;
            this.startButton.Location = new System.Drawing.Point(16, 434);
            this.startButton.Name = "startButton";
            this.startButton.Size = new System.Drawing.Size(120, 34);
            this.startButton.TabIndex = 5;
            this.startButton.Text = "&Start";
            this.startButton.Click += new System.EventHandler(this.startButton_Click);
            // 
            // groupBox3
            // 
            this.groupBox3.Controls.Add(this.saveFilesCheck);
            this.groupBox3.Controls.Add(this.label13);
            this.groupBox3.Controls.Add(this.weightsList);
            this.groupBox3.Controls.Add(this.errorChart);
            this.groupBox3.Controls.Add(this.label12);
            this.groupBox3.Location = new System.Drawing.Point(712, 15);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new System.Drawing.Size(352, 482);
            this.groupBox3.TabIndex = 2;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "Solution";
            // 
            // saveFilesCheck
            // 
            this.saveFilesCheck.Location = new System.Drawing.Point(16, 446);
            this.saveFilesCheck.Name = "saveFilesCheck";
            this.saveFilesCheck.Size = new System.Drawing.Size(312, 22);
            this.saveFilesCheck.TabIndex = 4;
            this.saveFilesCheck.Text = "Save weights and errors to files";
            // 
            // label13
            // 
            this.label13.Location = new System.Drawing.Point(16, 248);
            this.label13.Name = "label13";
            this.label13.Size = new System.Drawing.Size(160, 18);
            this.label13.TabIndex = 3;
            this.label13.Text = "Error\'s dynamics:";
            // 
            // weightsList
            // 
            this.weightsList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader1,
            this.columnHeader2,
            this.columnHeader3});
            this.weightsList.FullRowSelect = true;
            this.weightsList.GridLines = true;
            this.weightsList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
            this.weightsList.Location = new System.Drawing.Point(16, 51);
            this.weightsList.Name = "weightsList";
            this.weightsList.Size = new System.Drawing.Size(320, 190);
            this.weightsList.TabIndex = 2;
            this.weightsList.UseCompatibleStateImageBehavior = false;
            this.weightsList.View = System.Windows.Forms.View.Details;
            // 
            // columnHeader1
            // 
            this.columnHeader1.Text = "Neuron";
            // 
            // columnHeader2
            // 
            this.columnHeader2.Text = "Weight";
            // 
            // columnHeader3
            // 
            this.columnHeader3.Text = "Value";
            // 
            // errorChart
            // 
            this.errorChart.Location = new System.Drawing.Point(16, 270);
            this.errorChart.Name = "errorChart";
            this.errorChart.RangeX = ((AForge.Range)(resources.GetObject("errorChart.RangeX")));
            this.errorChart.RangeY = ((AForge.Range)(resources.GetObject("errorChart.RangeY")));
            this.errorChart.Size = new System.Drawing.Size(320, 161);
            this.errorChart.TabIndex = 1;
            this.errorChart.Text = "chart1";
            // 
            // label12
            // 
            this.label12.Location = new System.Drawing.Point(16, 29);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(160, 22);
            this.label12.TabIndex = 0;
            this.label12.Text = "Network weights:";
            // 
            // DeltaRuleForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
            this.ClientSize = new System.Drawing.Size(1076, 512);
            this.Controls.Add(this.groupBox3);
            this.Controls.Add(this.groupBox2);
            this.Controls.Add(this.groupBox1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.Name = "DeltaRuleForm";
            this.Text = "Classifier using Delta Rule Learning";
            this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.groupBox3.ResumeLayout(false);
            this.ResumeLayout(false);

        }
Exemplo n.º 11
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.dataList = new System.Windows.Forms.ListView();
     this.yColumnHeader = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.estimatedYColumnHeader = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.loadDataButton = new System.Windows.Forms.Button();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.chart = new AForge.Controls.Chart();
     this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
     this.groupBox3 = new System.Windows.Forms.GroupBox();
     this.elasticityBox = new System.Windows.Forms.TextBox();
     this.labelElasticity = new System.Windows.Forms.Label();
     this.momentumBox = new System.Windows.Forms.TextBox();
     this.label6 = new System.Windows.Forms.Label();
     this.alphaBox = new System.Windows.Forms.TextBox();
     this.label2 = new System.Windows.Forms.Label();
     this.learningRateBox = new System.Windows.Forms.TextBox();
     this.label1 = new System.Windows.Forms.Label();
     this.label8 = new System.Windows.Forms.Label();
     this.iterationsBox = new System.Windows.Forms.TextBox();
     this.predictionSizeBox = new System.Windows.Forms.TextBox();
     this.label7 = new System.Windows.Forms.Label();
     this.windowSizeBox = new System.Windows.Forms.TextBox();
     this.label3 = new System.Windows.Forms.Label();
     this.label10 = new System.Windows.Forms.Label();
     this.label9 = new System.Windows.Forms.Label();
     this.label5 = new System.Windows.Forms.Label();
     this.stopButton = new System.Windows.Forms.Button();
     this.startButton = new System.Windows.Forms.Button();
     this.groupBox4 = new System.Windows.Forms.GroupBox();
     this.currentPredictionErrorBox = new System.Windows.Forms.TextBox();
     this.label13 = new System.Windows.Forms.Label();
     this.currentLearningErrorBox = new System.Windows.Forms.TextBox();
     this.label12 = new System.Windows.Forms.Label();
     this.currentIterationBox = new System.Windows.Forms.TextBox();
     this.label11 = new System.Windows.Forms.Label();
     this.hiddenLayerBox = new System.Windows.Forms.TextBox();
     this.labelHiddenLayers = new System.Windows.Forms.Label();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.groupBox4.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.dataList);
     this.groupBox1.Controls.Add(this.loadDataButton);
     this.groupBox1.Location = new System.Drawing.Point(10, 10);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(180, 380);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Data";
     //
     // dataList
     //
     this.dataList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.yColumnHeader,
     this.estimatedYColumnHeader});
     this.dataList.FullRowSelect = true;
     this.dataList.GridLines = true;
     this.dataList.Location = new System.Drawing.Point(10, 20);
     this.dataList.Name = "dataList";
     this.dataList.Size = new System.Drawing.Size(160, 315);
     this.dataList.TabIndex = 3;
     this.dataList.UseCompatibleStateImageBehavior = false;
     this.dataList.View = System.Windows.Forms.View.Details;
     //
     // yColumnHeader
     //
     this.yColumnHeader.Text = "Y:Real";
     this.yColumnHeader.Width = 70;
     //
     // estimatedYColumnHeader
     //
     this.estimatedYColumnHeader.Text = "Y:Estimated";
     this.estimatedYColumnHeader.Width = 70;
     //
     // loadDataButton
     //
     this.loadDataButton.Location = new System.Drawing.Point(10, 345);
     this.loadDataButton.Name = "loadDataButton";
     this.loadDataButton.Size = new System.Drawing.Size(75, 23);
     this.loadDataButton.TabIndex = 2;
     this.loadDataButton.Text = "&Load";
     this.loadDataButton.Click += new System.EventHandler(this.loadDataButton_Click);
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.chart);
     this.groupBox2.Location = new System.Drawing.Point(200, 10);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size(300, 380);
     this.groupBox2.TabIndex = 2;
     this.groupBox2.TabStop = false;
     this.groupBox2.Text = "Function";
     //
     // chart
     //
     this.chart.Location = new System.Drawing.Point(10, 20);
     this.chart.Name = "chart";
     this.chart.Size = new System.Drawing.Size(280, 350);
     this.chart.TabIndex = 0;
     //
     // openFileDialog
     //
     this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
     this.openFileDialog.Title = "Select data file";
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.hiddenLayerBox);
     this.groupBox3.Controls.Add(this.labelHiddenLayers);
     this.groupBox3.Controls.Add(this.elasticityBox);
     this.groupBox3.Controls.Add(this.labelElasticity);
     this.groupBox3.Controls.Add(this.momentumBox);
     this.groupBox3.Controls.Add(this.label6);
     this.groupBox3.Controls.Add(this.alphaBox);
     this.groupBox3.Controls.Add(this.label2);
     this.groupBox3.Controls.Add(this.learningRateBox);
     this.groupBox3.Controls.Add(this.label1);
     this.groupBox3.Controls.Add(this.label8);
     this.groupBox3.Controls.Add(this.iterationsBox);
     this.groupBox3.Controls.Add(this.predictionSizeBox);
     this.groupBox3.Controls.Add(this.label7);
     this.groupBox3.Controls.Add(this.windowSizeBox);
     this.groupBox3.Controls.Add(this.label3);
     this.groupBox3.Controls.Add(this.label10);
     this.groupBox3.Controls.Add(this.label9);
     this.groupBox3.Controls.Add(this.label5);
     this.groupBox3.Location = new System.Drawing.Point(510, 10);
     this.groupBox3.Name = "groupBox3";
     this.groupBox3.Size = new System.Drawing.Size(409, 205);
     this.groupBox3.TabIndex = 3;
     this.groupBox3.TabStop = false;
     this.groupBox3.Text = "Settings";
     //
     // elasticityBox
     //
     this.elasticityBox.AccessibleDescription = "How far away from min/max input values can the output be? In [0,1] percent value";
     this.elasticityBox.Location = new System.Drawing.Point(343, 22);
     this.elasticityBox.Name = "elasticityBox";
     this.elasticityBox.Size = new System.Drawing.Size(60, 20);
     this.elasticityBox.TabIndex = 27;
     //
     // labelElasticity
     //
     this.labelElasticity.AccessibleDescription = "How far away from min/max input values can the output be? In [0,1] percent value";
     this.labelElasticity.Location = new System.Drawing.Point(228, 24);
     this.labelElasticity.Name = "labelElasticity";
     this.labelElasticity.Size = new System.Drawing.Size(78, 14);
     this.labelElasticity.TabIndex = 26;
     this.labelElasticity.Text = "Elasticity:";
     //
     // momentumBox
     //
     this.momentumBox.Location = new System.Drawing.Point(125, 45);
     this.momentumBox.Name = "momentumBox";
     this.momentumBox.Size = new System.Drawing.Size(60, 20);
     this.momentumBox.TabIndex = 9;
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(10, 47);
     this.label6.Name = "label6";
     this.label6.Size = new System.Drawing.Size(82, 17);
     this.label6.TabIndex = 8;
     this.label6.Text = "Momentum:";
     //
     // alphaBox
     //
     this.alphaBox.Location = new System.Drawing.Point(125, 70);
     this.alphaBox.Name = "alphaBox";
     this.alphaBox.Size = new System.Drawing.Size(60, 20);
     this.alphaBox.TabIndex = 11;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(10, 72);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(120, 15);
     this.label2.TabIndex = 10;
     this.label2.Text = "Sigmoid\'s alpha value:";
     //
     // learningRateBox
     //
     this.learningRateBox.Location = new System.Drawing.Point(125, 20);
     this.learningRateBox.Name = "learningRateBox";
     this.learningRateBox.Size = new System.Drawing.Size(60, 20);
     this.learningRateBox.TabIndex = 7;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(10, 22);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(78, 14);
     this.label1.TabIndex = 6;
     this.label1.Text = "Learning rate:";
     //
     // label8
     //
     this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.label8.Location = new System.Drawing.Point(10, 157);
     this.label8.Name = "label8";
     this.label8.Size = new System.Drawing.Size(175, 2);
     this.label8.TabIndex = 22;
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(125, 165);
     this.iterationsBox.Name = "iterationsBox";
     this.iterationsBox.Size = new System.Drawing.Size(60, 20);
     this.iterationsBox.TabIndex = 24;
     //
     // predictionSizeBox
     //
     this.predictionSizeBox.Location = new System.Drawing.Point(125, 130);
     this.predictionSizeBox.Name = "predictionSizeBox";
     this.predictionSizeBox.Size = new System.Drawing.Size(60, 20);
     this.predictionSizeBox.TabIndex = 21;
     this.predictionSizeBox.TextChanged += new System.EventHandler(this.predictionSizeBox_TextChanged);
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(10, 132);
     this.label7.Name = "label7";
     this.label7.Size = new System.Drawing.Size(90, 16);
     this.label7.TabIndex = 20;
     this.label7.Text = "Prediction size:";
     //
     // windowSizeBox
     //
     this.windowSizeBox.Location = new System.Drawing.Point(125, 105);
     this.windowSizeBox.Name = "windowSizeBox";
     this.windowSizeBox.Size = new System.Drawing.Size(60, 20);
     this.windowSizeBox.TabIndex = 19;
     this.windowSizeBox.TextChanged += new System.EventHandler(this.windowSizeBox_TextChanged);
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(10, 107);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(80, 16);
     this.label3.TabIndex = 18;
     this.label3.Text = "Window size:";
     //
     // label10
     //
     this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label10.Location = new System.Drawing.Point(126, 185);
     this.label10.Name = "label10";
     this.label10.Size = new System.Drawing.Size(58, 14);
     this.label10.TabIndex = 25;
     this.label10.Text = "( 0 - inifinity )";
     //
     // label9
     //
     this.label9.Location = new System.Drawing.Point(10, 167);
     this.label9.Name = "label9";
     this.label9.Size = new System.Drawing.Size(70, 16);
     this.label9.TabIndex = 23;
     this.label9.Text = "Iterations:";
     //
     // label5
     //
     this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.label5.Location = new System.Drawing.Point(10, 97);
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size(175, 2);
     this.label5.TabIndex = 17;
     //
     // stopButton
     //
     this.stopButton.Enabled = false;
     this.stopButton.Location = new System.Drawing.Point(630, 360);
     this.stopButton.Name = "stopButton";
     this.stopButton.Size = new System.Drawing.Size(75, 23);
     this.stopButton.TabIndex = 6;
     this.stopButton.Text = "S&top";
     this.stopButton.Click += new System.EventHandler(this.stopButton_Click);
     //
     // startButton
     //
     this.startButton.Enabled = false;
     this.startButton.Location = new System.Drawing.Point(540, 360);
     this.startButton.Name = "startButton";
     this.startButton.Size = new System.Drawing.Size(75, 23);
     this.startButton.TabIndex = 5;
     this.startButton.Text = "&Start";
     this.startButton.Click += new System.EventHandler(this.startButton_Click);
     //
     // groupBox4
     //
     this.groupBox4.Controls.Add(this.currentPredictionErrorBox);
     this.groupBox4.Controls.Add(this.label13);
     this.groupBox4.Controls.Add(this.currentLearningErrorBox);
     this.groupBox4.Controls.Add(this.label12);
     this.groupBox4.Controls.Add(this.currentIterationBox);
     this.groupBox4.Controls.Add(this.label11);
     this.groupBox4.Location = new System.Drawing.Point(510, 225);
     this.groupBox4.Name = "groupBox4";
     this.groupBox4.Size = new System.Drawing.Size(195, 100);
     this.groupBox4.TabIndex = 7;
     this.groupBox4.TabStop = false;
     this.groupBox4.Text = "Current iteration:";
     //
     // currentPredictionErrorBox
     //
     this.currentPredictionErrorBox.Location = new System.Drawing.Point(125, 70);
     this.currentPredictionErrorBox.Name = "currentPredictionErrorBox";
     this.currentPredictionErrorBox.ReadOnly = true;
     this.currentPredictionErrorBox.Size = new System.Drawing.Size(60, 20);
     this.currentPredictionErrorBox.TabIndex = 5;
     //
     // label13
     //
     this.label13.Location = new System.Drawing.Point(10, 72);
     this.label13.Name = "label13";
     this.label13.Size = new System.Drawing.Size(100, 16);
     this.label13.TabIndex = 4;
     this.label13.Text = "Prediction error:";
     //
     // currentLearningErrorBox
     //
     this.currentLearningErrorBox.Location = new System.Drawing.Point(125, 45);
     this.currentLearningErrorBox.Name = "currentLearningErrorBox";
     this.currentLearningErrorBox.ReadOnly = true;
     this.currentLearningErrorBox.Size = new System.Drawing.Size(60, 20);
     this.currentLearningErrorBox.TabIndex = 3;
     //
     // label12
     //
     this.label12.Location = new System.Drawing.Point(10, 47);
     this.label12.Name = "label12";
     this.label12.Size = new System.Drawing.Size(80, 16);
     this.label12.TabIndex = 2;
     this.label12.Text = "Learning error:";
     //
     // currentIterationBox
     //
     this.currentIterationBox.Location = new System.Drawing.Point(125, 20);
     this.currentIterationBox.Name = "currentIterationBox";
     this.currentIterationBox.ReadOnly = true;
     this.currentIterationBox.Size = new System.Drawing.Size(60, 20);
     this.currentIterationBox.TabIndex = 1;
     //
     // label11
     //
     this.label11.Location = new System.Drawing.Point(10, 22);
     this.label11.Name = "label11";
     this.label11.Size = new System.Drawing.Size(70, 16);
     this.label11.TabIndex = 0;
     this.label11.Text = "Iteration:";
     //
     // hiddenLayerBox
     //
     this.hiddenLayerBox.AccessibleDescription = "How many neurons in each hidden layer, use <n> for static, or *<n> to multiply by" +
     " window size";
     this.hiddenLayerBox.Location = new System.Drawing.Point(343, 47);
     this.hiddenLayerBox.Name = "hiddenLayerBox";
     this.hiddenLayerBox.Size = new System.Drawing.Size(60, 20);
     this.hiddenLayerBox.TabIndex = 29;
     //
     // labelHiddenLayers
     //
     this.labelHiddenLayers.AccessibleDescription = "How many neurons in each hidden layer, use <n> for static, or *<n> to multiply by" +
     " window size";
     this.labelHiddenLayers.Location = new System.Drawing.Point(228, 49);
     this.labelHiddenLayers.Name = "labelHiddenLayers";
     this.labelHiddenLayers.Size = new System.Drawing.Size(78, 14);
     this.labelHiddenLayers.TabIndex = 28;
     this.labelHiddenLayers.Text = "Hidden Layers:";
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(1006, 398);
     this.Controls.Add(this.groupBox4);
     this.Controls.Add(this.stopButton);
     this.Controls.Add(this.startButton);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox = false;
     this.Name = "MainForm";
     this.Text = "Time Series Prediction using Multi-Layer Neural Network";
     this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox3.ResumeLayout(false);
     this.groupBox3.PerformLayout();
     this.groupBox4.ResumeLayout(false);
     this.groupBox4.PerformLayout();
     this.ResumeLayout(false);
 }
Exemplo n.º 12
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OneLayerPerceptronForm));
     this.groupBox1       = new System.Windows.Forms.GroupBox();
     this.loadButton      = new System.Windows.Forms.Button();
     this.chart           = new AForge.Controls.Chart();
     this.openFileDialog  = new System.Windows.Forms.OpenFileDialog();
     this.groupBox2       = new System.Windows.Forms.GroupBox();
     this.weightsList     = new System.Windows.Forms.ListView();
     this.columnHeader1   = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader2   = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader3   = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.label4          = new System.Windows.Forms.Label();
     this.label3          = new System.Windows.Forms.Label();
     this.saveFilesCheck  = new System.Windows.Forms.CheckBox();
     this.stopButton      = new System.Windows.Forms.Button();
     this.startButton     = new System.Windows.Forms.Button();
     this.iterationsBox   = new System.Windows.Forms.TextBox();
     this.label2          = new System.Windows.Forms.Label();
     this.learningRateBox = new System.Windows.Forms.TextBox();
     this.label1          = new System.Windows.Forms.Label();
     this.groupBox3       = new System.Windows.Forms.GroupBox();
     this.errorChart      = new AForge.Controls.Chart();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.loadButton);
     this.groupBox1.Controls.Add(this.chart);
     this.groupBox1.Location = new System.Drawing.Point(16, 15);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(352, 372);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Data";
     //
     // loadButton
     //
     this.loadButton.Location = new System.Drawing.Point(16, 329);
     this.loadButton.Name     = "loadButton";
     this.loadButton.Size     = new System.Drawing.Size(120, 33);
     this.loadButton.TabIndex = 1;
     this.loadButton.Text     = "&Load";
     this.loadButton.Click   += new System.EventHandler(this.loadButton_Click);
     //
     // chart
     //
     this.chart.Location = new System.Drawing.Point(16, 29);
     this.chart.Name     = "chart";
     this.chart.RangeX   = ((AForge.Range)(resources.GetObject("chart.RangeX")));
     this.chart.RangeY   = ((AForge.Range)(resources.GetObject("chart.RangeY")));
     this.chart.Size     = new System.Drawing.Size(320, 293);
     this.chart.TabIndex = 0;
     //
     // openFileDialog
     //
     this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
     this.openFileDialog.Title  = "Select data file";
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.weightsList);
     this.groupBox2.Controls.Add(this.label4);
     this.groupBox2.Controls.Add(this.label3);
     this.groupBox2.Controls.Add(this.saveFilesCheck);
     this.groupBox2.Controls.Add(this.stopButton);
     this.groupBox2.Controls.Add(this.startButton);
     this.groupBox2.Controls.Add(this.iterationsBox);
     this.groupBox2.Controls.Add(this.label2);
     this.groupBox2.Controls.Add(this.learningRateBox);
     this.groupBox2.Controls.Add(this.label1);
     this.groupBox2.Location = new System.Drawing.Point(384, 15);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(384, 599);
     this.groupBox2.TabIndex = 1;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Training";
     //
     // weightsList
     //
     this.weightsList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.columnHeader1,
         this.columnHeader2,
         this.columnHeader3
     });
     this.weightsList.FullRowSelect = true;
     this.weightsList.GridLines     = true;
     this.weightsList.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.weightsList.Location      = new System.Drawing.Point(16, 190);
     this.weightsList.Name          = "weightsList";
     this.weightsList.Size          = new System.Drawing.Size(352, 395);
     this.weightsList.TabIndex      = 14;
     this.weightsList.UseCompatibleStateImageBehavior = false;
     this.weightsList.View = System.Windows.Forms.View.Details;
     //
     // columnHeader1
     //
     this.columnHeader1.Text = "Neuron";
     //
     // columnHeader2
     //
     this.columnHeader2.Text = "Weigh";
     //
     // columnHeader3
     //
     this.columnHeader3.Text  = "Value";
     this.columnHeader3.Width = 65;
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(16, 161);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(88, 23);
     this.label4.TabIndex = 13;
     this.label4.Text     = "Weights:";
     //
     // label3
     //
     this.label3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label3.Location    = new System.Drawing.Point(16, 146);
     this.label3.Name        = "label3";
     this.label3.Size        = new System.Drawing.Size(352, 3);
     this.label3.TabIndex    = 12;
     //
     // saveFilesCheck
     //
     this.saveFilesCheck.Location = new System.Drawing.Point(16, 117);
     this.saveFilesCheck.Name     = "saveFilesCheck";
     this.saveFilesCheck.Size     = new System.Drawing.Size(240, 23);
     this.saveFilesCheck.TabIndex = 11;
     this.saveFilesCheck.Text     = "Save weights and errors to files";
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(248, 72);
     this.stopButton.Name     = "stopButton";
     this.stopButton.Size     = new System.Drawing.Size(120, 33);
     this.stopButton.TabIndex = 10;
     this.stopButton.Text     = "S&top";
     this.stopButton.Click   += new System.EventHandler(this.stopButton_Click);
     //
     // startButton
     //
     this.startButton.Enabled  = false;
     this.startButton.Location = new System.Drawing.Point(248, 28);
     this.startButton.Name     = "startButton";
     this.startButton.Size     = new System.Drawing.Size(120, 33);
     this.startButton.TabIndex = 9;
     this.startButton.Text     = "&Start";
     this.startButton.Click   += new System.EventHandler(this.startButton_Click);
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(144, 73);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.ReadOnly = true;
     this.iterationsBox.Size     = new System.Drawing.Size(80, 26);
     this.iterationsBox.TabIndex = 3;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 76);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(88, 19);
     this.label2.TabIndex = 2;
     this.label2.Text     = "Iterations:";
     //
     // learningRateBox
     //
     this.learningRateBox.Location = new System.Drawing.Point(144, 29);
     this.learningRateBox.Name     = "learningRateBox";
     this.learningRateBox.Size     = new System.Drawing.Size(80, 26);
     this.learningRateBox.TabIndex = 1;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(16, 32);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(128, 25);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Learning rate:";
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.errorChart);
     this.groupBox3.Location = new System.Drawing.Point(16, 395);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(352, 219);
     this.groupBox3.TabIndex = 2;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Error\'s dynamics";
     //
     // errorChart
     //
     this.errorChart.Location = new System.Drawing.Point(16, 29);
     this.errorChart.Name     = "errorChart";
     this.errorChart.RangeX   = ((AForge.Range)(resources.GetObject("errorChart.RangeX")));
     this.errorChart.RangeY   = ((AForge.Range)(resources.GetObject("errorChart.RangeY")));
     this.errorChart.Size     = new System.Drawing.Size(320, 176);
     this.errorChart.TabIndex = 0;
     this.errorChart.Text     = "chart1";
     //
     // OneLayerPerceptronForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
     this.ClientSize          = new System.Drawing.Size(794, 634);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.Name            = "OneLayerPerceptronForm";
     this.Text            = "One-Layer Perceptron Classifier";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     this.groupBox3.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 13
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
     this.groupBox1           = new System.Windows.Forms.GroupBox();
     this.generateMapButton   = new System.Windows.Forms.Button();
     this.citiesCountBox      = new System.Windows.Forms.TextBox();
     this.label1              = new System.Windows.Forms.Label();
     this.mapControl          = new AForge.Controls.Chart();
     this.groupBox2           = new System.Windows.Forms.GroupBox();
     this.greedyCrossoverBox  = new System.Windows.Forms.CheckBox();
     this.label5              = new System.Windows.Forms.Label();
     this.iterationsBox       = new System.Windows.Forms.TextBox();
     this.label4              = new System.Windows.Forms.Label();
     this.selectionBox        = new System.Windows.Forms.ComboBox();
     this.label3              = new System.Windows.Forms.Label();
     this.populationSizeBox   = new System.Windows.Forms.TextBox();
     this.label2              = new System.Windows.Forms.Label();
     this.groupBox3           = new System.Windows.Forms.GroupBox();
     this.pathLengthBox       = new System.Windows.Forms.TextBox();
     this.label7              = new System.Windows.Forms.Label();
     this.currentIterationBox = new System.Windows.Forms.TextBox();
     this.label6              = new System.Windows.Forms.Label();
     this.startButton         = new System.Windows.Forms.Button();
     this.stopButton          = new System.Windows.Forms.Button();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.generateMapButton);
     this.groupBox1.Controls.Add(this.citiesCountBox);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.mapControl);
     this.groupBox1.Location = new System.Drawing.Point(16, 15);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(480, 497);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Map";
     //
     // generateMapButton
     //
     this.generateMapButton.Location = new System.Drawing.Point(176, 452);
     this.generateMapButton.Name     = "generateMapButton";
     this.generateMapButton.Size     = new System.Drawing.Size(120, 32);
     this.generateMapButton.TabIndex = 3;
     this.generateMapButton.Text     = "&Generate";
     this.generateMapButton.Click   += new System.EventHandler(this.generateMapButton_Click);
     //
     // citiesCountBox
     //
     this.citiesCountBox.Location = new System.Drawing.Point(80, 453);
     this.citiesCountBox.Name     = "citiesCountBox";
     this.citiesCountBox.Size     = new System.Drawing.Size(80, 26);
     this.citiesCountBox.TabIndex = 2;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(16, 456);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(64, 23);
     this.label1.TabIndex = 1;
     this.label1.Text     = "Cities:";
     //
     // mapControl
     //
     this.mapControl.Location = new System.Drawing.Point(16, 29);
     this.mapControl.Name     = "mapControl";
     this.mapControl.RangeX   = ((AForge.Range)(resources.GetObject("mapControl.RangeX")));
     this.mapControl.RangeY   = ((AForge.Range)(resources.GetObject("mapControl.RangeY")));
     this.mapControl.Size     = new System.Drawing.Size(448, 409);
     this.mapControl.TabIndex = 0;
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.greedyCrossoverBox);
     this.groupBox2.Controls.Add(this.label5);
     this.groupBox2.Controls.Add(this.iterationsBox);
     this.groupBox2.Controls.Add(this.label4);
     this.groupBox2.Controls.Add(this.selectionBox);
     this.groupBox2.Controls.Add(this.label3);
     this.groupBox2.Controls.Add(this.populationSizeBox);
     this.groupBox2.Controls.Add(this.label2);
     this.groupBox2.Location = new System.Drawing.Point(512, 15);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(296, 328);
     this.groupBox2.TabIndex = 1;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Settings";
     //
     // greedyCrossoverBox
     //
     this.greedyCrossoverBox.Location = new System.Drawing.Point(16, 102);
     this.greedyCrossoverBox.Name     = "greedyCrossoverBox";
     this.greedyCrossoverBox.Size     = new System.Drawing.Size(192, 35);
     this.greedyCrossoverBox.TabIndex = 7;
     this.greedyCrossoverBox.Text     = "Greedy crossover";
     //
     // label5
     //
     this.label5.Font     = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label5.Location = new System.Drawing.Point(200, 292);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(93, 22);
     this.label5.TabIndex = 6;
     this.label5.Text     = "( 0 - inifinity )";
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(200, 263);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.Size     = new System.Drawing.Size(80, 26);
     this.iterationsBox.TabIndex = 5;
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(16, 266);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(96, 23);
     this.label4.TabIndex = 4;
     this.label4.Text     = "Iterations:";
     //
     // selectionBox
     //
     this.selectionBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.selectionBox.Items.AddRange(new object[] {
         "Elite",
         "Rank",
         "Roulette"
     });
     this.selectionBox.Location = new System.Drawing.Point(176, 66);
     this.selectionBox.Name     = "selectionBox";
     this.selectionBox.Size     = new System.Drawing.Size(104, 28);
     this.selectionBox.TabIndex = 3;
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(16, 69);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(160, 23);
     this.label3.TabIndex = 2;
     this.label3.Text     = "Selection method:";
     //
     // populationSizeBox
     //
     this.populationSizeBox.Location = new System.Drawing.Point(200, 29);
     this.populationSizeBox.Name     = "populationSizeBox";
     this.populationSizeBox.Size     = new System.Drawing.Size(80, 26);
     this.populationSizeBox.TabIndex = 1;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 32);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(144, 24);
     this.label2.TabIndex = 0;
     this.label2.Text     = "Population size:";
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.pathLengthBox);
     this.groupBox3.Controls.Add(this.label7);
     this.groupBox3.Controls.Add(this.currentIterationBox);
     this.groupBox3.Controls.Add(this.label6);
     this.groupBox3.Location = new System.Drawing.Point(512, 351);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(296, 109);
     this.groupBox3.TabIndex = 2;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Current iteration";
     //
     // pathLengthBox
     //
     this.pathLengthBox.Location = new System.Drawing.Point(200, 66);
     this.pathLengthBox.Name     = "pathLengthBox";
     this.pathLengthBox.ReadOnly = true;
     this.pathLengthBox.Size     = new System.Drawing.Size(80, 26);
     this.pathLengthBox.TabIndex = 3;
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(16, 69);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(128, 23);
     this.label7.TabIndex = 2;
     this.label7.Text     = "Path length:";
     //
     // currentIterationBox
     //
     this.currentIterationBox.Location = new System.Drawing.Point(200, 29);
     this.currentIterationBox.Name     = "currentIterationBox";
     this.currentIterationBox.ReadOnly = true;
     this.currentIterationBox.Size     = new System.Drawing.Size(80, 26);
     this.currentIterationBox.TabIndex = 1;
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(16, 32);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(80, 24);
     this.label6.TabIndex = 0;
     this.label6.Text     = "Iteration:";
     //
     // startButton
     //
     this.startButton.Location = new System.Drawing.Point(544, 475);
     this.startButton.Name     = "startButton";
     this.startButton.Size     = new System.Drawing.Size(120, 34);
     this.startButton.TabIndex = 3;
     this.startButton.Text     = "&Start";
     this.startButton.Click   += new System.EventHandler(this.startButton_Click);
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(688, 475);
     this.stopButton.Name     = "stopButton";
     this.stopButton.Size     = new System.Drawing.Size(120, 34);
     this.stopButton.TabIndex = 4;
     this.stopButton.Text     = "S&top";
     this.stopButton.Click   += new System.EventHandler(this.stopButton_Click);
     //
     // MainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
     this.ClientSize          = new System.Drawing.Size(824, 530);
     this.Controls.Add(this.stopButton);
     this.Controls.Add(this.startButton);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.Name            = "MainForm";
     this.Text            = "Traveling Salesman Problem using Genetic Algorithms";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     this.groupBox3.ResumeLayout(false);
     this.groupBox3.PerformLayout();
     this.ResumeLayout(false);
 }
Exemplo n.º 14
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.generateMapButton = new System.Windows.Forms.Button();
            this.citiesCountBox = new System.Windows.Forms.TextBox();
            this.label1 = new System.Windows.Forms.Label();
            this.mapControl = new AForge.Controls.Chart();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.greedyCrossoverBox = new System.Windows.Forms.CheckBox();
            this.label5 = new System.Windows.Forms.Label();
            this.iterationsBox = new System.Windows.Forms.TextBox();
            this.label4 = new System.Windows.Forms.Label();
            this.selectionBox = new System.Windows.Forms.ComboBox();
            this.label3 = new System.Windows.Forms.Label();
            this.populationSizeBox = new System.Windows.Forms.TextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.groupBox3 = new System.Windows.Forms.GroupBox();
            this.pathLengthBox = new System.Windows.Forms.TextBox();
            this.label7 = new System.Windows.Forms.Label();
            this.currentIterationBox = new System.Windows.Forms.TextBox();
            this.label6 = new System.Windows.Forms.Label();
            this.startButton = new System.Windows.Forms.Button();
            this.stopButton = new System.Windows.Forms.Button();
            this.groupBox1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.groupBox3.SuspendLayout();
            this.SuspendLayout();
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.generateMapButton);
            this.groupBox1.Controls.Add(this.citiesCountBox);
            this.groupBox1.Controls.Add(this.label1);
            this.groupBox1.Controls.Add(this.mapControl);
            this.groupBox1.Location = new System.Drawing.Point(16, 15);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(480, 497);
            this.groupBox1.TabIndex = 0;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Map";
            // 
            // generateMapButton
            // 
            this.generateMapButton.Location = new System.Drawing.Point(176, 452);
            this.generateMapButton.Name = "generateMapButton";
            this.generateMapButton.Size = new System.Drawing.Size(120, 32);
            this.generateMapButton.TabIndex = 3;
            this.generateMapButton.Text = "&Generate";
            this.generateMapButton.Click += new System.EventHandler(this.generateMapButton_Click);
            // 
            // citiesCountBox
            // 
            this.citiesCountBox.Location = new System.Drawing.Point(80, 453);
            this.citiesCountBox.Name = "citiesCountBox";
            this.citiesCountBox.Size = new System.Drawing.Size(80, 26);
            this.citiesCountBox.TabIndex = 2;
            // 
            // label1
            // 
            this.label1.Location = new System.Drawing.Point(16, 456);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(64, 23);
            this.label1.TabIndex = 1;
            this.label1.Text = "Cities:";
            // 
            // mapControl
            // 
            this.mapControl.Location = new System.Drawing.Point(16, 29);
            this.mapControl.Name = "mapControl";
            this.mapControl.RangeX = ((AForge.Range)(resources.GetObject("mapControl.RangeX")));
            this.mapControl.RangeY = ((AForge.Range)(resources.GetObject("mapControl.RangeY")));
            this.mapControl.Size = new System.Drawing.Size(448, 409);
            this.mapControl.TabIndex = 0;
            // 
            // groupBox2
            // 
            this.groupBox2.Controls.Add(this.greedyCrossoverBox);
            this.groupBox2.Controls.Add(this.label5);
            this.groupBox2.Controls.Add(this.iterationsBox);
            this.groupBox2.Controls.Add(this.label4);
            this.groupBox2.Controls.Add(this.selectionBox);
            this.groupBox2.Controls.Add(this.label3);
            this.groupBox2.Controls.Add(this.populationSizeBox);
            this.groupBox2.Controls.Add(this.label2);
            this.groupBox2.Location = new System.Drawing.Point(512, 15);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(296, 328);
            this.groupBox2.TabIndex = 1;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Settings";
            // 
            // greedyCrossoverBox
            // 
            this.greedyCrossoverBox.Location = new System.Drawing.Point(16, 102);
            this.greedyCrossoverBox.Name = "greedyCrossoverBox";
            this.greedyCrossoverBox.Size = new System.Drawing.Size(192, 35);
            this.greedyCrossoverBox.TabIndex = 7;
            this.greedyCrossoverBox.Text = "Greedy crossover";
            // 
            // label5
            // 
            this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label5.Location = new System.Drawing.Point(200, 292);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(93, 22);
            this.label5.TabIndex = 6;
            this.label5.Text = "( 0 - inifinity )";
            // 
            // iterationsBox
            // 
            this.iterationsBox.Location = new System.Drawing.Point(200, 263);
            this.iterationsBox.Name = "iterationsBox";
            this.iterationsBox.Size = new System.Drawing.Size(80, 26);
            this.iterationsBox.TabIndex = 5;
            // 
            // label4
            // 
            this.label4.Location = new System.Drawing.Point(16, 266);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(96, 23);
            this.label4.TabIndex = 4;
            this.label4.Text = "Iterations:";
            // 
            // selectionBox
            // 
            this.selectionBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.selectionBox.Items.AddRange(new object[] {
            "Elite",
            "Rank",
            "Roulette"});
            this.selectionBox.Location = new System.Drawing.Point(176, 66);
            this.selectionBox.Name = "selectionBox";
            this.selectionBox.Size = new System.Drawing.Size(104, 28);
            this.selectionBox.TabIndex = 3;
            // 
            // label3
            // 
            this.label3.Location = new System.Drawing.Point(16, 69);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(160, 23);
            this.label3.TabIndex = 2;
            this.label3.Text = "Selection method:";
            // 
            // populationSizeBox
            // 
            this.populationSizeBox.Location = new System.Drawing.Point(200, 29);
            this.populationSizeBox.Name = "populationSizeBox";
            this.populationSizeBox.Size = new System.Drawing.Size(80, 26);
            this.populationSizeBox.TabIndex = 1;
            // 
            // label2
            // 
            this.label2.Location = new System.Drawing.Point(16, 32);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(144, 24);
            this.label2.TabIndex = 0;
            this.label2.Text = "Population size:";
            // 
            // groupBox3
            // 
            this.groupBox3.Controls.Add(this.pathLengthBox);
            this.groupBox3.Controls.Add(this.label7);
            this.groupBox3.Controls.Add(this.currentIterationBox);
            this.groupBox3.Controls.Add(this.label6);
            this.groupBox3.Location = new System.Drawing.Point(512, 351);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new System.Drawing.Size(296, 109);
            this.groupBox3.TabIndex = 2;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "Current iteration";
            // 
            // pathLengthBox
            // 
            this.pathLengthBox.Location = new System.Drawing.Point(200, 66);
            this.pathLengthBox.Name = "pathLengthBox";
            this.pathLengthBox.ReadOnly = true;
            this.pathLengthBox.Size = new System.Drawing.Size(80, 26);
            this.pathLengthBox.TabIndex = 3;
            // 
            // label7
            // 
            this.label7.Location = new System.Drawing.Point(16, 69);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(128, 23);
            this.label7.TabIndex = 2;
            this.label7.Text = "Path length:";
            // 
            // currentIterationBox
            // 
            this.currentIterationBox.Location = new System.Drawing.Point(200, 29);
            this.currentIterationBox.Name = "currentIterationBox";
            this.currentIterationBox.ReadOnly = true;
            this.currentIterationBox.Size = new System.Drawing.Size(80, 26);
            this.currentIterationBox.TabIndex = 1;
            // 
            // label6
            // 
            this.label6.Location = new System.Drawing.Point(16, 32);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(80, 24);
            this.label6.TabIndex = 0;
            this.label6.Text = "Iteration:";
            // 
            // startButton
            // 
            this.startButton.Location = new System.Drawing.Point(544, 475);
            this.startButton.Name = "startButton";
            this.startButton.Size = new System.Drawing.Size(120, 34);
            this.startButton.TabIndex = 3;
            this.startButton.Text = "&Start";
            this.startButton.Click += new System.EventHandler(this.startButton_Click);
            // 
            // stopButton
            // 
            this.stopButton.Enabled = false;
            this.stopButton.Location = new System.Drawing.Point(688, 475);
            this.stopButton.Name = "stopButton";
            this.stopButton.Size = new System.Drawing.Size(120, 34);
            this.stopButton.TabIndex = 4;
            this.stopButton.Text = "S&top";
            this.stopButton.Click += new System.EventHandler(this.stopButton_Click);
            // 
            // MainForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
            this.ClientSize = new System.Drawing.Size(824, 530);
            this.Controls.Add(this.stopButton);
            this.Controls.Add(this.startButton);
            this.Controls.Add(this.groupBox3);
            this.Controls.Add(this.groupBox2);
            this.Controls.Add(this.groupBox1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.Name = "MainForm";
            this.Text = "Traveling Salesman Problem using Genetic Algorithms";
            this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            this.ResumeLayout(false);

        }
Exemplo n.º 15
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
     this.groupBox1           = new System.Windows.Forms.GroupBox();
     this.dataList            = new System.Windows.Forms.ListView();
     this.xColumnHeader       = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.yColumnHeader       = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.loadDataButton      = new System.Windows.Forms.Button();
     this.openFileDialog      = new System.Windows.Forms.OpenFileDialog();
     this.groupBox2           = new System.Windows.Forms.GroupBox();
     this.chart               = new AForge.Controls.Chart();
     this.groupBox3           = new System.Windows.Forms.GroupBox();
     this.cbNguyenWidrow      = new System.Windows.Forms.CheckBox();
     this.neuronsBox          = new System.Windows.Forms.TextBox();
     this.label4              = new System.Windows.Forms.Label();
     this.alphaBox            = new System.Windows.Forms.TextBox();
     this.label2              = new System.Windows.Forms.Label();
     this.learningRateBox     = new System.Windows.Forms.TextBox();
     this.label1              = new System.Windows.Forms.Label();
     this.label8              = new System.Windows.Forms.Label();
     this.iterationsBox       = new System.Windows.Forms.TextBox();
     this.label10             = new System.Windows.Forms.Label();
     this.label9              = new System.Windows.Forms.Label();
     this.groupBox4           = new System.Windows.Forms.GroupBox();
     this.currentErrorBox     = new System.Windows.Forms.TextBox();
     this.label3              = new System.Windows.Forms.Label();
     this.currentIterationBox = new System.Windows.Forms.TextBox();
     this.label5              = new System.Windows.Forms.Label();
     this.stopButton          = new System.Windows.Forms.Button();
     this.startButton         = new System.Windows.Forms.Button();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.groupBox4.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.dataList);
     this.groupBox1.Controls.Add(this.loadDataButton);
     this.groupBox1.Location = new System.Drawing.Point(10, 10);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(180, 320);
     this.groupBox1.TabIndex = 1;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Data";
     //
     // dataList
     //
     this.dataList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.xColumnHeader,
         this.yColumnHeader
     });
     this.dataList.FullRowSelect = true;
     this.dataList.GridLines     = true;
     this.dataList.Location      = new System.Drawing.Point(10, 20);
     this.dataList.Name          = "dataList";
     this.dataList.Size          = new System.Drawing.Size(160, 255);
     this.dataList.TabIndex      = 0;
     this.dataList.UseCompatibleStateImageBehavior = false;
     this.dataList.View = System.Windows.Forms.View.Details;
     //
     // xColumnHeader
     //
     this.xColumnHeader.Text = "X";
     //
     // yColumnHeader
     //
     this.yColumnHeader.Text = "Y";
     //
     // loadDataButton
     //
     this.loadDataButton.Location = new System.Drawing.Point(10, 285);
     this.loadDataButton.Name     = "loadDataButton";
     this.loadDataButton.Size     = new System.Drawing.Size(75, 23);
     this.loadDataButton.TabIndex = 1;
     this.loadDataButton.Text     = "&Load";
     this.loadDataButton.Click   += new System.EventHandler(this.loadDataButton_Click);
     //
     // openFileDialog
     //
     this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
     this.openFileDialog.Title  = "Select data file";
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.chart);
     this.groupBox2.Location = new System.Drawing.Point(200, 10);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(300, 320);
     this.groupBox2.TabIndex = 2;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Function";
     //
     // chart
     //
     this.chart.Location = new System.Drawing.Point(10, 20);
     this.chart.Name     = "chart";
     this.chart.RangeX   = ((AForge.Range)(resources.GetObject("chart.RangeX")));
     this.chart.RangeY   = ((AForge.Range)(resources.GetObject("chart.RangeY")));
     this.chart.Size     = new System.Drawing.Size(280, 290);
     this.chart.TabIndex = 0;
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.cbNguyenWidrow);
     this.groupBox3.Controls.Add(this.neuronsBox);
     this.groupBox3.Controls.Add(this.label4);
     this.groupBox3.Controls.Add(this.alphaBox);
     this.groupBox3.Controls.Add(this.label2);
     this.groupBox3.Controls.Add(this.learningRateBox);
     this.groupBox3.Controls.Add(this.label1);
     this.groupBox3.Controls.Add(this.label8);
     this.groupBox3.Controls.Add(this.iterationsBox);
     this.groupBox3.Controls.Add(this.label10);
     this.groupBox3.Controls.Add(this.label9);
     this.groupBox3.Location = new System.Drawing.Point(510, 10);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(195, 195);
     this.groupBox3.TabIndex = 4;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Settings";
     //
     // cbNguyenWidrow
     //
     this.cbNguyenWidrow.AutoSize = true;
     this.cbNguyenWidrow.Location = new System.Drawing.Point(13, 120);
     this.cbNguyenWidrow.Name     = "cbNguyenWidrow";
     this.cbNguyenWidrow.Size     = new System.Drawing.Size(166, 17);
     this.cbNguyenWidrow.TabIndex = 26;
     this.cbNguyenWidrow.Text     = "Use Nguyen-Widrow Weights";
     this.cbNguyenWidrow.UseVisualStyleBackColor = true;
     //
     // neuronsBox
     //
     this.neuronsBox.Location = new System.Drawing.Point(124, 71);
     this.neuronsBox.Name     = "neuronsBox";
     this.neuronsBox.Size     = new System.Drawing.Size(60, 20);
     this.neuronsBox.TabIndex = 7;
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(9, 73);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(115, 15);
     this.label4.TabIndex = 6;
     this.label4.Text     = "Neurons in first layer:";
     //
     // alphaBox
     //
     this.alphaBox.Location = new System.Drawing.Point(124, 46);
     this.alphaBox.Name     = "alphaBox";
     this.alphaBox.Size     = new System.Drawing.Size(60, 20);
     this.alphaBox.TabIndex = 5;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(9, 48);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(120, 15);
     this.label2.TabIndex = 4;
     this.label2.Text     = "Sigmoid\'s alpha value:";
     //
     // learningRateBox
     //
     this.learningRateBox.Location = new System.Drawing.Point(125, 20);
     this.learningRateBox.Name     = "learningRateBox";
     this.learningRateBox.Size     = new System.Drawing.Size(60, 20);
     this.learningRateBox.TabIndex = 1;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(10, 22);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(78, 14);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Learning rate:";
     //
     // label8
     //
     this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.label8.Location    = new System.Drawing.Point(10, 147);
     this.label8.Name        = "label8";
     this.label8.Size        = new System.Drawing.Size(175, 2);
     this.label8.TabIndex    = 22;
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(125, 155);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.Size     = new System.Drawing.Size(60, 20);
     this.iterationsBox.TabIndex = 9;
     //
     // label10
     //
     this.label10.Font     = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label10.Location = new System.Drawing.Point(126, 175);
     this.label10.Name     = "label10";
     this.label10.Size     = new System.Drawing.Size(58, 14);
     this.label10.TabIndex = 25;
     this.label10.Text     = "( 0 - inifinity )";
     //
     // label9
     //
     this.label9.Location = new System.Drawing.Point(10, 157);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(70, 16);
     this.label9.TabIndex = 8;
     this.label9.Text     = "Iterations:";
     //
     // groupBox4
     //
     this.groupBox4.Controls.Add(this.currentErrorBox);
     this.groupBox4.Controls.Add(this.label3);
     this.groupBox4.Controls.Add(this.currentIterationBox);
     this.groupBox4.Controls.Add(this.label5);
     this.groupBox4.Location = new System.Drawing.Point(510, 210);
     this.groupBox4.Name     = "groupBox4";
     this.groupBox4.Size     = new System.Drawing.Size(195, 75);
     this.groupBox4.TabIndex = 6;
     this.groupBox4.TabStop  = false;
     this.groupBox4.Text     = "Current iteration";
     //
     // currentErrorBox
     //
     this.currentErrorBox.Location = new System.Drawing.Point(125, 45);
     this.currentErrorBox.Name     = "currentErrorBox";
     this.currentErrorBox.ReadOnly = true;
     this.currentErrorBox.Size     = new System.Drawing.Size(60, 20);
     this.currentErrorBox.TabIndex = 3;
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(10, 47);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(70, 16);
     this.label3.TabIndex = 2;
     this.label3.Text     = "Error:";
     //
     // currentIterationBox
     //
     this.currentIterationBox.Location = new System.Drawing.Point(125, 20);
     this.currentIterationBox.Name     = "currentIterationBox";
     this.currentIterationBox.ReadOnly = true;
     this.currentIterationBox.Size     = new System.Drawing.Size(60, 20);
     this.currentIterationBox.TabIndex = 1;
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(10, 22);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(70, 16);
     this.label5.TabIndex = 0;
     this.label5.Text     = "Iteration:";
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(630, 305);
     this.stopButton.Name     = "stopButton";
     this.stopButton.Size     = new System.Drawing.Size(75, 23);
     this.stopButton.TabIndex = 8;
     this.stopButton.Text     = "S&top";
     this.stopButton.Click   += new System.EventHandler(this.stopButton_Click);
     //
     // startButton
     //
     this.startButton.Enabled  = false;
     this.startButton.Location = new System.Drawing.Point(540, 305);
     this.startButton.Name     = "startButton";
     this.startButton.Size     = new System.Drawing.Size(75, 23);
     this.startButton.TabIndex = 7;
     this.startButton.Text     = "&Start";
     this.startButton.Click   += new System.EventHandler(this.startButton_Click);
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(714, 338);
     this.Controls.Add(this.stopButton);
     this.Controls.Add(this.startButton);
     this.Controls.Add(this.groupBox4);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.Name            = "MainForm";
     this.Text            = "Approximation using Multi-Layer Neural Network (Resilient Backpropagation)";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox3.ResumeLayout(false);
     this.groupBox3.PerformLayout();
     this.groupBox4.ResumeLayout(false);
     this.groupBox4.PerformLayout();
     this.ResumeLayout(false);
 }
Exemplo n.º 16
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.groupBox1           = new System.Windows.Forms.GroupBox();
     this.generateMapButton   = new System.Windows.Forms.Button();
     this.citiesCountBox      = new System.Windows.Forms.TextBox();
     this.label1              = new System.Windows.Forms.Label();
     this.mapControl          = new AForge.Controls.Chart();
     this.groupBox2           = new System.Windows.Forms.GroupBox();
     this.greedyCrossoverBox  = new System.Windows.Forms.CheckBox();
     this.label5              = new System.Windows.Forms.Label();
     this.iterationsBox       = new System.Windows.Forms.TextBox();
     this.label4              = new System.Windows.Forms.Label();
     this.selectionBox        = new System.Windows.Forms.ComboBox();
     this.label3              = new System.Windows.Forms.Label();
     this.populationSizeBox   = new System.Windows.Forms.TextBox();
     this.label2              = new System.Windows.Forms.Label();
     this.groupBox3           = new System.Windows.Forms.GroupBox();
     this.pathLengthBox       = new System.Windows.Forms.TextBox();
     this.label7              = new System.Windows.Forms.Label();
     this.currentIterationBox = new System.Windows.Forms.TextBox();
     this.label6              = new System.Windows.Forms.Label();
     this.startButton         = new System.Windows.Forms.Button();
     this.stopButton          = new System.Windows.Forms.Button();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.generateMapButton);
     this.groupBox1.Controls.Add(this.citiesCountBox);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.mapControl);
     this.groupBox1.Location = new System.Drawing.Point(10, 10);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(300, 340);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Map";
     //
     // generateMapButton
     //
     this.generateMapButton.Location = new System.Drawing.Point(110, 309);
     this.generateMapButton.Name     = "generateMapButton";
     this.generateMapButton.Size     = new System.Drawing.Size(75, 22);
     this.generateMapButton.TabIndex = 3;
     this.generateMapButton.Text     = "&Generate";
     this.generateMapButton.Click   += new System.EventHandler(this.generateMapButton_Click);
     //
     // citiesCountBox
     //
     this.citiesCountBox.Location = new System.Drawing.Point(50, 310);
     this.citiesCountBox.Name     = "citiesCountBox";
     this.citiesCountBox.Size     = new System.Drawing.Size(50, 20);
     this.citiesCountBox.TabIndex = 2;
     this.citiesCountBox.Text     = "";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(10, 312);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(40, 16);
     this.label1.TabIndex = 1;
     this.label1.Text     = "Cities:";
     //
     // mapControl
     //
     this.mapControl.Location = new System.Drawing.Point(10, 20);
     this.mapControl.Name     = "mapControl";
     this.mapControl.Size     = new System.Drawing.Size(280, 280);
     this.mapControl.TabIndex = 0;
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.greedyCrossoverBox);
     this.groupBox2.Controls.Add(this.label5);
     this.groupBox2.Controls.Add(this.iterationsBox);
     this.groupBox2.Controls.Add(this.label4);
     this.groupBox2.Controls.Add(this.selectionBox);
     this.groupBox2.Controls.Add(this.label3);
     this.groupBox2.Controls.Add(this.populationSizeBox);
     this.groupBox2.Controls.Add(this.label2);
     this.groupBox2.Location = new System.Drawing.Point(320, 10);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(185, 225);
     this.groupBox2.TabIndex = 1;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Settings";
     //
     // greedyCrossoverBox
     //
     this.greedyCrossoverBox.Location = new System.Drawing.Point(10, 70);
     this.greedyCrossoverBox.Name     = "greedyCrossoverBox";
     this.greedyCrossoverBox.Size     = new System.Drawing.Size(120, 24);
     this.greedyCrossoverBox.TabIndex = 7;
     this.greedyCrossoverBox.Text     = "Greedy crossover";
     //
     // label5
     //
     this.label5.Font     = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label5.Location = new System.Drawing.Point(125, 200);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(58, 15);
     this.label5.TabIndex = 6;
     this.label5.Text     = "( 0 - inifinity )";
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(125, 180);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.Size     = new System.Drawing.Size(50, 20);
     this.iterationsBox.TabIndex = 5;
     this.iterationsBox.Text     = "";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(10, 182);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(60, 16);
     this.label4.TabIndex = 4;
     this.label4.Text     = "Iterations:";
     //
     // selectionBox
     //
     this.selectionBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.selectionBox.Items.AddRange(new object[] {
         "Elite",
         "Rank",
         "Roulette"
     });
     this.selectionBox.Location = new System.Drawing.Point(110, 45);
     this.selectionBox.Name     = "selectionBox";
     this.selectionBox.Size     = new System.Drawing.Size(65, 21);
     this.selectionBox.TabIndex = 3;
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(10, 47);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(100, 16);
     this.label3.TabIndex = 2;
     this.label3.Text     = "Selection method:";
     //
     // populationSizeBox
     //
     this.populationSizeBox.Location = new System.Drawing.Point(125, 20);
     this.populationSizeBox.Name     = "populationSizeBox";
     this.populationSizeBox.Size     = new System.Drawing.Size(50, 20);
     this.populationSizeBox.TabIndex = 1;
     this.populationSizeBox.Text     = "";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(10, 22);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(90, 16);
     this.label2.TabIndex = 0;
     this.label2.Text     = "Population size:";
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.pathLengthBox);
     this.groupBox3.Controls.Add(this.label7);
     this.groupBox3.Controls.Add(this.currentIterationBox);
     this.groupBox3.Controls.Add(this.label6);
     this.groupBox3.Location = new System.Drawing.Point(320, 240);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(185, 75);
     this.groupBox3.TabIndex = 2;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Current iteration";
     //
     // pathLengthBox
     //
     this.pathLengthBox.Location = new System.Drawing.Point(125, 45);
     this.pathLengthBox.Name     = "pathLengthBox";
     this.pathLengthBox.ReadOnly = true;
     this.pathLengthBox.Size     = new System.Drawing.Size(50, 20);
     this.pathLengthBox.TabIndex = 3;
     this.pathLengthBox.Text     = "";
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(10, 47);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(80, 16);
     this.label7.TabIndex = 2;
     this.label7.Text     = "Path length:";
     //
     // currentIterationBox
     //
     this.currentIterationBox.Location = new System.Drawing.Point(125, 20);
     this.currentIterationBox.Name     = "currentIterationBox";
     this.currentIterationBox.ReadOnly = true;
     this.currentIterationBox.Size     = new System.Drawing.Size(50, 20);
     this.currentIterationBox.TabIndex = 1;
     this.currentIterationBox.Text     = "";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(10, 22);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(50, 16);
     this.label6.TabIndex = 0;
     this.label6.Text     = "Iteration:";
     //
     // startButton
     //
     this.startButton.Location = new System.Drawing.Point(340, 325);
     this.startButton.Name     = "startButton";
     this.startButton.TabIndex = 3;
     this.startButton.Text     = "&Start";
     this.startButton.Click   += new System.EventHandler(this.startButton_Click);
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(430, 325);
     this.stopButton.Name     = "stopButton";
     this.stopButton.TabIndex = 4;
     this.stopButton.Text     = "S&top";
     this.stopButton.Click   += new System.EventHandler(this.stopButton_Click);
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(514, 360);
     this.Controls.Add(this.stopButton);
     this.Controls.Add(this.startButton);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.Name            = "MainForm";
     this.Text            = "Traveling Salesman Problem using Genetic Algorithms";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox3.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 17
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.groupBox1           = new System.Windows.Forms.GroupBox();
     this.generateMapButton   = new System.Windows.Forms.Button();
     this.citiesCountBox      = new System.Windows.Forms.TextBox();
     this.label1              = new System.Windows.Forms.Label();
     this.groupBox2           = new System.Windows.Forms.GroupBox();
     this.stopButton          = new System.Windows.Forms.Button();
     this.startButton         = new System.Windows.Forms.Button();
     this.currentIterationBox = new System.Windows.Forms.TextBox();
     this.label8              = new System.Windows.Forms.Label();
     this.label7              = new System.Windows.Forms.Label();
     this.rateBox             = new System.Windows.Forms.TextBox();
     this.label5              = new System.Windows.Forms.Label();
     this.iterationsBox       = new System.Windows.Forms.TextBox();
     this.label6              = new System.Windows.Forms.Label();
     this.label3              = new System.Windows.Forms.Label();
     this.neuronsBox          = new System.Windows.Forms.TextBox();
     this.label2              = new System.Windows.Forms.Label();
     this.label4              = new System.Windows.Forms.Label();
     this.radiusBox           = new System.Windows.Forms.TextBox();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     this.chart = new AForge.Controls.Chart();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.generateMapButton);
     this.groupBox1.Controls.Add(this.citiesCountBox);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.chart);
     this.groupBox1.Location = new System.Drawing.Point(10, 10);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(300, 340);
     this.groupBox1.TabIndex = 1;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Map";
     //
     // generateMapButton
     //
     this.generateMapButton.Location = new System.Drawing.Point(110, 309);
     this.generateMapButton.Name     = "generateMapButton";
     this.generateMapButton.Size     = new System.Drawing.Size(75, 22);
     this.generateMapButton.TabIndex = 3;
     this.generateMapButton.Text     = "&Generate";
     this.generateMapButton.Click   += new System.EventHandler(this.generateMapButton_Click);
     //
     // citiesCountBox
     //
     this.citiesCountBox.Location = new System.Drawing.Point(50, 310);
     this.citiesCountBox.Name     = "citiesCountBox";
     this.citiesCountBox.Size     = new System.Drawing.Size(50, 20);
     this.citiesCountBox.TabIndex = 2;
     this.citiesCountBox.Text     = "";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(10, 312);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(40, 16);
     this.label1.TabIndex = 1;
     this.label1.Text     = "Cities:";
     //
     // chart
     //
     this.chart.Location = new System.Drawing.Point(10, 20);
     this.chart.Name     = "chart";
     this.chart.Size     = new System.Drawing.Size(280, 280);
     this.chart.TabIndex = 4;
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.radiusBox);
     this.groupBox2.Controls.Add(this.label4);
     this.groupBox2.Controls.Add(this.stopButton);
     this.groupBox2.Controls.Add(this.startButton);
     this.groupBox2.Controls.Add(this.currentIterationBox);
     this.groupBox2.Controls.Add(this.label8);
     this.groupBox2.Controls.Add(this.label7);
     this.groupBox2.Controls.Add(this.rateBox);
     this.groupBox2.Controls.Add(this.label5);
     this.groupBox2.Controls.Add(this.iterationsBox);
     this.groupBox2.Controls.Add(this.label6);
     this.groupBox2.Controls.Add(this.label3);
     this.groupBox2.Controls.Add(this.neuronsBox);
     this.groupBox2.Controls.Add(this.label2);
     this.groupBox2.Location = new System.Drawing.Point(320, 10);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(180, 340);
     this.groupBox2.TabIndex = 2;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Neural Network";
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(95, 305);
     this.stopButton.Name     = "stopButton";
     this.stopButton.TabIndex = 23;
     this.stopButton.Text     = "S&top";
     this.stopButton.Click   += new System.EventHandler(this.stopButton_Click);
     //
     // startButton
     //
     this.startButton.Location = new System.Drawing.Point(10, 305);
     this.startButton.Name     = "startButton";
     this.startButton.TabIndex = 22;
     this.startButton.Text     = "&Start";
     this.startButton.Click   += new System.EventHandler(this.startButton_Click);
     //
     // currentIterationBox
     //
     this.currentIterationBox.Location = new System.Drawing.Point(110, 150);
     this.currentIterationBox.Name     = "currentIterationBox";
     this.currentIterationBox.ReadOnly = true;
     this.currentIterationBox.Size     = new System.Drawing.Size(60, 20);
     this.currentIterationBox.TabIndex = 21;
     this.currentIterationBox.Text     = "";
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(10, 152);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(100, 16);
     this.label8.TabIndex = 20;
     this.label8.Text     = "Curren iteration:";
     //
     // label7
     //
     this.label7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label7.Location    = new System.Drawing.Point(10, 139);
     this.label7.Name        = "label7";
     this.label7.Size        = new System.Drawing.Size(160, 2);
     this.label7.TabIndex    = 19;
     //
     // rateBox
     //
     this.rateBox.Location = new System.Drawing.Point(110, 85);
     this.rateBox.Name     = "rateBox";
     this.rateBox.Size     = new System.Drawing.Size(60, 20);
     this.rateBox.TabIndex = 18;
     this.rateBox.Text     = "";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(10, 87);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(100, 16);
     this.label5.TabIndex = 17;
     this.label5.Text     = "Initial learning rate:";
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(110, 60);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.Size     = new System.Drawing.Size(60, 20);
     this.iterationsBox.TabIndex = 16;
     this.iterationsBox.Text     = "";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(10, 62);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(60, 16);
     this.label6.TabIndex = 15;
     this.label6.Text     = "Iteraions:";
     //
     // label3
     //
     this.label3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label3.Location    = new System.Drawing.Point(10, 48);
     this.label3.Name        = "label3";
     this.label3.Size        = new System.Drawing.Size(160, 2);
     this.label3.TabIndex    = 4;
     //
     // neuronsBox
     //
     this.neuronsBox.Location = new System.Drawing.Point(110, 20);
     this.neuronsBox.Name     = "neuronsBox";
     this.neuronsBox.Size     = new System.Drawing.Size(60, 20);
     this.neuronsBox.TabIndex = 1;
     this.neuronsBox.Text     = "";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(10, 22);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(60, 16);
     this.label2.TabIndex = 0;
     this.label2.Text     = "Neurons:";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(10, 112);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(100, 16);
     this.label4.TabIndex = 24;
     this.label4.Text     = "Learning radius:";
     //
     // radiusBox
     //
     this.radiusBox.Location = new System.Drawing.Point(110, 110);
     this.radiusBox.Name     = "radiusBox";
     this.radiusBox.Size     = new System.Drawing.Size(60, 20);
     this.radiusBox.TabIndex = 25;
     this.radiusBox.Text     = "";
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(509, 360);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.Name            = "MainForm";
     this.Text            = "Traveling Salesman Problem using Elastic Net";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 18
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.groupBox1       = new System.Windows.Forms.GroupBox();
     this.loadButton      = new System.Windows.Forms.Button();
     this.chart           = new AForge.Controls.Chart();
     this.openFileDialog  = new System.Windows.Forms.OpenFileDialog();
     this.groupBox2       = new System.Windows.Forms.GroupBox();
     this.weightsList     = new System.Windows.Forms.ListView();
     this.columnHeader1   = new System.Windows.Forms.ColumnHeader();
     this.columnHeader2   = new System.Windows.Forms.ColumnHeader();
     this.columnHeader3   = new System.Windows.Forms.ColumnHeader();
     this.label4          = new System.Windows.Forms.Label();
     this.label3          = new System.Windows.Forms.Label();
     this.saveFilesCheck  = new System.Windows.Forms.CheckBox();
     this.stopButton      = new System.Windows.Forms.Button();
     this.startButton     = new System.Windows.Forms.Button();
     this.iterationsBox   = new System.Windows.Forms.TextBox();
     this.label2          = new System.Windows.Forms.Label();
     this.learningRateBox = new System.Windows.Forms.TextBox();
     this.label1          = new System.Windows.Forms.Label();
     this.groupBox3       = new System.Windows.Forms.GroupBox();
     this.errorChart      = new AForge.Controls.Chart();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.loadButton,
         this.chart
     });
     this.groupBox1.Location = new System.Drawing.Point(10, 10);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(220, 255);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Data";
     //
     // loadButton
     //
     this.loadButton.Location = new System.Drawing.Point(10, 225);
     this.loadButton.Name     = "loadButton";
     this.loadButton.TabIndex = 1;
     this.loadButton.Text     = "&Load";
     this.loadButton.Click   += new System.EventHandler(this.loadButton_Click);
     //
     // chart
     //
     this.chart.Location = new System.Drawing.Point(10, 20);
     this.chart.Name     = "chart";
     this.chart.Size     = new System.Drawing.Size(200, 200);
     this.chart.TabIndex = 0;
     //
     // openFileDialog
     //
     this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
     this.openFileDialog.Title  = "Select data file";
     //
     // groupBox2
     //
     this.groupBox2.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.weightsList,
         this.label4,
         this.label3,
         this.saveFilesCheck,
         this.stopButton,
         this.startButton,
         this.iterationsBox,
         this.label2,
         this.learningRateBox,
         this.label1
     });
     this.groupBox2.Location = new System.Drawing.Point(240, 10);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(240, 410);
     this.groupBox2.TabIndex = 1;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Training";
     //
     // weightsList
     //
     this.weightsList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.columnHeader1,
         this.columnHeader2,
         this.columnHeader3
     });
     this.weightsList.FullRowSelect = true;
     this.weightsList.GridLines     = true;
     this.weightsList.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.weightsList.Location      = new System.Drawing.Point(10, 130);
     this.weightsList.Name          = "weightsList";
     this.weightsList.Size          = new System.Drawing.Size(220, 270);
     this.weightsList.TabIndex      = 14;
     this.weightsList.View          = System.Windows.Forms.View.Details;
     //
     // columnHeader1
     //
     this.columnHeader1.Text = "Neuron";
     //
     // columnHeader2
     //
     this.columnHeader2.Text = "Weigh";
     //
     // columnHeader3
     //
     this.columnHeader3.Text  = "Value";
     this.columnHeader3.Width = 65;
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(10, 110);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(55, 16);
     this.label4.TabIndex = 13;
     this.label4.Text     = "Weights:";
     //
     // label3
     //
     this.label3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label3.Location    = new System.Drawing.Point(10, 100);
     this.label3.Name        = "label3";
     this.label3.Size        = new System.Drawing.Size(220, 2);
     this.label3.TabIndex    = 12;
     //
     // saveFilesCheck
     //
     this.saveFilesCheck.Location = new System.Drawing.Point(10, 80);
     this.saveFilesCheck.Name     = "saveFilesCheck";
     this.saveFilesCheck.Size     = new System.Drawing.Size(150, 16);
     this.saveFilesCheck.TabIndex = 11;
     this.saveFilesCheck.Text     = "Save weights and errors to files";
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(155, 49);
     this.stopButton.Name     = "stopButton";
     this.stopButton.TabIndex = 10;
     this.stopButton.Text     = "S&top";
     this.stopButton.Click   += new System.EventHandler(this.stopButton_Click);
     //
     // startButton
     //
     this.startButton.Enabled  = false;
     this.startButton.Location = new System.Drawing.Point(155, 19);
     this.startButton.Name     = "startButton";
     this.startButton.TabIndex = 9;
     this.startButton.Text     = "&Start";
     this.startButton.Click   += new System.EventHandler(this.startButton_Click);
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(90, 50);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.ReadOnly = true;
     this.iterationsBox.Size     = new System.Drawing.Size(50, 20);
     this.iterationsBox.TabIndex = 3;
     this.iterationsBox.Text     = "";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(10, 52);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(55, 13);
     this.label2.TabIndex = 2;
     this.label2.Text     = "Iterations:";
     //
     // learningRateBox
     //
     this.learningRateBox.Location = new System.Drawing.Point(90, 20);
     this.learningRateBox.Name     = "learningRateBox";
     this.learningRateBox.Size     = new System.Drawing.Size(50, 20);
     this.learningRateBox.TabIndex = 1;
     this.learningRateBox.Text     = "";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(10, 22);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(80, 17);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Learning rate:";
     //
     // groupBox3
     //
     this.groupBox3.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.errorChart
     });
     this.groupBox3.Location = new System.Drawing.Point(10, 270);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(220, 150);
     this.groupBox3.TabIndex = 2;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Error\'s dynamics";
     //
     // errorChart
     //
     this.errorChart.Location = new System.Drawing.Point(10, 20);
     this.errorChart.Name     = "errorChart";
     this.errorChart.Size     = new System.Drawing.Size(200, 120);
     this.errorChart.TabIndex = 0;
     this.errorChart.Text     = "chart1";
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(489, 430);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.groupBox3,
         this.groupBox2,
         this.groupBox1
     });
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.Name            = "MainForm";
     this.Text            = "One-Layer Perceptron Classifier";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox3.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 19
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DeltaRuleForm));
     this.groupBox1            = new System.Windows.Forms.GroupBox();
     this.classesBox           = new System.Windows.Forms.TextBox();
     this.label10              = new System.Windows.Forms.Label();
     this.dataList             = new System.Windows.Forms.ListView();
     this.loadButton           = new System.Windows.Forms.Button();
     this.openFileDialog       = new System.Windows.Forms.OpenFileDialog();
     this.groupBox2            = new System.Windows.Forms.GroupBox();
     this.currentErrorBox      = new System.Windows.Forms.TextBox();
     this.label11              = new System.Windows.Forms.Label();
     this.label9               = new System.Windows.Forms.Label();
     this.currentIterationBox  = new System.Windows.Forms.TextBox();
     this.label8               = new System.Windows.Forms.Label();
     this.label7               = new System.Windows.Forms.Label();
     this.errorLimitCheck      = new System.Windows.Forms.CheckBox();
     this.oneNeuronForTwoCheck = new System.Windows.Forms.CheckBox();
     this.neuronsBox           = new System.Windows.Forms.TextBox();
     this.label6               = new System.Windows.Forms.Label();
     this.label5               = new System.Windows.Forms.Label();
     this.iterationsBox        = new System.Windows.Forms.TextBox();
     this.label4               = new System.Windows.Forms.Label();
     this.errorLimitBox        = new System.Windows.Forms.TextBox();
     this.label3               = new System.Windows.Forms.Label();
     this.alphaBox             = new System.Windows.Forms.TextBox();
     this.label2               = new System.Windows.Forms.Label();
     this.label1               = new System.Windows.Forms.Label();
     this.learningRateBox      = new System.Windows.Forms.TextBox();
     this.stopButton           = new System.Windows.Forms.Button();
     this.startButton          = new System.Windows.Forms.Button();
     this.groupBox3            = new System.Windows.Forms.GroupBox();
     this.saveFilesCheck       = new System.Windows.Forms.CheckBox();
     this.label13              = new System.Windows.Forms.Label();
     this.weightsList          = new System.Windows.Forms.ListView();
     this.columnHeader1        = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader2        = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader3        = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.errorChart           = new AForge.Controls.Chart();
     this.label12              = new System.Windows.Forms.Label();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.classesBox);
     this.groupBox1.Controls.Add(this.label10);
     this.groupBox1.Controls.Add(this.dataList);
     this.groupBox1.Controls.Add(this.loadButton);
     this.groupBox1.Location = new System.Drawing.Point(16, 15);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(368, 482);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Data";
     //
     // classesBox
     //
     this.classesBox.Location = new System.Drawing.Point(304, 434);
     this.classesBox.Name     = "classesBox";
     this.classesBox.ReadOnly = true;
     this.classesBox.Size     = new System.Drawing.Size(48, 26);
     this.classesBox.TabIndex = 3;
     //
     // label10
     //
     this.label10.Location = new System.Drawing.Point(224, 437);
     this.label10.Name     = "label10";
     this.label10.Size     = new System.Drawing.Size(80, 18);
     this.label10.TabIndex = 2;
     this.label10.Text     = "Classes:";
     //
     // dataList
     //
     this.dataList.FullRowSelect = true;
     this.dataList.GridLines     = true;
     this.dataList.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.dataList.Location      = new System.Drawing.Point(16, 29);
     this.dataList.Name          = "dataList";
     this.dataList.Size          = new System.Drawing.Size(336, 395);
     this.dataList.TabIndex      = 0;
     this.dataList.UseCompatibleStateImageBehavior = false;
     this.dataList.View = System.Windows.Forms.View.Details;
     //
     // loadButton
     //
     this.loadButton.Location = new System.Drawing.Point(16, 434);
     this.loadButton.Name     = "loadButton";
     this.loadButton.Size     = new System.Drawing.Size(120, 34);
     this.loadButton.TabIndex = 1;
     this.loadButton.Text     = "&Load";
     this.loadButton.Click   += new System.EventHandler(this.loadButton_Click);
     //
     // openFileDialog
     //
     this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
     this.openFileDialog.Title  = "Select data file";
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.currentErrorBox);
     this.groupBox2.Controls.Add(this.label11);
     this.groupBox2.Controls.Add(this.label9);
     this.groupBox2.Controls.Add(this.currentIterationBox);
     this.groupBox2.Controls.Add(this.label8);
     this.groupBox2.Controls.Add(this.label7);
     this.groupBox2.Controls.Add(this.errorLimitCheck);
     this.groupBox2.Controls.Add(this.oneNeuronForTwoCheck);
     this.groupBox2.Controls.Add(this.neuronsBox);
     this.groupBox2.Controls.Add(this.label6);
     this.groupBox2.Controls.Add(this.label5);
     this.groupBox2.Controls.Add(this.iterationsBox);
     this.groupBox2.Controls.Add(this.label4);
     this.groupBox2.Controls.Add(this.errorLimitBox);
     this.groupBox2.Controls.Add(this.label3);
     this.groupBox2.Controls.Add(this.alphaBox);
     this.groupBox2.Controls.Add(this.label2);
     this.groupBox2.Controls.Add(this.label1);
     this.groupBox2.Controls.Add(this.learningRateBox);
     this.groupBox2.Controls.Add(this.stopButton);
     this.groupBox2.Controls.Add(this.startButton);
     this.groupBox2.Location = new System.Drawing.Point(400, 15);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(296, 482);
     this.groupBox2.TabIndex = 1;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Training";
     //
     // currentErrorBox
     //
     this.currentErrorBox.Location = new System.Drawing.Point(200, 373);
     this.currentErrorBox.Name     = "currentErrorBox";
     this.currentErrorBox.ReadOnly = true;
     this.currentErrorBox.Size     = new System.Drawing.Size(80, 26);
     this.currentErrorBox.TabIndex = 20;
     //
     // label11
     //
     this.label11.Location = new System.Drawing.Point(16, 376);
     this.label11.Name     = "label11";
     this.label11.Size     = new System.Drawing.Size(194, 20);
     this.label11.TabIndex = 19;
     this.label11.Text     = "Current average error:";
     //
     // label9
     //
     this.label9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label9.Location    = new System.Drawing.Point(16, 414);
     this.label9.Name        = "label9";
     this.label9.Size        = new System.Drawing.Size(264, 3);
     this.label9.TabIndex    = 18;
     //
     // currentIterationBox
     //
     this.currentIterationBox.Location = new System.Drawing.Point(200, 336);
     this.currentIterationBox.Name     = "currentIterationBox";
     this.currentIterationBox.ReadOnly = true;
     this.currentIterationBox.Size     = new System.Drawing.Size(80, 26);
     this.currentIterationBox.TabIndex = 17;
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(16, 339);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(157, 23);
     this.label8.TabIndex = 16;
     this.label8.Text     = "Current iteration:";
     //
     // label7
     //
     this.label7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label7.Location    = new System.Drawing.Point(16, 322);
     this.label7.Name        = "label7";
     this.label7.Size        = new System.Drawing.Size(264, 2);
     this.label7.TabIndex    = 15;
     //
     // errorLimitCheck
     //
     this.errorLimitCheck.Location = new System.Drawing.Point(16, 270);
     this.errorLimitCheck.Name     = "errorLimitCheck";
     this.errorLimitCheck.Size     = new System.Drawing.Size(251, 44);
     this.errorLimitCheck.TabIndex = 14;
     this.errorLimitCheck.Text     = "Use error limit (checked) or iterations limit";
     //
     // oneNeuronForTwoCheck
     //
     this.oneNeuronForTwoCheck.Enabled         = false;
     this.oneNeuronForTwoCheck.Location        = new System.Drawing.Point(16, 241);
     this.oneNeuronForTwoCheck.Name            = "oneNeuronForTwoCheck";
     this.oneNeuronForTwoCheck.Size            = new System.Drawing.Size(269, 22);
     this.oneNeuronForTwoCheck.TabIndex        = 13;
     this.oneNeuronForTwoCheck.Text            = "Use 1 neuron for 2 classes";
     this.oneNeuronForTwoCheck.CheckedChanged += new System.EventHandler(this.oneNeuronForTwoCheck_CheckedChanged);
     //
     // neuronsBox
     //
     this.neuronsBox.Location = new System.Drawing.Point(200, 197);
     this.neuronsBox.Name     = "neuronsBox";
     this.neuronsBox.ReadOnly = true;
     this.neuronsBox.Size     = new System.Drawing.Size(80, 26);
     this.neuronsBox.TabIndex = 12;
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(16, 200);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(94, 18);
     this.label6.TabIndex = 11;
     this.label6.Text     = "Neurons:";
     //
     // label5
     //
     this.label5.Font     = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.label5.Location = new System.Drawing.Point(200, 168);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(93, 25);
     this.label5.TabIndex = 10;
     this.label5.Text     = "( 0 - inifinity )";
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(200, 139);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.Size     = new System.Drawing.Size(80, 26);
     this.iterationsBox.TabIndex = 9;
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(16, 142);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(144, 19);
     this.label4.TabIndex = 8;
     this.label4.Text     = "Iterations limit:";
     //
     // errorLimitBox
     //
     this.errorLimitBox.Location = new System.Drawing.Point(200, 102);
     this.errorLimitBox.Name     = "errorLimitBox";
     this.errorLimitBox.Size     = new System.Drawing.Size(80, 26);
     this.errorLimitBox.TabIndex = 7;
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(16, 105);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(176, 22);
     this.label3.TabIndex = 6;
     this.label3.Text     = "Learning error limit:";
     //
     // alphaBox
     //
     this.alphaBox.Location = new System.Drawing.Point(200, 66);
     this.alphaBox.Name     = "alphaBox";
     this.alphaBox.Size     = new System.Drawing.Size(80, 26);
     this.alphaBox.TabIndex = 5;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 69);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(192, 22);
     this.label2.TabIndex = 4;
     this.label2.Text     = "Sigmoid\'s alpha value:";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(16, 32);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(120, 24);
     this.label1.TabIndex = 2;
     this.label1.Text     = "Learning rate:";
     //
     // learningRateBox
     //
     this.learningRateBox.Location = new System.Drawing.Point(200, 29);
     this.learningRateBox.Name     = "learningRateBox";
     this.learningRateBox.Size     = new System.Drawing.Size(80, 26);
     this.learningRateBox.TabIndex = 3;
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(160, 434);
     this.stopButton.Name     = "stopButton";
     this.stopButton.Size     = new System.Drawing.Size(120, 34);
     this.stopButton.TabIndex = 6;
     this.stopButton.Text     = "S&top";
     this.stopButton.Click   += new System.EventHandler(this.stopButton_Click);
     //
     // startButton
     //
     this.startButton.Enabled  = false;
     this.startButton.Location = new System.Drawing.Point(16, 434);
     this.startButton.Name     = "startButton";
     this.startButton.Size     = new System.Drawing.Size(120, 34);
     this.startButton.TabIndex = 5;
     this.startButton.Text     = "&Start";
     this.startButton.Click   += new System.EventHandler(this.startButton_Click);
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.saveFilesCheck);
     this.groupBox3.Controls.Add(this.label13);
     this.groupBox3.Controls.Add(this.weightsList);
     this.groupBox3.Controls.Add(this.errorChart);
     this.groupBox3.Controls.Add(this.label12);
     this.groupBox3.Location = new System.Drawing.Point(712, 15);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(352, 482);
     this.groupBox3.TabIndex = 2;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Solution";
     //
     // saveFilesCheck
     //
     this.saveFilesCheck.Location = new System.Drawing.Point(16, 446);
     this.saveFilesCheck.Name     = "saveFilesCheck";
     this.saveFilesCheck.Size     = new System.Drawing.Size(312, 22);
     this.saveFilesCheck.TabIndex = 4;
     this.saveFilesCheck.Text     = "Save weights and errors to files";
     //
     // label13
     //
     this.label13.Location = new System.Drawing.Point(16, 248);
     this.label13.Name     = "label13";
     this.label13.Size     = new System.Drawing.Size(160, 18);
     this.label13.TabIndex = 3;
     this.label13.Text     = "Error\'s dynamics:";
     //
     // weightsList
     //
     this.weightsList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.columnHeader1,
         this.columnHeader2,
         this.columnHeader3
     });
     this.weightsList.FullRowSelect = true;
     this.weightsList.GridLines     = true;
     this.weightsList.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.weightsList.Location      = new System.Drawing.Point(16, 51);
     this.weightsList.Name          = "weightsList";
     this.weightsList.Size          = new System.Drawing.Size(320, 190);
     this.weightsList.TabIndex      = 2;
     this.weightsList.UseCompatibleStateImageBehavior = false;
     this.weightsList.View = System.Windows.Forms.View.Details;
     //
     // columnHeader1
     //
     this.columnHeader1.Text = "Neuron";
     //
     // columnHeader2
     //
     this.columnHeader2.Text = "Weight";
     //
     // columnHeader3
     //
     this.columnHeader3.Text = "Value";
     //
     // errorChart
     //
     this.errorChart.Location = new System.Drawing.Point(16, 270);
     this.errorChart.Name     = "errorChart";
     this.errorChart.RangeX   = ((AForge.Range)(resources.GetObject("errorChart.RangeX")));
     this.errorChart.RangeY   = ((AForge.Range)(resources.GetObject("errorChart.RangeY")));
     this.errorChart.Size     = new System.Drawing.Size(320, 161);
     this.errorChart.TabIndex = 1;
     this.errorChart.Text     = "chart1";
     //
     // label12
     //
     this.label12.Location = new System.Drawing.Point(16, 29);
     this.label12.Name     = "label12";
     this.label12.Size     = new System.Drawing.Size(160, 22);
     this.label12.TabIndex = 0;
     this.label12.Text     = "Network weights:";
     //
     // DeltaRuleForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
     this.ClientSize          = new System.Drawing.Size(1076, 512);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.Name            = "DeltaRuleForm";
     this.Text            = "Classifier using Delta Rule Learning";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     this.groupBox3.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 20
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.groupBox1           = new System.Windows.Forms.GroupBox();
     this.stopButton          = new System.Windows.Forms.Button();
     this.startButton         = new System.Windows.Forms.Button();
     this.label5              = new System.Windows.Forms.Label();
     this.currentErrorBox     = new System.Windows.Forms.TextBox();
     this.label11             = new System.Windows.Forms.Label();
     this.currentIterationBox = new System.Windows.Forms.TextBox();
     this.label8              = new System.Windows.Forms.Label();
     this.label7              = new System.Windows.Forms.Label();
     this.sigmoidTypeCombo    = new System.Windows.Forms.ComboBox();
     this.errorLimitBox       = new System.Windows.Forms.TextBox();
     this.label3              = new System.Windows.Forms.Label();
     this.alphaBox            = new System.Windows.Forms.TextBox();
     this.label2              = new System.Windows.Forms.Label();
     this.learningRateBox     = new System.Windows.Forms.TextBox();
     this.label1              = new System.Windows.Forms.Label();
     this.label4              = new System.Windows.Forms.Label();
     this.groupBox2           = new System.Windows.Forms.GroupBox();
     this.errorChart          = new AForge.Controls.Chart();
     this.saveFilesCheck      = new System.Windows.Forms.CheckBox();
     this.label6              = new System.Windows.Forms.Label();
     this.momentumBox         = new System.Windows.Forms.TextBox();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.momentumBox);
     this.groupBox1.Controls.Add(this.label6);
     this.groupBox1.Controls.Add(this.stopButton);
     this.groupBox1.Controls.Add(this.startButton);
     this.groupBox1.Controls.Add(this.label5);
     this.groupBox1.Controls.Add(this.currentErrorBox);
     this.groupBox1.Controls.Add(this.label11);
     this.groupBox1.Controls.Add(this.currentIterationBox);
     this.groupBox1.Controls.Add(this.label8);
     this.groupBox1.Controls.Add(this.label7);
     this.groupBox1.Controls.Add(this.sigmoidTypeCombo);
     this.groupBox1.Controls.Add(this.errorLimitBox);
     this.groupBox1.Controls.Add(this.label3);
     this.groupBox1.Controls.Add(this.alphaBox);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Controls.Add(this.learningRateBox);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.label4);
     this.groupBox1.Location = new System.Drawing.Point(10, 10);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(195, 260);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Neural Network";
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(110, 225);
     this.stopButton.Name     = "stopButton";
     this.stopButton.TabIndex = 28;
     this.stopButton.Text     = "S&top";
     this.stopButton.Click   += new System.EventHandler(this.stopButton_Click);
     //
     // startButton
     //
     this.startButton.Location = new System.Drawing.Point(25, 225);
     this.startButton.Name     = "startButton";
     this.startButton.TabIndex = 27;
     this.startButton.Text     = "&Start";
     this.startButton.Click   += new System.EventHandler(this.startButton_Click);
     //
     // label5
     //
     this.label5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label5.Location    = new System.Drawing.Point(10, 211);
     this.label5.Name        = "label5";
     this.label5.Size        = new System.Drawing.Size(175, 2);
     this.label5.TabIndex    = 26;
     //
     // currentErrorBox
     //
     this.currentErrorBox.Location = new System.Drawing.Point(125, 185);
     this.currentErrorBox.Name     = "currentErrorBox";
     this.currentErrorBox.ReadOnly = true;
     this.currentErrorBox.Size     = new System.Drawing.Size(60, 20);
     this.currentErrorBox.TabIndex = 25;
     this.currentErrorBox.Text     = "";
     //
     // label11
     //
     this.label11.Location = new System.Drawing.Point(10, 187);
     this.label11.Name     = "label11";
     this.label11.Size     = new System.Drawing.Size(121, 14);
     this.label11.TabIndex = 24;
     this.label11.Text     = "Current average error:";
     //
     // currentIterationBox
     //
     this.currentIterationBox.Location = new System.Drawing.Point(125, 160);
     this.currentIterationBox.Name     = "currentIterationBox";
     this.currentIterationBox.ReadOnly = true;
     this.currentIterationBox.Size     = new System.Drawing.Size(60, 20);
     this.currentIterationBox.TabIndex = 23;
     this.currentIterationBox.Text     = "";
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(10, 162);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(98, 16);
     this.label8.TabIndex = 22;
     this.label8.Text     = "Current iteration:";
     //
     // label7
     //
     this.label7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label7.Location    = new System.Drawing.Point(10, 150);
     this.label7.Name        = "label7";
     this.label7.Size        = new System.Drawing.Size(175, 2);
     this.label7.TabIndex    = 21;
     //
     // sigmoidTypeCombo
     //
     this.sigmoidTypeCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.sigmoidTypeCombo.Items.AddRange(new object[] {
         "Unipolar",
         "Bipolar"
     });
     this.sigmoidTypeCombo.Location = new System.Drawing.Point(125, 120);
     this.sigmoidTypeCombo.Name     = "sigmoidTypeCombo";
     this.sigmoidTypeCombo.Size     = new System.Drawing.Size(60, 21);
     this.sigmoidTypeCombo.TabIndex = 9;
     //
     // errorLimitBox
     //
     this.errorLimitBox.Location = new System.Drawing.Point(125, 95);
     this.errorLimitBox.Name     = "errorLimitBox";
     this.errorLimitBox.Size     = new System.Drawing.Size(60, 20);
     this.errorLimitBox.TabIndex = 7;
     this.errorLimitBox.Text     = "";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(10, 97);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(110, 15);
     this.label3.TabIndex = 6;
     this.label3.Text     = "Learning error limit:";
     //
     // alphaBox
     //
     this.alphaBox.Location = new System.Drawing.Point(125, 70);
     this.alphaBox.Name     = "alphaBox";
     this.alphaBox.Size     = new System.Drawing.Size(60, 20);
     this.alphaBox.TabIndex = 5;
     this.alphaBox.Text     = "";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(10, 72);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(120, 15);
     this.label2.TabIndex = 4;
     this.label2.Text     = "Sigmoid\'s alpha value:";
     //
     // learningRateBox
     //
     this.learningRateBox.Location = new System.Drawing.Point(125, 20);
     this.learningRateBox.Name     = "learningRateBox";
     this.learningRateBox.Size     = new System.Drawing.Size(60, 20);
     this.learningRateBox.TabIndex = 1;
     this.learningRateBox.Text     = "";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(10, 22);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(78, 14);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Learning rate:";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(10, 122);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(100, 15);
     this.label4.TabIndex = 8;
     this.label4.Text     = "Sigmoid\'s type:";
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.saveFilesCheck);
     this.groupBox2.Controls.Add(this.errorChart);
     this.groupBox2.Location = new System.Drawing.Point(215, 10);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(220, 260);
     this.groupBox2.TabIndex = 1;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Error\'s dynamics";
     //
     // errorChart
     //
     this.errorChart.Location = new System.Drawing.Point(10, 20);
     this.errorChart.Name     = "errorChart";
     this.errorChart.Size     = new System.Drawing.Size(200, 205);
     this.errorChart.TabIndex = 0;
     this.errorChart.Text     = "chart1";
     //
     // saveFilesCheck
     //
     this.saveFilesCheck.Location = new System.Drawing.Point(10, 233);
     this.saveFilesCheck.Name     = "saveFilesCheck";
     this.saveFilesCheck.Size     = new System.Drawing.Size(200, 18);
     this.saveFilesCheck.TabIndex = 1;
     this.saveFilesCheck.Text     = "Save errors to files";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(10, 47);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(82, 17);
     this.label6.TabIndex = 2;
     this.label6.Text     = "Momentum:";
     //
     // momentumBox
     //
     this.momentumBox.Location = new System.Drawing.Point(125, 45);
     this.momentumBox.Name     = "momentumBox";
     this.momentumBox.Size     = new System.Drawing.Size(60, 20);
     this.momentumBox.TabIndex = 3;
     this.momentumBox.Text     = "";
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(452, 278);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.Name            = "MainForm";
     this.Text            = "XOR Problem";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 21
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.groupBox1            = new System.Windows.Forms.GroupBox();
     this.classesBox           = new System.Windows.Forms.TextBox();
     this.label10              = new System.Windows.Forms.Label();
     this.dataList             = new System.Windows.Forms.ListView();
     this.loadButton           = new System.Windows.Forms.Button();
     this.openFileDialog       = new System.Windows.Forms.OpenFileDialog();
     this.groupBox2            = new System.Windows.Forms.GroupBox();
     this.currentErrorBox      = new System.Windows.Forms.TextBox();
     this.label11              = new System.Windows.Forms.Label();
     this.label9               = new System.Windows.Forms.Label();
     this.currentIterationBox  = new System.Windows.Forms.TextBox();
     this.label8               = new System.Windows.Forms.Label();
     this.label7               = new System.Windows.Forms.Label();
     this.errorLimitCheck      = new System.Windows.Forms.CheckBox();
     this.oneNeuronForTwoCheck = new System.Windows.Forms.CheckBox();
     this.neuronsBox           = new System.Windows.Forms.TextBox();
     this.label6               = new System.Windows.Forms.Label();
     this.label5               = new System.Windows.Forms.Label();
     this.iterationsBox        = new System.Windows.Forms.TextBox();
     this.label4               = new System.Windows.Forms.Label();
     this.errorLimitBox        = new System.Windows.Forms.TextBox();
     this.label3               = new System.Windows.Forms.Label();
     this.alphaBox             = new System.Windows.Forms.TextBox();
     this.label2               = new System.Windows.Forms.Label();
     this.label1               = new System.Windows.Forms.Label();
     this.learningRateBox      = new System.Windows.Forms.TextBox();
     this.stopButton           = new System.Windows.Forms.Button();
     this.startButton          = new System.Windows.Forms.Button();
     this.groupBox3            = new System.Windows.Forms.GroupBox();
     this.saveFilesCheck       = new System.Windows.Forms.CheckBox();
     this.label13              = new System.Windows.Forms.Label();
     this.weightsList          = new System.Windows.Forms.ListView();
     this.errorChart           = new AForge.Controls.Chart();
     this.label12              = new System.Windows.Forms.Label();
     this.columnHeader1        = new System.Windows.Forms.ColumnHeader();
     this.columnHeader2        = new System.Windows.Forms.ColumnHeader();
     this.columnHeader3        = new System.Windows.Forms.ColumnHeader();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.classesBox,
         this.label10,
         this.dataList,
         this.loadButton
     });
     this.groupBox1.Location = new System.Drawing.Point(10, 10);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(230, 330);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Data";
     //
     // classesBox
     //
     this.classesBox.Location = new System.Drawing.Point(190, 297);
     this.classesBox.Name     = "classesBox";
     this.classesBox.ReadOnly = true;
     this.classesBox.Size     = new System.Drawing.Size(30, 20);
     this.classesBox.TabIndex = 3;
     this.classesBox.Text     = "";
     //
     // label10
     //
     this.label10.Location = new System.Drawing.Point(140, 299);
     this.label10.Name     = "label10";
     this.label10.Size     = new System.Drawing.Size(50, 12);
     this.label10.TabIndex = 2;
     this.label10.Text     = "Classes:";
     //
     // dataList
     //
     this.dataList.FullRowSelect = true;
     this.dataList.GridLines     = true;
     this.dataList.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.dataList.Location      = new System.Drawing.Point(10, 20);
     this.dataList.Name          = "dataList";
     this.dataList.Size          = new System.Drawing.Size(210, 270);
     this.dataList.TabIndex      = 0;
     this.dataList.View          = System.Windows.Forms.View.Details;
     //
     // loadButton
     //
     this.loadButton.Location = new System.Drawing.Point(10, 297);
     this.loadButton.Name     = "loadButton";
     this.loadButton.TabIndex = 1;
     this.loadButton.Text     = "&Load";
     this.loadButton.Click   += new System.EventHandler(this.loadButton_Click);
     //
     // openFileDialog
     //
     this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
     this.openFileDialog.Title  = "Select data file";
     //
     // groupBox2
     //
     this.groupBox2.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.currentErrorBox,
         this.label11,
         this.label9,
         this.currentIterationBox,
         this.label8,
         this.label7,
         this.errorLimitCheck,
         this.oneNeuronForTwoCheck,
         this.neuronsBox,
         this.label6,
         this.label5,
         this.iterationsBox,
         this.label4,
         this.errorLimitBox,
         this.label3,
         this.alphaBox,
         this.label2,
         this.label1,
         this.learningRateBox,
         this.stopButton,
         this.startButton
     });
     this.groupBox2.Location = new System.Drawing.Point(250, 10);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(185, 330);
     this.groupBox2.TabIndex = 1;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Training";
     //
     // currentErrorBox
     //
     this.currentErrorBox.Location = new System.Drawing.Point(125, 255);
     this.currentErrorBox.Name     = "currentErrorBox";
     this.currentErrorBox.ReadOnly = true;
     this.currentErrorBox.Size     = new System.Drawing.Size(50, 20);
     this.currentErrorBox.TabIndex = 20;
     this.currentErrorBox.Text     = "";
     //
     // label11
     //
     this.label11.Location = new System.Drawing.Point(10, 257);
     this.label11.Name     = "label11";
     this.label11.Size     = new System.Drawing.Size(121, 14);
     this.label11.TabIndex = 19;
     this.label11.Text     = "Current average error:";
     //
     // label9
     //
     this.label9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label9.Location    = new System.Drawing.Point(10, 283);
     this.label9.Name        = "label9";
     this.label9.Size        = new System.Drawing.Size(165, 2);
     this.label9.TabIndex    = 18;
     //
     // currentIterationBox
     //
     this.currentIterationBox.Location = new System.Drawing.Point(125, 230);
     this.currentIterationBox.Name     = "currentIterationBox";
     this.currentIterationBox.ReadOnly = true;
     this.currentIterationBox.Size     = new System.Drawing.Size(50, 20);
     this.currentIterationBox.TabIndex = 17;
     this.currentIterationBox.Text     = "";
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(10, 232);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(98, 16);
     this.label8.TabIndex = 16;
     this.label8.Text     = "Current iteration:";
     //
     // label7
     //
     this.label7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label7.Location    = new System.Drawing.Point(10, 220);
     this.label7.Name        = "label7";
     this.label7.Size        = new System.Drawing.Size(165, 2);
     this.label7.TabIndex    = 15;
     //
     // errorLimitCheck
     //
     this.errorLimitCheck.Location = new System.Drawing.Point(10, 190);
     this.errorLimitCheck.Name     = "errorLimitCheck";
     this.errorLimitCheck.Size     = new System.Drawing.Size(157, 25);
     this.errorLimitCheck.TabIndex = 14;
     this.errorLimitCheck.Text     = "Use error limit (checked) or iterations limit";
     //
     // oneNeuronForTwoCheck
     //
     this.oneNeuronForTwoCheck.Enabled         = false;
     this.oneNeuronForTwoCheck.Location        = new System.Drawing.Point(10, 165);
     this.oneNeuronForTwoCheck.Name            = "oneNeuronForTwoCheck";
     this.oneNeuronForTwoCheck.Size            = new System.Drawing.Size(168, 15);
     this.oneNeuronForTwoCheck.TabIndex        = 13;
     this.oneNeuronForTwoCheck.Text            = "Use 1 neuron for 2 classes";
     this.oneNeuronForTwoCheck.CheckedChanged += new System.EventHandler(this.oneNeuronForTwoCheck_CheckedChanged);
     //
     // neuronsBox
     //
     this.neuronsBox.Location = new System.Drawing.Point(125, 135);
     this.neuronsBox.Name     = "neuronsBox";
     this.neuronsBox.ReadOnly = true;
     this.neuronsBox.Size     = new System.Drawing.Size(50, 20);
     this.neuronsBox.TabIndex = 12;
     this.neuronsBox.Text     = "";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(10, 137);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(59, 12);
     this.label6.TabIndex = 11;
     this.label6.Text     = "Neurons:";
     //
     // label5
     //
     this.label5.Font     = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204)));
     this.label5.Location = new System.Drawing.Point(125, 115);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(58, 17);
     this.label5.TabIndex = 10;
     this.label5.Text     = "( 0 - inifinity )";
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(125, 95);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.Size     = new System.Drawing.Size(50, 20);
     this.iterationsBox.TabIndex = 9;
     this.iterationsBox.Text     = "";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(10, 97);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(90, 13);
     this.label4.TabIndex = 8;
     this.label4.Text     = "Iterations limit:";
     //
     // errorLimitBox
     //
     this.errorLimitBox.Location = new System.Drawing.Point(125, 70);
     this.errorLimitBox.Name     = "errorLimitBox";
     this.errorLimitBox.Size     = new System.Drawing.Size(50, 20);
     this.errorLimitBox.TabIndex = 7;
     this.errorLimitBox.Text     = "";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(10, 72);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(110, 15);
     this.label3.TabIndex = 6;
     this.label3.Text     = "Learning error limit:";
     //
     // alphaBox
     //
     this.alphaBox.Location = new System.Drawing.Point(125, 45);
     this.alphaBox.Name     = "alphaBox";
     this.alphaBox.Size     = new System.Drawing.Size(50, 20);
     this.alphaBox.TabIndex = 5;
     this.alphaBox.Text     = "";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(10, 47);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(120, 15);
     this.label2.TabIndex = 4;
     this.label2.Text     = "Sigmoid\'s alpha value:";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(10, 22);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(75, 16);
     this.label1.TabIndex = 2;
     this.label1.Text     = "Learning rate:";
     //
     // learningRateBox
     //
     this.learningRateBox.Location = new System.Drawing.Point(125, 20);
     this.learningRateBox.Name     = "learningRateBox";
     this.learningRateBox.Size     = new System.Drawing.Size(50, 20);
     this.learningRateBox.TabIndex = 3;
     this.learningRateBox.Text     = "";
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(100, 297);
     this.stopButton.Name     = "stopButton";
     this.stopButton.TabIndex = 6;
     this.stopButton.Text     = "S&top";
     this.stopButton.Click   += new System.EventHandler(this.stopButton_Click);
     //
     // startButton
     //
     this.startButton.Enabled  = false;
     this.startButton.Location = new System.Drawing.Point(10, 297);
     this.startButton.Name     = "startButton";
     this.startButton.TabIndex = 5;
     this.startButton.Text     = "&Start";
     this.startButton.Click   += new System.EventHandler(this.startButton_Click);
     //
     // groupBox3
     //
     this.groupBox3.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.saveFilesCheck,
         this.label13,
         this.weightsList,
         this.errorChart,
         this.label12
     });
     this.groupBox3.Location = new System.Drawing.Point(445, 10);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(220, 330);
     this.groupBox3.TabIndex = 2;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Solution";
     //
     // saveFilesCheck
     //
     this.saveFilesCheck.Location = new System.Drawing.Point(10, 305);
     this.saveFilesCheck.Name     = "saveFilesCheck";
     this.saveFilesCheck.Size     = new System.Drawing.Size(195, 15);
     this.saveFilesCheck.TabIndex = 4;
     this.saveFilesCheck.Text     = "Save weights and errors to files";
     //
     // label13
     //
     this.label13.Location = new System.Drawing.Point(10, 170);
     this.label13.Name     = "label13";
     this.label13.Size     = new System.Drawing.Size(100, 12);
     this.label13.TabIndex = 3;
     this.label13.Text     = "Error\'s dynamics:";
     //
     // weightsList
     //
     this.weightsList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.columnHeader1,
         this.columnHeader2,
         this.columnHeader3
     });
     this.weightsList.FullRowSelect = true;
     this.weightsList.GridLines     = true;
     this.weightsList.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.weightsList.Location      = new System.Drawing.Point(10, 35);
     this.weightsList.Name          = "weightsList";
     this.weightsList.Size          = new System.Drawing.Size(200, 130);
     this.weightsList.TabIndex      = 2;
     this.weightsList.View          = System.Windows.Forms.View.Details;
     //
     // errorChart
     //
     this.errorChart.Location = new System.Drawing.Point(10, 185);
     this.errorChart.Name     = "errorChart";
     this.errorChart.Size     = new System.Drawing.Size(200, 110);
     this.errorChart.TabIndex = 1;
     this.errorChart.Text     = "chart1";
     //
     // label12
     //
     this.label12.Location = new System.Drawing.Point(10, 20);
     this.label12.Name     = "label12";
     this.label12.Size     = new System.Drawing.Size(100, 15);
     this.label12.TabIndex = 0;
     this.label12.Text     = "Network weights:";
     //
     // columnHeader1
     //
     this.columnHeader1.Text = "Neuron";
     //
     // columnHeader2
     //
     this.columnHeader2.Text = "Weight";
     //
     // columnHeader3
     //
     this.columnHeader3.Text = "Value";
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(674, 350);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.groupBox3,
         this.groupBox2,
         this.groupBox1
     });
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.Name            = "MainForm";
     this.Text            = "Classifier using Delta Rule Learning";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox3.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 22
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.groupBox1            = new System.Windows.Forms.GroupBox();
     this.button1              = new System.Windows.Forms.Button();
     this.chart                = new AForge.Controls.Chart();
     this.loadButton           = new System.Windows.Forms.Button();
     this.dataList             = new System.Windows.Forms.ListView();
     this.noVisualizationLabel = new System.Windows.Forms.Label();
     this.openFileDialog       = new System.Windows.Forms.OpenFileDialog();
     this.groupBox2            = new System.Windows.Forms.GroupBox();
     this.saveFilesCheck       = new System.Windows.Forms.CheckBox();
     this.errorChart           = new AForge.Controls.Chart();
     this.label5               = new System.Windows.Forms.Label();
     this.stopButton           = new System.Windows.Forms.Button();
     this.iterationsBox        = new System.Windows.Forms.TextBox();
     this.label4               = new System.Windows.Forms.Label();
     this.weightsList          = new System.Windows.Forms.ListView();
     this.columnHeader1        = new System.Windows.Forms.ColumnHeader();
     this.columnHeader2        = new System.Windows.Forms.ColumnHeader();
     this.label3               = new System.Windows.Forms.Label();
     this.label2               = new System.Windows.Forms.Label();
     this.startButton          = new System.Windows.Forms.Button();
     this.learningRateBox      = new System.Windows.Forms.TextBox();
     this.label1               = new System.Windows.Forms.Label();
     this.listBox1             = new System.Windows.Forms.ListBox();
     this.button2              = new System.Windows.Forms.Button();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.button1);
     this.groupBox1.Controls.Add(this.chart);
     this.groupBox1.Controls.Add(this.loadButton);
     this.groupBox1.Controls.Add(this.dataList);
     this.groupBox1.Controls.Add(this.noVisualizationLabel);
     this.groupBox1.Location = new System.Drawing.Point(10, 10);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(190, 420);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Data";
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(91, 391);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(75, 23);
     this.button1.TabIndex = 3;
     this.button1.Text     = "Next";
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // chart
     //
     this.chart.Location = new System.Drawing.Point(10, 215);
     this.chart.Name     = "chart";
     this.chart.Size     = new System.Drawing.Size(170, 170);
     this.chart.TabIndex = 2;
     this.chart.Text     = "chart1";
     //
     // loadButton
     //
     this.loadButton.Location = new System.Drawing.Point(10, 390);
     this.loadButton.Name     = "loadButton";
     this.loadButton.Size     = new System.Drawing.Size(75, 23);
     this.loadButton.TabIndex = 1;
     this.loadButton.Text     = "&Load";
     this.loadButton.Click   += new System.EventHandler(this.loadButton_Click);
     //
     // dataList
     //
     this.dataList.FullRowSelect = true;
     this.dataList.GridLines     = true;
     this.dataList.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.dataList.Location      = new System.Drawing.Point(10, 20);
     this.dataList.Name          = "dataList";
     this.dataList.Size          = new System.Drawing.Size(170, 190);
     this.dataList.TabIndex      = 0;
     this.dataList.UseCompatibleStateImageBehavior = false;
     this.dataList.View = System.Windows.Forms.View.Details;
     //
     // noVisualizationLabel
     //
     this.noVisualizationLabel.Location  = new System.Drawing.Point(10, 215);
     this.noVisualizationLabel.Name      = "noVisualizationLabel";
     this.noVisualizationLabel.Size      = new System.Drawing.Size(170, 170);
     this.noVisualizationLabel.TabIndex  = 2;
     this.noVisualizationLabel.Text      = "Visualization is not available.";
     this.noVisualizationLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.noVisualizationLabel.Visible   = false;
     //
     // openFileDialog
     //
     this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
     this.openFileDialog.Title  = "Select data file";
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.saveFilesCheck);
     this.groupBox2.Controls.Add(this.errorChart);
     this.groupBox2.Controls.Add(this.label5);
     this.groupBox2.Controls.Add(this.stopButton);
     this.groupBox2.Controls.Add(this.iterationsBox);
     this.groupBox2.Controls.Add(this.label4);
     this.groupBox2.Controls.Add(this.weightsList);
     this.groupBox2.Controls.Add(this.label3);
     this.groupBox2.Controls.Add(this.label2);
     this.groupBox2.Controls.Add(this.startButton);
     this.groupBox2.Controls.Add(this.learningRateBox);
     this.groupBox2.Controls.Add(this.label1);
     this.groupBox2.Location = new System.Drawing.Point(210, 10);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(240, 420);
     this.groupBox2.TabIndex = 1;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Training";
     //
     // saveFilesCheck
     //
     this.saveFilesCheck.Location = new System.Drawing.Point(10, 80);
     this.saveFilesCheck.Name     = "saveFilesCheck";
     this.saveFilesCheck.Size     = new System.Drawing.Size(182, 16);
     this.saveFilesCheck.TabIndex = 11;
     this.saveFilesCheck.Text     = "Save weights and errors to files";
     //
     // errorChart
     //
     this.errorChart.Location = new System.Drawing.Point(10, 270);
     this.errorChart.Name     = "errorChart";
     this.errorChart.Size     = new System.Drawing.Size(220, 140);
     this.errorChart.TabIndex = 10;
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(10, 250);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(101, 15);
     this.label5.TabIndex = 9;
     this.label5.Text     = "Error\'s dynamics:";
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(155, 49);
     this.stopButton.Name     = "stopButton";
     this.stopButton.Size     = new System.Drawing.Size(75, 23);
     this.stopButton.TabIndex = 8;
     this.stopButton.Text     = "S&top";
     this.stopButton.Click   += new System.EventHandler(this.stopButton_Click);
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(90, 50);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.ReadOnly = true;
     this.iterationsBox.Size     = new System.Drawing.Size(50, 20);
     this.iterationsBox.TabIndex = 7;
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(10, 52);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(65, 16);
     this.label4.TabIndex = 6;
     this.label4.Text     = "Iterations:";
     //
     // weightsList
     //
     this.weightsList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.columnHeader1,
         this.columnHeader2
     });
     this.weightsList.FullRowSelect = true;
     this.weightsList.GridLines     = true;
     this.weightsList.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.weightsList.Location      = new System.Drawing.Point(10, 130);
     this.weightsList.Name          = "weightsList";
     this.weightsList.Size          = new System.Drawing.Size(220, 110);
     this.weightsList.TabIndex      = 5;
     this.weightsList.UseCompatibleStateImageBehavior = false;
     this.weightsList.View = System.Windows.Forms.View.Details;
     //
     // columnHeader1
     //
     this.columnHeader1.Text  = "Weight";
     this.columnHeader1.Width = 70;
     //
     // columnHeader2
     //
     this.columnHeader2.Text  = "Value";
     this.columnHeader2.Width = 100;
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(10, 110);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(112, 16);
     this.label3.TabIndex = 4;
     this.label3.Text     = "Perceptron weights:";
     //
     // label2
     //
     this.label2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label2.Location    = new System.Drawing.Point(10, 100);
     this.label2.Name        = "label2";
     this.label2.Size        = new System.Drawing.Size(220, 2);
     this.label2.TabIndex    = 3;
     //
     // startButton
     //
     this.startButton.Location = new System.Drawing.Point(155, 19);
     this.startButton.Name     = "startButton";
     this.startButton.Size     = new System.Drawing.Size(75, 23);
     this.startButton.TabIndex = 2;
     this.startButton.Text     = "&Start";
     this.startButton.Click   += new System.EventHandler(this.startButton_Click);
     //
     // learningRateBox
     //
     this.learningRateBox.Location = new System.Drawing.Point(90, 20);
     this.learningRateBox.Name     = "learningRateBox";
     this.learningRateBox.Size     = new System.Drawing.Size(50, 20);
     this.learningRateBox.TabIndex = 1;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(10, 22);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(75, 16);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Learning rate:";
     //
     // listBox1
     //
     this.listBox1.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.listBox1.FormattingEnabled = true;
     this.listBox1.Location          = new System.Drawing.Point(0, 499);
     this.listBox1.Name     = "listBox1";
     this.listBox1.Size     = new System.Drawing.Size(663, 173);
     this.listBox1.TabIndex = 2;
     //
     // button2
     //
     this.button2.Location = new System.Drawing.Point(0, 453);
     this.button2.Name     = "button2";
     this.button2.Size     = new System.Drawing.Size(95, 30);
     this.button2.TabIndex = 12;
     this.button2.Text     = "Test";
     this.button2.Click   += new System.EventHandler(this.button2_Click);
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(663, 672);
     this.Controls.Add(this.button2);
     this.Controls.Add(this.listBox1);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.Name            = "MainForm";
     this.Text            = "Perceptron Classifier";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     this.ResumeLayout(false);
 }
Exemplo n.º 23
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            this.groupBox1 = new System.Windows.Forms.GroupBox( );
            this.momentumBox = new System.Windows.Forms.TextBox( );
            this.label6 = new System.Windows.Forms.Label( );
            this.stopButton = new System.Windows.Forms.Button( );
            this.startButton = new System.Windows.Forms.Button( );
            this.label5 = new System.Windows.Forms.Label( );
            this.currentErrorBox = new System.Windows.Forms.TextBox( );
            this.label11 = new System.Windows.Forms.Label( );
            this.currentIterationBox = new System.Windows.Forms.TextBox( );
            this.label8 = new System.Windows.Forms.Label( );
            this.label7 = new System.Windows.Forms.Label( );
            this.sigmoidTypeCombo = new System.Windows.Forms.ComboBox( );
            this.errorLimitBox = new System.Windows.Forms.TextBox( );
            this.label3 = new System.Windows.Forms.Label( );
            this.alphaBox = new System.Windows.Forms.TextBox( );
            this.label2 = new System.Windows.Forms.Label( );
            this.learningRateBox = new System.Windows.Forms.TextBox( );
            this.label1 = new System.Windows.Forms.Label( );
            this.label4 = new System.Windows.Forms.Label( );
            this.groupBox2 = new System.Windows.Forms.GroupBox( );
            this.errorChart = new AForge.Controls.Chart( );
            this.saveFilesCheck = new System.Windows.Forms.CheckBox( );
            this.groupBox1.SuspendLayout( );
            this.groupBox2.SuspendLayout( );
            this.SuspendLayout( );
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add( this.momentumBox );
            this.groupBox1.Controls.Add( this.label6 );
            this.groupBox1.Controls.Add( this.stopButton );
            this.groupBox1.Controls.Add( this.startButton );
            this.groupBox1.Controls.Add( this.label5 );
            this.groupBox1.Controls.Add( this.currentErrorBox );
            this.groupBox1.Controls.Add( this.label11 );
            this.groupBox1.Controls.Add( this.currentIterationBox );
            this.groupBox1.Controls.Add( this.label8 );
            this.groupBox1.Controls.Add( this.label7 );
            this.groupBox1.Controls.Add( this.sigmoidTypeCombo );
            this.groupBox1.Controls.Add( this.errorLimitBox );
            this.groupBox1.Controls.Add( this.label3 );
            this.groupBox1.Controls.Add( this.alphaBox );
            this.groupBox1.Controls.Add( this.label2 );
            this.groupBox1.Controls.Add( this.learningRateBox );
            this.groupBox1.Controls.Add( this.label1 );
            this.groupBox1.Controls.Add( this.label4 );
            this.groupBox1.Location = new System.Drawing.Point( 10, 10 );
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size( 195, 260 );
            this.groupBox1.TabIndex = 0;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Neural Network";
            // 
            // momentumBox
            // 
            this.momentumBox.Location = new System.Drawing.Point( 125, 45 );
            this.momentumBox.Name = "momentumBox";
            this.momentumBox.Size = new System.Drawing.Size( 60, 20 );
            this.momentumBox.TabIndex = 3;
            // 
            // label6
            // 
            this.label6.Location = new System.Drawing.Point( 10, 47 );
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size( 82, 17 );
            this.label6.TabIndex = 2;
            this.label6.Text = "Momentum:";
            // 
            // stopButton
            // 
            this.stopButton.Enabled = false;
            this.stopButton.Location = new System.Drawing.Point( 110, 225 );
            this.stopButton.Name = "stopButton";
            this.stopButton.Size = new System.Drawing.Size( 75, 23 );
            this.stopButton.TabIndex = 28;
            this.stopButton.Text = "S&top";
            this.stopButton.Click += new System.EventHandler( this.stopButton_Click );
            // 
            // startButton
            // 
            this.startButton.Location = new System.Drawing.Point( 25, 225 );
            this.startButton.Name = "startButton";
            this.startButton.Size = new System.Drawing.Size( 75, 23 );
            this.startButton.TabIndex = 27;
            this.startButton.Text = "&Start";
            this.startButton.Click += new System.EventHandler( this.startButton_Click );
            // 
            // label5
            // 
            this.label5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.label5.Location = new System.Drawing.Point( 10, 211 );
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size( 175, 2 );
            this.label5.TabIndex = 26;
            // 
            // currentErrorBox
            // 
            this.currentErrorBox.Location = new System.Drawing.Point( 125, 185 );
            this.currentErrorBox.Name = "currentErrorBox";
            this.currentErrorBox.ReadOnly = true;
            this.currentErrorBox.Size = new System.Drawing.Size( 60, 20 );
            this.currentErrorBox.TabIndex = 25;
            // 
            // label11
            // 
            this.label11.Location = new System.Drawing.Point( 10, 187 );
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size( 121, 14 );
            this.label11.TabIndex = 24;
            this.label11.Text = "Current summary error:";
            // 
            // currentIterationBox
            // 
            this.currentIterationBox.Location = new System.Drawing.Point( 125, 160 );
            this.currentIterationBox.Name = "currentIterationBox";
            this.currentIterationBox.ReadOnly = true;
            this.currentIterationBox.Size = new System.Drawing.Size( 60, 20 );
            this.currentIterationBox.TabIndex = 23;
            // 
            // label8
            // 
            this.label8.Location = new System.Drawing.Point( 10, 162 );
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size( 98, 16 );
            this.label8.TabIndex = 22;
            this.label8.Text = "Current iteration:";
            // 
            // label7
            // 
            this.label7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.label7.Location = new System.Drawing.Point( 10, 150 );
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size( 175, 2 );
            this.label7.TabIndex = 21;
            // 
            // sigmoidTypeCombo
            // 
            this.sigmoidTypeCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.sigmoidTypeCombo.Items.AddRange( new object[] {
            "Unipolar",
            "Bipolar"} );
            this.sigmoidTypeCombo.Location = new System.Drawing.Point( 125, 120 );
            this.sigmoidTypeCombo.Name = "sigmoidTypeCombo";
            this.sigmoidTypeCombo.Size = new System.Drawing.Size( 60, 21 );
            this.sigmoidTypeCombo.TabIndex = 9;
            // 
            // errorLimitBox
            // 
            this.errorLimitBox.Location = new System.Drawing.Point( 125, 95 );
            this.errorLimitBox.Name = "errorLimitBox";
            this.errorLimitBox.Size = new System.Drawing.Size( 60, 20 );
            this.errorLimitBox.TabIndex = 7;
            // 
            // label3
            // 
            this.label3.Location = new System.Drawing.Point( 10, 97 );
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size( 110, 15 );
            this.label3.TabIndex = 6;
            this.label3.Text = "Learning error limit:";
            // 
            // alphaBox
            // 
            this.alphaBox.Location = new System.Drawing.Point( 125, 70 );
            this.alphaBox.Name = "alphaBox";
            this.alphaBox.Size = new System.Drawing.Size( 60, 20 );
            this.alphaBox.TabIndex = 5;
            // 
            // label2
            // 
            this.label2.Location = new System.Drawing.Point( 10, 72 );
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size( 120, 15 );
            this.label2.TabIndex = 4;
            this.label2.Text = "Sigmoid\'s alpha value:";
            // 
            // learningRateBox
            // 
            this.learningRateBox.Location = new System.Drawing.Point( 125, 20 );
            this.learningRateBox.Name = "learningRateBox";
            this.learningRateBox.Size = new System.Drawing.Size( 60, 20 );
            this.learningRateBox.TabIndex = 1;
            // 
            // label1
            // 
            this.label1.Location = new System.Drawing.Point( 10, 22 );
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size( 78, 14 );
            this.label1.TabIndex = 0;
            this.label1.Text = "Learning rate:";
            // 
            // label4
            // 
            this.label4.Location = new System.Drawing.Point( 10, 122 );
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size( 100, 15 );
            this.label4.TabIndex = 8;
            this.label4.Text = "Sigmoid\'s type:";
            // 
            // groupBox2
            // 
            this.groupBox2.Controls.Add( this.errorChart );
            this.groupBox2.Controls.Add( this.saveFilesCheck );
            this.groupBox2.Location = new System.Drawing.Point( 215, 10 );
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size( 220, 260 );
            this.groupBox2.TabIndex = 1;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Error\'s dynamics";
            // 
            // errorChart
            // 
            this.errorChart.Location = new System.Drawing.Point( 10, 20 );
            this.errorChart.Name = "errorChart";
            this.errorChart.Size = new System.Drawing.Size( 200, 205 );
            this.errorChart.TabIndex = 2;
            this.errorChart.Text = "chart1";
            // 
            // saveFilesCheck
            // 
            this.saveFilesCheck.Location = new System.Drawing.Point( 10, 233 );
            this.saveFilesCheck.Name = "saveFilesCheck";
            this.saveFilesCheck.Size = new System.Drawing.Size( 200, 18 );
            this.saveFilesCheck.TabIndex = 1;
            this.saveFilesCheck.Text = "Save errors to files";
            // 
            // MainForm
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size( 5, 13 );
            this.ClientSize = new System.Drawing.Size( 452, 278 );
            this.Controls.Add( this.groupBox2 );
            this.Controls.Add( this.groupBox1 );
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.Name = "MainForm";
            this.Text = "XOR Problem";
            this.Closing += new System.ComponentModel.CancelEventHandler( this.MainForm_Closing );
            this.groupBox1.ResumeLayout( false );
            this.groupBox1.PerformLayout( );
            this.groupBox2.ResumeLayout( false );
            this.ResumeLayout( false );

		}
Exemplo n.º 24
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.chart               = new AForge.Controls.Chart();
     this.groupBox1           = new System.Windows.Forms.GroupBox();
     this.label1              = new System.Windows.Forms.Label();
     this.minXBox             = new System.Windows.Forms.TextBox();
     this.maxXBox             = new System.Windows.Forms.TextBox();
     this.label2              = new System.Windows.Forms.Label();
     this.groupBox2           = new System.Windows.Forms.GroupBox();
     this.modeBox             = new System.Windows.Forms.ComboBox();
     this.label8              = new System.Windows.Forms.Label();
     this.selectionBox        = new System.Windows.Forms.ComboBox();
     this.label7              = new System.Windows.Forms.Label();
     this.label6              = new System.Windows.Forms.Label();
     this.iterationsBox       = new System.Windows.Forms.TextBox();
     this.label5              = new System.Windows.Forms.Label();
     this.onlyBestCheck       = new System.Windows.Forms.CheckBox();
     this.chromosomeLengthBox = new System.Windows.Forms.TextBox();
     this.label4              = new System.Windows.Forms.Label();
     this.populationSizeBox   = new System.Windows.Forms.TextBox();
     this.label3              = new System.Windows.Forms.Label();
     this.startButton         = new System.Windows.Forms.Button();
     this.stopButton          = new System.Windows.Forms.Button();
     this.groupBox3           = new System.Windows.Forms.GroupBox();
     this.currentValueBox     = new System.Windows.Forms.TextBox();
     this.label10             = new System.Windows.Forms.Label();
     this.currentIterationBox = new System.Windows.Forms.TextBox();
     this.label9              = new System.Windows.Forms.Label();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.SuspendLayout();
     //
     // chart
     //
     this.chart.Location = new System.Drawing.Point(10, 20);
     this.chart.Name     = "chart";
     this.chart.Size     = new System.Drawing.Size(280, 270);
     this.chart.TabIndex = 0;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.chart);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.minXBox);
     this.groupBox1.Controls.Add(this.maxXBox);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Location = new System.Drawing.Point(10, 10);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(300, 330);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Function";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(10, 297);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(41, 13);
     this.label1.TabIndex = 3;
     this.label1.Text     = "Range:";
     //
     // minXBox
     //
     this.minXBox.Location     = new System.Drawing.Point(60, 295);
     this.minXBox.Name         = "minXBox";
     this.minXBox.Size         = new System.Drawing.Size(50, 20);
     this.minXBox.TabIndex     = 3;
     this.minXBox.Text         = "";
     this.minXBox.TextChanged += new System.EventHandler(this.minXBox_TextChanged);
     //
     // maxXBox
     //
     this.maxXBox.Location     = new System.Drawing.Point(130, 295);
     this.maxXBox.Name         = "maxXBox";
     this.maxXBox.Size         = new System.Drawing.Size(50, 20);
     this.maxXBox.TabIndex     = 4;
     this.maxXBox.Text         = "";
     this.maxXBox.TextChanged += new System.EventHandler(this.maxXBox_TextChanged);
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(115, 297);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(8, 16);
     this.label2.TabIndex = 3;
     this.label2.Text     = "-";
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.modeBox);
     this.groupBox2.Controls.Add(this.label8);
     this.groupBox2.Controls.Add(this.selectionBox);
     this.groupBox2.Controls.Add(this.label7);
     this.groupBox2.Controls.Add(this.label6);
     this.groupBox2.Controls.Add(this.iterationsBox);
     this.groupBox2.Controls.Add(this.label5);
     this.groupBox2.Controls.Add(this.onlyBestCheck);
     this.groupBox2.Controls.Add(this.chromosomeLengthBox);
     this.groupBox2.Controls.Add(this.label4);
     this.groupBox2.Controls.Add(this.populationSizeBox);
     this.groupBox2.Controls.Add(this.label3);
     this.groupBox2.Location = new System.Drawing.Point(320, 10);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(185, 222);
     this.groupBox2.TabIndex = 1;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Settings";
     //
     // modeBox
     //
     this.modeBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.modeBox.Items.AddRange(new object[] {
         "Maximize",
         "Minimize"
     });
     this.modeBox.Location = new System.Drawing.Point(110, 95);
     this.modeBox.Name     = "modeBox";
     this.modeBox.Size     = new System.Drawing.Size(65, 21);
     this.modeBox.TabIndex = 7;
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(10, 97);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(110, 17);
     this.label8.TabIndex = 6;
     this.label8.Text     = "Optimization mode:";
     //
     // selectionBox
     //
     this.selectionBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.selectionBox.Items.AddRange(new object[] {
         "Elite",
         "Rank",
         "Roulette"
     });
     this.selectionBox.Location = new System.Drawing.Point(110, 70);
     this.selectionBox.Name     = "selectionBox";
     this.selectionBox.Size     = new System.Drawing.Size(65, 21);
     this.selectionBox.TabIndex = 5;
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(10, 72);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(100, 16);
     this.label7.TabIndex = 4;
     this.label7.Text     = "Selection method:";
     //
     // label6
     //
     this.label6.Font     = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label6.Location = new System.Drawing.Point(125, 175);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(56, 16);
     this.label6.TabIndex = 10;
     this.label6.Text     = "( 0 - inifinity )";
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(125, 155);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.Size     = new System.Drawing.Size(50, 20);
     this.iterationsBox.TabIndex = 9;
     this.iterationsBox.Text     = "";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(10, 157);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(64, 16);
     this.label5.TabIndex = 8;
     this.label5.Text     = "Iterations:";
     //
     // onlyBestCheck
     //
     this.onlyBestCheck.Location = new System.Drawing.Point(10, 195);
     this.onlyBestCheck.Name     = "onlyBestCheck";
     this.onlyBestCheck.Size     = new System.Drawing.Size(144, 16);
     this.onlyBestCheck.TabIndex = 11;
     this.onlyBestCheck.Text     = "Show only best solution";
     //
     // chromosomeLengthBox
     //
     this.chromosomeLengthBox.Location = new System.Drawing.Point(125, 45);
     this.chromosomeLengthBox.Name     = "chromosomeLengthBox";
     this.chromosomeLengthBox.Size     = new System.Drawing.Size(50, 20);
     this.chromosomeLengthBox.TabIndex = 3;
     this.chromosomeLengthBox.Text     = "";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(10, 47);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(110, 12);
     this.label4.TabIndex = 2;
     this.label4.Text     = "Chromosome length:";
     //
     // populationSizeBox
     //
     this.populationSizeBox.Location = new System.Drawing.Point(125, 20);
     this.populationSizeBox.Name     = "populationSizeBox";
     this.populationSizeBox.Size     = new System.Drawing.Size(50, 20);
     this.populationSizeBox.TabIndex = 1;
     this.populationSizeBox.Text     = "";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(10, 22);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(85, 16);
     this.label3.TabIndex = 0;
     this.label3.Text     = "Population size:";
     //
     // startButton
     //
     this.startButton.Location = new System.Drawing.Point(340, 317);
     this.startButton.Name     = "startButton";
     this.startButton.TabIndex = 3;
     this.startButton.Text     = "&Start";
     this.startButton.Click   += new System.EventHandler(this.startButton_Click);
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(430, 317);
     this.stopButton.Name     = "stopButton";
     this.stopButton.TabIndex = 4;
     this.stopButton.Text     = "S&top";
     this.stopButton.Click   += new System.EventHandler(this.stopButton_Click);
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.currentValueBox);
     this.groupBox3.Controls.Add(this.label10);
     this.groupBox3.Controls.Add(this.currentIterationBox);
     this.groupBox3.Controls.Add(this.label9);
     this.groupBox3.Location = new System.Drawing.Point(320, 235);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(185, 75);
     this.groupBox3.TabIndex = 2;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Current iteration";
     //
     // currentValueBox
     //
     this.currentValueBox.Location = new System.Drawing.Point(125, 45);
     this.currentValueBox.Name     = "currentValueBox";
     this.currentValueBox.ReadOnly = true;
     this.currentValueBox.Size     = new System.Drawing.Size(50, 20);
     this.currentValueBox.TabIndex = 3;
     this.currentValueBox.Text     = "";
     //
     // label10
     //
     this.label10.Location = new System.Drawing.Point(10, 47);
     this.label10.Name     = "label10";
     this.label10.Size     = new System.Drawing.Size(60, 15);
     this.label10.TabIndex = 2;
     this.label10.Text     = "Value:";
     //
     // currentIterationBox
     //
     this.currentIterationBox.Location = new System.Drawing.Point(125, 20);
     this.currentIterationBox.Name     = "currentIterationBox";
     this.currentIterationBox.ReadOnly = true;
     this.currentIterationBox.Size     = new System.Drawing.Size(50, 20);
     this.currentIterationBox.TabIndex = 1;
     this.currentIterationBox.Text     = "";
     //
     // label9
     //
     this.label9.Location = new System.Drawing.Point(10, 22);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(60, 16);
     this.label9.TabIndex = 0;
     this.label9.Text     = "Iteration:";
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(514, 350);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.stopButton);
     this.Controls.Add(this.startButton);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.Name            = "MainForm";
     this.Text            = "1D Optimization using Genetic Algorithms";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox3.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 25
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            this.groupBox1 = new System.Windows.Forms.GroupBox( );
            this.classesBox = new System.Windows.Forms.TextBox( );
            this.label10 = new System.Windows.Forms.Label( );
            this.dataList = new System.Windows.Forms.ListView( );
            this.loadButton = new System.Windows.Forms.Button( );
            this.openFileDialog = new System.Windows.Forms.OpenFileDialog( );
            this.groupBox2 = new System.Windows.Forms.GroupBox( );
            this.currentErrorBox = new System.Windows.Forms.TextBox( );
            this.label11 = new System.Windows.Forms.Label( );
            this.label9 = new System.Windows.Forms.Label( );
            this.currentIterationBox = new System.Windows.Forms.TextBox( );
            this.label8 = new System.Windows.Forms.Label( );
            this.label7 = new System.Windows.Forms.Label( );
            this.errorLimitCheck = new System.Windows.Forms.CheckBox( );
            this.oneNeuronForTwoCheck = new System.Windows.Forms.CheckBox( );
            this.neuronsBox = new System.Windows.Forms.TextBox( );
            this.label6 = new System.Windows.Forms.Label( );
            this.label5 = new System.Windows.Forms.Label( );
            this.iterationsBox = new System.Windows.Forms.TextBox( );
            this.label4 = new System.Windows.Forms.Label( );
            this.errorLimitBox = new System.Windows.Forms.TextBox( );
            this.label3 = new System.Windows.Forms.Label( );
            this.alphaBox = new System.Windows.Forms.TextBox( );
            this.label2 = new System.Windows.Forms.Label( );
            this.label1 = new System.Windows.Forms.Label( );
            this.learningRateBox = new System.Windows.Forms.TextBox( );
            this.stopButton = new System.Windows.Forms.Button( );
            this.startButton = new System.Windows.Forms.Button( );
            this.groupBox3 = new System.Windows.Forms.GroupBox( );
            this.saveFilesCheck = new System.Windows.Forms.CheckBox( );
            this.label13 = new System.Windows.Forms.Label( );
            this.weightsList = new System.Windows.Forms.ListView( );
            this.columnHeader1 = new System.Windows.Forms.ColumnHeader( );
            this.columnHeader2 = new System.Windows.Forms.ColumnHeader( );
            this.columnHeader3 = new System.Windows.Forms.ColumnHeader( );
            this.errorChart = new AForge.Controls.Chart( );
            this.label12 = new System.Windows.Forms.Label( );
            this.groupBox1.SuspendLayout( );
            this.groupBox2.SuspendLayout( );
            this.groupBox3.SuspendLayout( );
            this.SuspendLayout( );
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add( this.classesBox );
            this.groupBox1.Controls.Add( this.label10 );
            this.groupBox1.Controls.Add( this.dataList );
            this.groupBox1.Controls.Add( this.loadButton );
            this.groupBox1.Location = new System.Drawing.Point( 10, 10 );
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size( 230, 330 );
            this.groupBox1.TabIndex = 0;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Data";
            // 
            // classesBox
            // 
            this.classesBox.Location = new System.Drawing.Point( 190, 297 );
            this.classesBox.Name = "classesBox";
            this.classesBox.ReadOnly = true;
            this.classesBox.Size = new System.Drawing.Size( 30, 20 );
            this.classesBox.TabIndex = 3;
            // 
            // label10
            // 
            this.label10.Location = new System.Drawing.Point( 140, 299 );
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size( 50, 12 );
            this.label10.TabIndex = 2;
            this.label10.Text = "Classes:";
            // 
            // dataList
            // 
            this.dataList.FullRowSelect = true;
            this.dataList.GridLines = true;
            this.dataList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
            this.dataList.Location = new System.Drawing.Point( 10, 20 );
            this.dataList.Name = "dataList";
            this.dataList.Size = new System.Drawing.Size( 210, 270 );
            this.dataList.TabIndex = 0;
            this.dataList.UseCompatibleStateImageBehavior = false;
            this.dataList.View = System.Windows.Forms.View.Details;
            // 
            // loadButton
            // 
            this.loadButton.Location = new System.Drawing.Point( 10, 297 );
            this.loadButton.Name = "loadButton";
            this.loadButton.Size = new System.Drawing.Size( 75, 23 );
            this.loadButton.TabIndex = 1;
            this.loadButton.Text = "&Load";
            this.loadButton.Click += new System.EventHandler( this.loadButton_Click );
            // 
            // openFileDialog
            // 
            this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
            this.openFileDialog.Title = "Select data file";
            // 
            // groupBox2
            // 
            this.groupBox2.Controls.Add( this.currentErrorBox );
            this.groupBox2.Controls.Add( this.label11 );
            this.groupBox2.Controls.Add( this.label9 );
            this.groupBox2.Controls.Add( this.currentIterationBox );
            this.groupBox2.Controls.Add( this.label8 );
            this.groupBox2.Controls.Add( this.label7 );
            this.groupBox2.Controls.Add( this.errorLimitCheck );
            this.groupBox2.Controls.Add( this.oneNeuronForTwoCheck );
            this.groupBox2.Controls.Add( this.neuronsBox );
            this.groupBox2.Controls.Add( this.label6 );
            this.groupBox2.Controls.Add( this.label5 );
            this.groupBox2.Controls.Add( this.iterationsBox );
            this.groupBox2.Controls.Add( this.label4 );
            this.groupBox2.Controls.Add( this.errorLimitBox );
            this.groupBox2.Controls.Add( this.label3 );
            this.groupBox2.Controls.Add( this.alphaBox );
            this.groupBox2.Controls.Add( this.label2 );
            this.groupBox2.Controls.Add( this.label1 );
            this.groupBox2.Controls.Add( this.learningRateBox );
            this.groupBox2.Controls.Add( this.stopButton );
            this.groupBox2.Controls.Add( this.startButton );
            this.groupBox2.Location = new System.Drawing.Point( 250, 10 );
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size( 185, 330 );
            this.groupBox2.TabIndex = 1;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Training";
            // 
            // currentErrorBox
            // 
            this.currentErrorBox.Location = new System.Drawing.Point( 125, 255 );
            this.currentErrorBox.Name = "currentErrorBox";
            this.currentErrorBox.ReadOnly = true;
            this.currentErrorBox.Size = new System.Drawing.Size( 50, 20 );
            this.currentErrorBox.TabIndex = 20;
            // 
            // label11
            // 
            this.label11.Location = new System.Drawing.Point( 10, 257 );
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size( 121, 14 );
            this.label11.TabIndex = 19;
            this.label11.Text = "Current average error:";
            // 
            // label9
            // 
            this.label9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.label9.Location = new System.Drawing.Point( 10, 283 );
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size( 165, 2 );
            this.label9.TabIndex = 18;
            // 
            // currentIterationBox
            // 
            this.currentIterationBox.Location = new System.Drawing.Point( 125, 230 );
            this.currentIterationBox.Name = "currentIterationBox";
            this.currentIterationBox.ReadOnly = true;
            this.currentIterationBox.Size = new System.Drawing.Size( 50, 20 );
            this.currentIterationBox.TabIndex = 17;
            // 
            // label8
            // 
            this.label8.Location = new System.Drawing.Point( 10, 232 );
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size( 98, 16 );
            this.label8.TabIndex = 16;
            this.label8.Text = "Current iteration:";
            // 
            // label7
            // 
            this.label7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.label7.Location = new System.Drawing.Point( 10, 220 );
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size( 165, 2 );
            this.label7.TabIndex = 15;
            // 
            // errorLimitCheck
            // 
            this.errorLimitCheck.Location = new System.Drawing.Point( 10, 185 );
            this.errorLimitCheck.Name = "errorLimitCheck";
            this.errorLimitCheck.Size = new System.Drawing.Size( 157, 30 );
            this.errorLimitCheck.TabIndex = 14;
            this.errorLimitCheck.Text = "Use error limit (checked) or iterations limit";
            // 
            // oneNeuronForTwoCheck
            // 
            this.oneNeuronForTwoCheck.Enabled = false;
            this.oneNeuronForTwoCheck.Location = new System.Drawing.Point( 10, 165 );
            this.oneNeuronForTwoCheck.Name = "oneNeuronForTwoCheck";
            this.oneNeuronForTwoCheck.Size = new System.Drawing.Size( 168, 15 );
            this.oneNeuronForTwoCheck.TabIndex = 13;
            this.oneNeuronForTwoCheck.Text = "Use 1 neuron for 2 classes";
            this.oneNeuronForTwoCheck.CheckedChanged += new System.EventHandler( this.oneNeuronForTwoCheck_CheckedChanged );
            // 
            // neuronsBox
            // 
            this.neuronsBox.Location = new System.Drawing.Point( 125, 135 );
            this.neuronsBox.Name = "neuronsBox";
            this.neuronsBox.ReadOnly = true;
            this.neuronsBox.Size = new System.Drawing.Size( 50, 20 );
            this.neuronsBox.TabIndex = 12;
            // 
            // label6
            // 
            this.label6.Location = new System.Drawing.Point( 10, 137 );
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size( 59, 12 );
            this.label6.TabIndex = 11;
            this.label6.Text = "Neurons:";
            // 
            // label5
            // 
            this.label5.Font = new System.Drawing.Font( "Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ( (byte) ( 204 ) ) );
            this.label5.Location = new System.Drawing.Point( 125, 115 );
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size( 58, 17 );
            this.label5.TabIndex = 10;
            this.label5.Text = "( 0 - inifinity )";
            // 
            // iterationsBox
            // 
            this.iterationsBox.Location = new System.Drawing.Point( 125, 95 );
            this.iterationsBox.Name = "iterationsBox";
            this.iterationsBox.Size = new System.Drawing.Size( 50, 20 );
            this.iterationsBox.TabIndex = 9;
            // 
            // label4
            // 
            this.label4.Location = new System.Drawing.Point( 10, 97 );
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size( 90, 13 );
            this.label4.TabIndex = 8;
            this.label4.Text = "Iterations limit:";
            // 
            // errorLimitBox
            // 
            this.errorLimitBox.Location = new System.Drawing.Point( 125, 70 );
            this.errorLimitBox.Name = "errorLimitBox";
            this.errorLimitBox.Size = new System.Drawing.Size( 50, 20 );
            this.errorLimitBox.TabIndex = 7;
            // 
            // label3
            // 
            this.label3.Location = new System.Drawing.Point( 10, 72 );
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size( 110, 15 );
            this.label3.TabIndex = 6;
            this.label3.Text = "Learning error limit:";
            // 
            // alphaBox
            // 
            this.alphaBox.Location = new System.Drawing.Point( 125, 45 );
            this.alphaBox.Name = "alphaBox";
            this.alphaBox.Size = new System.Drawing.Size( 50, 20 );
            this.alphaBox.TabIndex = 5;
            // 
            // label2
            // 
            this.label2.Location = new System.Drawing.Point( 10, 47 );
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size( 120, 15 );
            this.label2.TabIndex = 4;
            this.label2.Text = "Sigmoid\'s alpha value:";
            // 
            // label1
            // 
            this.label1.Location = new System.Drawing.Point( 10, 22 );
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size( 75, 16 );
            this.label1.TabIndex = 2;
            this.label1.Text = "Learning rate:";
            // 
            // learningRateBox
            // 
            this.learningRateBox.Location = new System.Drawing.Point( 125, 20 );
            this.learningRateBox.Name = "learningRateBox";
            this.learningRateBox.Size = new System.Drawing.Size( 50, 20 );
            this.learningRateBox.TabIndex = 3;
            // 
            // stopButton
            // 
            this.stopButton.Enabled = false;
            this.stopButton.Location = new System.Drawing.Point( 100, 297 );
            this.stopButton.Name = "stopButton";
            this.stopButton.Size = new System.Drawing.Size( 75, 23 );
            this.stopButton.TabIndex = 6;
            this.stopButton.Text = "S&top";
            this.stopButton.Click += new System.EventHandler( this.stopButton_Click );
            // 
            // startButton
            // 
            this.startButton.Enabled = false;
            this.startButton.Location = new System.Drawing.Point( 10, 297 );
            this.startButton.Name = "startButton";
            this.startButton.Size = new System.Drawing.Size( 75, 23 );
            this.startButton.TabIndex = 5;
            this.startButton.Text = "&Start";
            this.startButton.Click += new System.EventHandler( this.startButton_Click );
            // 
            // groupBox3
            // 
            this.groupBox3.Controls.Add( this.saveFilesCheck );
            this.groupBox3.Controls.Add( this.label13 );
            this.groupBox3.Controls.Add( this.weightsList );
            this.groupBox3.Controls.Add( this.errorChart );
            this.groupBox3.Controls.Add( this.label12 );
            this.groupBox3.Location = new System.Drawing.Point( 445, 10 );
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new System.Drawing.Size( 220, 330 );
            this.groupBox3.TabIndex = 2;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "Solution";
            // 
            // saveFilesCheck
            // 
            this.saveFilesCheck.Location = new System.Drawing.Point( 10, 305 );
            this.saveFilesCheck.Name = "saveFilesCheck";
            this.saveFilesCheck.Size = new System.Drawing.Size( 195, 15 );
            this.saveFilesCheck.TabIndex = 4;
            this.saveFilesCheck.Text = "Save weights and errors to files";
            // 
            // label13
            // 
            this.label13.Location = new System.Drawing.Point( 10, 170 );
            this.label13.Name = "label13";
            this.label13.Size = new System.Drawing.Size( 100, 12 );
            this.label13.TabIndex = 3;
            this.label13.Text = "Error\'s dynamics:";
            // 
            // weightsList
            // 
            this.weightsList.Columns.AddRange( new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader1,
            this.columnHeader2,
            this.columnHeader3} );
            this.weightsList.FullRowSelect = true;
            this.weightsList.GridLines = true;
            this.weightsList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
            this.weightsList.Location = new System.Drawing.Point( 10, 35 );
            this.weightsList.Name = "weightsList";
            this.weightsList.Size = new System.Drawing.Size( 200, 130 );
            this.weightsList.TabIndex = 2;
            this.weightsList.UseCompatibleStateImageBehavior = false;
            this.weightsList.View = System.Windows.Forms.View.Details;
            // 
            // columnHeader1
            // 
            this.columnHeader1.Text = "Neuron";
            // 
            // columnHeader2
            // 
            this.columnHeader2.Text = "Weight";
            // 
            // columnHeader3
            // 
            this.columnHeader3.Text = "Value";
            // 
            // errorChart
            // 
            this.errorChart.Location = new System.Drawing.Point( 10, 185 );
            this.errorChart.Name = "errorChart";
            this.errorChart.Size = new System.Drawing.Size( 200, 110 );
            this.errorChart.TabIndex = 1;
            this.errorChart.Text = "chart1";
            // 
            // label12
            // 
            this.label12.Location = new System.Drawing.Point( 10, 20 );
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size( 100, 15 );
            this.label12.TabIndex = 0;
            this.label12.Text = "Network weights:";
            // 
            // MainForm
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size( 5, 13 );
            this.ClientSize = new System.Drawing.Size( 674, 350 );
            this.Controls.Add( this.groupBox3 );
            this.Controls.Add( this.groupBox2 );
            this.Controls.Add( this.groupBox1 );
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.Name = "MainForm";
            this.Text = "Classifier using Delta Rule Learning";
            this.Closing += new System.ComponentModel.CancelEventHandler( this.MainForm_Closing );
            this.groupBox1.ResumeLayout( false );
            this.groupBox1.PerformLayout( );
            this.groupBox2.ResumeLayout( false );
            this.groupBox2.PerformLayout( );
            this.groupBox3.ResumeLayout( false );
            this.ResumeLayout( false );

		}
Exemplo n.º 26
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OneLayerPerceptronForm));
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.loadButton = new System.Windows.Forms.Button();
            this.chart = new AForge.Controls.Chart();
            this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.weightsList = new System.Windows.Forms.ListView();
            this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.label4 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.saveFilesCheck = new System.Windows.Forms.CheckBox();
            this.stopButton = new System.Windows.Forms.Button();
            this.startButton = new System.Windows.Forms.Button();
            this.iterationsBox = new System.Windows.Forms.TextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.learningRateBox = new System.Windows.Forms.TextBox();
            this.label1 = new System.Windows.Forms.Label();
            this.groupBox3 = new System.Windows.Forms.GroupBox();
            this.errorChart = new AForge.Controls.Chart();
            this.groupBox1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.groupBox3.SuspendLayout();
            this.SuspendLayout();
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.loadButton);
            this.groupBox1.Controls.Add(this.chart);
            this.groupBox1.Location = new System.Drawing.Point(16, 15);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(352, 372);
            this.groupBox1.TabIndex = 0;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Data";
            // 
            // loadButton
            // 
            this.loadButton.Location = new System.Drawing.Point(16, 329);
            this.loadButton.Name = "loadButton";
            this.loadButton.Size = new System.Drawing.Size(120, 33);
            this.loadButton.TabIndex = 1;
            this.loadButton.Text = "&Load";
            this.loadButton.Click += new System.EventHandler(this.loadButton_Click);
            // 
            // chart
            // 
            this.chart.Location = new System.Drawing.Point(16, 29);
            this.chart.Name = "chart";
            this.chart.RangeX = ((AForge.Range)(resources.GetObject("chart.RangeX")));
            this.chart.RangeY = ((AForge.Range)(resources.GetObject("chart.RangeY")));
            this.chart.Size = new System.Drawing.Size(320, 293);
            this.chart.TabIndex = 0;
            // 
            // openFileDialog
            // 
            this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
            this.openFileDialog.Title = "Select data file";
            // 
            // groupBox2
            // 
            this.groupBox2.Controls.Add(this.weightsList);
            this.groupBox2.Controls.Add(this.label4);
            this.groupBox2.Controls.Add(this.label3);
            this.groupBox2.Controls.Add(this.saveFilesCheck);
            this.groupBox2.Controls.Add(this.stopButton);
            this.groupBox2.Controls.Add(this.startButton);
            this.groupBox2.Controls.Add(this.iterationsBox);
            this.groupBox2.Controls.Add(this.label2);
            this.groupBox2.Controls.Add(this.learningRateBox);
            this.groupBox2.Controls.Add(this.label1);
            this.groupBox2.Location = new System.Drawing.Point(384, 15);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(384, 599);
            this.groupBox2.TabIndex = 1;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Training";
            // 
            // weightsList
            // 
            this.weightsList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader1,
            this.columnHeader2,
            this.columnHeader3});
            this.weightsList.FullRowSelect = true;
            this.weightsList.GridLines = true;
            this.weightsList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
            this.weightsList.Location = new System.Drawing.Point(16, 190);
            this.weightsList.Name = "weightsList";
            this.weightsList.Size = new System.Drawing.Size(352, 395);
            this.weightsList.TabIndex = 14;
            this.weightsList.UseCompatibleStateImageBehavior = false;
            this.weightsList.View = System.Windows.Forms.View.Details;
            // 
            // columnHeader1
            // 
            this.columnHeader1.Text = "Neuron";
            // 
            // columnHeader2
            // 
            this.columnHeader2.Text = "Weigh";
            // 
            // columnHeader3
            // 
            this.columnHeader3.Text = "Value";
            this.columnHeader3.Width = 65;
            // 
            // label4
            // 
            this.label4.Location = new System.Drawing.Point(16, 161);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(88, 23);
            this.label4.TabIndex = 13;
            this.label4.Text = "Weights:";
            // 
            // label3
            // 
            this.label3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.label3.Location = new System.Drawing.Point(16, 146);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(352, 3);
            this.label3.TabIndex = 12;
            // 
            // saveFilesCheck
            // 
            this.saveFilesCheck.Location = new System.Drawing.Point(16, 117);
            this.saveFilesCheck.Name = "saveFilesCheck";
            this.saveFilesCheck.Size = new System.Drawing.Size(240, 23);
            this.saveFilesCheck.TabIndex = 11;
            this.saveFilesCheck.Text = "Save weights and errors to files";
            // 
            // stopButton
            // 
            this.stopButton.Enabled = false;
            this.stopButton.Location = new System.Drawing.Point(248, 72);
            this.stopButton.Name = "stopButton";
            this.stopButton.Size = new System.Drawing.Size(120, 33);
            this.stopButton.TabIndex = 10;
            this.stopButton.Text = "S&top";
            this.stopButton.Click += new System.EventHandler(this.stopButton_Click);
            // 
            // startButton
            // 
            this.startButton.Enabled = false;
            this.startButton.Location = new System.Drawing.Point(248, 28);
            this.startButton.Name = "startButton";
            this.startButton.Size = new System.Drawing.Size(120, 33);
            this.startButton.TabIndex = 9;
            this.startButton.Text = "&Start";
            this.startButton.Click += new System.EventHandler(this.startButton_Click);
            // 
            // iterationsBox
            // 
            this.iterationsBox.Location = new System.Drawing.Point(144, 73);
            this.iterationsBox.Name = "iterationsBox";
            this.iterationsBox.ReadOnly = true;
            this.iterationsBox.Size = new System.Drawing.Size(80, 26);
            this.iterationsBox.TabIndex = 3;
            // 
            // label2
            // 
            this.label2.Location = new System.Drawing.Point(16, 76);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(88, 19);
            this.label2.TabIndex = 2;
            this.label2.Text = "Iterations:";
            // 
            // learningRateBox
            // 
            this.learningRateBox.Location = new System.Drawing.Point(144, 29);
            this.learningRateBox.Name = "learningRateBox";
            this.learningRateBox.Size = new System.Drawing.Size(80, 26);
            this.learningRateBox.TabIndex = 1;
            // 
            // label1
            // 
            this.label1.Location = new System.Drawing.Point(16, 32);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(128, 25);
            this.label1.TabIndex = 0;
            this.label1.Text = "Learning rate:";
            // 
            // groupBox3
            // 
            this.groupBox3.Controls.Add(this.errorChart);
            this.groupBox3.Location = new System.Drawing.Point(16, 395);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new System.Drawing.Size(352, 219);
            this.groupBox3.TabIndex = 2;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "Error\'s dynamics";
            // 
            // errorChart
            // 
            this.errorChart.Location = new System.Drawing.Point(16, 29);
            this.errorChart.Name = "errorChart";
            this.errorChart.RangeX = ((AForge.Range)(resources.GetObject("errorChart.RangeX")));
            this.errorChart.RangeY = ((AForge.Range)(resources.GetObject("errorChart.RangeY")));
            this.errorChart.Size = new System.Drawing.Size(320, 176);
            this.errorChart.TabIndex = 0;
            this.errorChart.Text = "chart1";
            // 
            // OneLayerPerceptronForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
            this.ClientSize = new System.Drawing.Size(794, 634);
            this.Controls.Add(this.groupBox3);
            this.Controls.Add(this.groupBox2);
            this.Controls.Add(this.groupBox1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.Name = "OneLayerPerceptronForm";
            this.Text = "One-Layer Perceptron Classifier";
            this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
            this.groupBox1.ResumeLayout(false);
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.groupBox3.ResumeLayout(false);
            this.ResumeLayout(false);

        }
Exemplo n.º 27
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.chart = new AForge.Controls.Chart();
			this.loadButton = new System.Windows.Forms.Button();
			this.dataList = new System.Windows.Forms.ListView();
			this.noVisualizationLabel = new System.Windows.Forms.Label();
			this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.errorChart = new AForge.Controls.Chart();
			this.label5 = new System.Windows.Forms.Label();
			this.stopButton = new System.Windows.Forms.Button();
			this.iterationsBox = new System.Windows.Forms.TextBox();
			this.label4 = new System.Windows.Forms.Label();
			this.weightsList = new System.Windows.Forms.ListView();
			this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
			this.label3 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.startButton = new System.Windows.Forms.Button();
			this.learningRateBox = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.saveFilesCheck = new System.Windows.Forms.CheckBox();
			this.groupBox1.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.SuspendLayout();
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
																					this.chart,
																					this.loadButton,
																					this.dataList,
																					this.noVisualizationLabel});
			this.groupBox1.Location = new System.Drawing.Point(10, 10);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(190, 420);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "Data";
			// 
			// chart
			// 
			this.chart.Location = new System.Drawing.Point(10, 215);
			this.chart.Name = "chart";
			this.chart.Size = new System.Drawing.Size(170, 170);
			this.chart.TabIndex = 2;
			this.chart.Text = "chart1";
			// 
			// loadButton
			// 
			this.loadButton.Location = new System.Drawing.Point(10, 390);
			this.loadButton.Name = "loadButton";
			this.loadButton.TabIndex = 1;
			this.loadButton.Text = "&Load";
			this.loadButton.Click += new System.EventHandler(this.loadButton_Click);
			// 
			// dataList
			// 
			this.dataList.FullRowSelect = true;
			this.dataList.GridLines = true;
			this.dataList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
			this.dataList.Location = new System.Drawing.Point(10, 20);
			this.dataList.Name = "dataList";
			this.dataList.Size = new System.Drawing.Size(170, 190);
			this.dataList.TabIndex = 0;
			this.dataList.View = System.Windows.Forms.View.Details;
			// 
			// noVisualizationLabel
			// 
			this.noVisualizationLabel.Location = new System.Drawing.Point(10, 215);
			this.noVisualizationLabel.Name = "noVisualizationLabel";
			this.noVisualizationLabel.Size = new System.Drawing.Size(170, 170);
			this.noVisualizationLabel.TabIndex = 2;
			this.noVisualizationLabel.Text = "Visualization is not available.";
			this.noVisualizationLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			this.noVisualizationLabel.Visible = false;
			// 
			// openFileDialog
			// 
			this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
			this.openFileDialog.Title = "Select data file";
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.AddRange(new System.Windows.Forms.Control[] {
																					this.saveFilesCheck,
																					this.errorChart,
																					this.label5,
																					this.stopButton,
																					this.iterationsBox,
																					this.label4,
																					this.weightsList,
																					this.label3,
																					this.label2,
																					this.startButton,
																					this.learningRateBox,
																					this.label1});
			this.groupBox2.Location = new System.Drawing.Point(210, 10);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(240, 420);
			this.groupBox2.TabIndex = 1;
			this.groupBox2.TabStop = false;
			this.groupBox2.Text = "Training";
			// 
			// errorChart
			// 
			this.errorChart.Location = new System.Drawing.Point(10, 270);
			this.errorChart.Name = "errorChart";
			this.errorChart.Size = new System.Drawing.Size(220, 140);
			this.errorChart.TabIndex = 10;
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(10, 250);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(101, 15);
			this.label5.TabIndex = 9;
			this.label5.Text = "Error\'s dynamics:";
			// 
			// stopButton
			// 
			this.stopButton.Enabled = false;
			this.stopButton.Location = new System.Drawing.Point(155, 49);
			this.stopButton.Name = "stopButton";
			this.stopButton.TabIndex = 8;
			this.stopButton.Text = "S&top";
			this.stopButton.Click += new System.EventHandler(this.stopButton_Click);
			// 
			// iterationsBox
			// 
			this.iterationsBox.Location = new System.Drawing.Point(90, 50);
			this.iterationsBox.Name = "iterationsBox";
			this.iterationsBox.ReadOnly = true;
			this.iterationsBox.Size = new System.Drawing.Size(50, 20);
			this.iterationsBox.TabIndex = 7;
			this.iterationsBox.Text = "";
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(10, 52);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(65, 16);
			this.label4.TabIndex = 6;
			this.label4.Text = "Iterations:";
			// 
			// weightsList
			// 
			this.weightsList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
																						  this.columnHeader1,
																						  this.columnHeader2});
			this.weightsList.FullRowSelect = true;
			this.weightsList.GridLines = true;
			this.weightsList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
			this.weightsList.Location = new System.Drawing.Point(10, 130);
			this.weightsList.Name = "weightsList";
			this.weightsList.Size = new System.Drawing.Size(220, 110);
			this.weightsList.TabIndex = 5;
			this.weightsList.View = System.Windows.Forms.View.Details;
			// 
			// columnHeader1
			// 
			this.columnHeader1.Text = "Weight";
			this.columnHeader1.Width = 70;
			// 
			// columnHeader2
			// 
			this.columnHeader2.Text = "Value";
			this.columnHeader2.Width = 100;
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(10, 110);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(112, 16);
			this.label3.TabIndex = 4;
			this.label3.Text = "Perceptron weights:";
			// 
			// label2
			// 
			this.label2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.label2.Location = new System.Drawing.Point(10, 100);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(220, 2);
			this.label2.TabIndex = 3;
			// 
			// startButton
			// 
			this.startButton.Enabled = false;
			this.startButton.Location = new System.Drawing.Point(155, 19);
			this.startButton.Name = "startButton";
			this.startButton.TabIndex = 2;
			this.startButton.Text = "&Start";
			this.startButton.Click += new System.EventHandler(this.startButton_Click);
			// 
			// learningRateBox
			// 
			this.learningRateBox.Location = new System.Drawing.Point(90, 20);
			this.learningRateBox.Name = "learningRateBox";
			this.learningRateBox.Size = new System.Drawing.Size(50, 20);
			this.learningRateBox.TabIndex = 1;
			this.learningRateBox.Text = "";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(10, 22);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(75, 16);
			this.label1.TabIndex = 0;
			this.label1.Text = "Learning rate:";
			// 
			// saveFilesCheck
			// 
			this.saveFilesCheck.Location = new System.Drawing.Point(10, 80);
			this.saveFilesCheck.Name = "saveFilesCheck";
			this.saveFilesCheck.Size = new System.Drawing.Size(182, 16);
			this.saveFilesCheck.TabIndex = 11;
			this.saveFilesCheck.Text = "Save weights and errors to files";
			// 
			// MainForm
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(459, 440);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.groupBox2,
																		  this.groupBox1});
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.Name = "MainForm";
			this.Text = "Perceptron Classifier";
			this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
			this.groupBox1.ResumeLayout(false);
			this.groupBox2.ResumeLayout(false);
			this.ResumeLayout(false);

		}
Exemplo n.º 28
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.errorChart                       = new AForge.Controls.Chart();
     this.groupBox1                        = new System.Windows.Forms.GroupBox();
     this.dataGridView1                    = new System.Windows.Forms.DataGridView();
     this.loadDataButton                   = new System.Windows.Forms.Button();
     this.openFileDialog                   = new System.Windows.Forms.OpenFileDialog();
     this.groupBox3                        = new System.Windows.Forms.GroupBox();
     this.alphaBox1                        = new System.Windows.Forms.TextBox();
     this.label2                           = new System.Windows.Forms.Label();
     this.neuronsBox                       = new System.Windows.Forms.TextBox();
     this.label4                           = new System.Windows.Forms.Label();
     this.momentumBox                      = new System.Windows.Forms.TextBox();
     this.label6                           = new System.Windows.Forms.Label();
     this.learningRateBox                  = new System.Windows.Forms.TextBox();
     this.label1                           = new System.Windows.Forms.Label();
     this.groupBox4                        = new System.Windows.Forms.GroupBox();
     this.label7                           = new System.Windows.Forms.Label();
     this.validErrorBox                    = new System.Windows.Forms.TextBox();
     this.errorPercent                     = new System.Windows.Forms.TextBox();
     this.label3                           = new System.Windows.Forms.Label();
     this.currentIterationBox              = new System.Windows.Forms.TextBox();
     this.label5                           = new System.Windows.Forms.Label();
     this.stopButton                       = new System.Windows.Forms.Button();
     this.startButton                      = new System.Windows.Forms.Button();
     this.groupBox5                        = new System.Windows.Forms.GroupBox();
     this.saveFileDialog1                  = new System.Windows.Forms.SaveFileDialog();
     this.menuStrip1                       = new System.Windows.Forms.MenuStrip();
     this.SaveNetToolStripMenuItem         = new System.Windows.Forms.ToolStripMenuItem();
     this.TestNetToolStripMenuItem         = new System.Windows.Forms.ToolStripMenuItem();
     this.ViewTopologyNetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.groupBox2                        = new System.Windows.Forms.GroupBox();
     this.validChart                       = new AForge.Controls.Chart();
     this.label8                           = new System.Windows.Forms.Label();
     this.inputCountBox                    = new System.Windows.Forms.TextBox();
     this.fileTextBox                      = new System.Windows.Forms.TextBox();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
     this.groupBox3.SuspendLayout();
     this.groupBox4.SuspendLayout();
     this.groupBox5.SuspendLayout();
     this.menuStrip1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // errorChart
     //
     this.errorChart.BackColor = System.Drawing.SystemColors.ControlLightLight;
     this.errorChart.Location  = new System.Drawing.Point(6, 19);
     this.errorChart.Name      = "errorChart";
     this.errorChart.RangeX    = ((AForge.Range)(resources.GetObject("errorChart.RangeX")));
     this.errorChart.RangeY    = ((AForge.Range)(resources.GetObject("errorChart.RangeY")));
     this.errorChart.Size      = new System.Drawing.Size(319, 211);
     this.errorChart.TabIndex  = 3;
     this.errorChart.Text      = "chart1";
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.fileTextBox);
     this.groupBox1.Controls.Add(this.inputCountBox);
     this.groupBox1.Controls.Add(this.label8);
     this.groupBox1.Controls.Add(this.dataGridView1);
     this.groupBox1.Controls.Add(this.loadDataButton);
     this.groupBox1.Location = new System.Drawing.Point(3, 24);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(382, 459);
     this.groupBox1.TabIndex = 1;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Выборка";
     //
     // dataGridView1
     //
     this.dataGridView1.AllowUserToAddRows          = false;
     this.dataGridView1.AllowUserToDeleteRows       = false;
     this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridView1.Location = new System.Drawing.Point(6, 19);
     this.dataGridView1.Name     = "dataGridView1";
     this.dataGridView1.Size     = new System.Drawing.Size(370, 405);
     this.dataGridView1.TabIndex = 2;
     //
     // loadDataButton
     //
     this.loadDataButton.Location = new System.Drawing.Point(6, 431);
     this.loadDataButton.Name     = "loadDataButton";
     this.loadDataButton.Size     = new System.Drawing.Size(124, 23);
     this.loadDataButton.TabIndex = 1;
     this.loadDataButton.Text     = " Загрузить из файла";
     this.loadDataButton.Click   += new System.EventHandler(this.loadDataButton_Click);
     //
     // openFileDialog
     //
     this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
     this.openFileDialog.Title  = "Select data file";
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.alphaBox1);
     this.groupBox3.Controls.Add(this.label2);
     this.groupBox3.Controls.Add(this.neuronsBox);
     this.groupBox3.Controls.Add(this.label4);
     this.groupBox3.Controls.Add(this.momentumBox);
     this.groupBox3.Controls.Add(this.label6);
     this.groupBox3.Controls.Add(this.learningRateBox);
     this.groupBox3.Controls.Add(this.label1);
     this.groupBox3.Location = new System.Drawing.Point(723, 27);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(195, 121);
     this.groupBox3.TabIndex = 4;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Настройки";
     //
     // alphaBox1
     //
     this.alphaBox1.Location = new System.Drawing.Point(124, 98);
     this.alphaBox1.Name     = "alphaBox1";
     this.alphaBox1.Size     = new System.Drawing.Size(59, 20);
     this.alphaBox1.TabIndex = 9;
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(10, 98);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(43, 13);
     this.label2.TabIndex = 8;
     this.label2.Text     = "Альфа:";
     //
     // neuronsBox
     //
     this.neuronsBox.Location = new System.Drawing.Point(124, 71);
     this.neuronsBox.Name     = "neuronsBox";
     this.neuronsBox.Size     = new System.Drawing.Size(60, 20);
     this.neuronsBox.TabIndex = 7;
     this.neuronsBox.Text     = "5,1";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(10, 71);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(115, 15);
     this.label4.TabIndex = 6;
     this.label4.Text     = "Нейроны и слои:";
     //
     // momentumBox
     //
     this.momentumBox.Location = new System.Drawing.Point(125, 45);
     this.momentumBox.Name     = "momentumBox";
     this.momentumBox.Size     = new System.Drawing.Size(60, 20);
     this.momentumBox.TabIndex = 3;
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(10, 47);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(82, 17);
     this.label6.TabIndex = 2;
     this.label6.Text     = "Момент:";
     //
     // learningRateBox
     //
     this.learningRateBox.Location = new System.Drawing.Point(125, 20);
     this.learningRateBox.Name     = "learningRateBox";
     this.learningRateBox.Size     = new System.Drawing.Size(60, 20);
     this.learningRateBox.TabIndex = 1;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(10, 20);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(104, 16);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Коэф. обучения:";
     //
     // groupBox4
     //
     this.groupBox4.Controls.Add(this.label7);
     this.groupBox4.Controls.Add(this.validErrorBox);
     this.groupBox4.Controls.Add(this.errorPercent);
     this.groupBox4.Controls.Add(this.label3);
     this.groupBox4.Controls.Add(this.currentIterationBox);
     this.groupBox4.Controls.Add(this.label5);
     this.groupBox4.Location = new System.Drawing.Point(723, 154);
     this.groupBox4.Name     = "groupBox4";
     this.groupBox4.Size     = new System.Drawing.Size(195, 100);
     this.groupBox4.TabIndex = 6;
     this.groupBox4.TabStop  = false;
     this.groupBox4.Text     = "Текущая итерация";
     //
     // label7
     //
     this.label7.AutoSize = true;
     this.label7.Location = new System.Drawing.Point(3, 77);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(62, 13);
     this.label7.TabIndex = 6;
     this.label7.Text     = "Валидация";
     //
     // validErrorBox
     //
     this.validErrorBox.Location = new System.Drawing.Point(71, 74);
     this.validErrorBox.Name     = "validErrorBox";
     this.validErrorBox.ReadOnly = true;
     this.validErrorBox.Size     = new System.Drawing.Size(113, 20);
     this.validErrorBox.TabIndex = 5;
     //
     // errorPercent
     //
     this.errorPercent.Location = new System.Drawing.Point(58, 16);
     this.errorPercent.Name     = "errorPercent";
     this.errorPercent.ReadOnly = true;
     this.errorPercent.Size     = new System.Drawing.Size(126, 20);
     this.errorPercent.TabIndex = 4;
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(3, 16);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(70, 16);
     this.label3.TabIndex = 2;
     this.label3.Text     = "Ошибка:";
     //
     // currentIterationBox
     //
     this.currentIterationBox.Location = new System.Drawing.Point(71, 48);
     this.currentIterationBox.Name     = "currentIterationBox";
     this.currentIterationBox.ReadOnly = true;
     this.currentIterationBox.Size     = new System.Drawing.Size(113, 20);
     this.currentIterationBox.TabIndex = 1;
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(3, 52);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(70, 16);
     this.label5.TabIndex = 0;
     this.label5.Text     = "Итерация:";
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(108, 19);
     this.stopButton.Name     = "stopButton";
     this.stopButton.Size     = new System.Drawing.Size(81, 23);
     this.stopButton.TabIndex = 8;
     this.stopButton.Text     = "Остановить";
     this.stopButton.Click   += new System.EventHandler(this.stopButton_Click);
     //
     // startButton
     //
     this.startButton.Enabled  = false;
     this.startButton.Location = new System.Drawing.Point(6, 19);
     this.startButton.Name     = "startButton";
     this.startButton.Size     = new System.Drawing.Size(105, 23);
     this.startButton.TabIndex = 7;
     this.startButton.Text     = "Начать обучение";
     this.startButton.Click   += new System.EventHandler(this.startButton_Click);
     //
     // groupBox5
     //
     this.groupBox5.Controls.Add(this.startButton);
     this.groupBox5.Controls.Add(this.stopButton);
     this.groupBox5.Location = new System.Drawing.Point(723, 260);
     this.groupBox5.Name     = "groupBox5";
     this.groupBox5.Size     = new System.Drawing.Size(195, 53);
     this.groupBox5.TabIndex = 11;
     this.groupBox5.TabStop  = false;
     this.groupBox5.Text     = " Обучение";
     //
     // menuStrip1
     //
     this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.SaveNetToolStripMenuItem,
         this.TestNetToolStripMenuItem,
         this.ViewTopologyNetToolStripMenuItem
     });
     this.menuStrip1.Location = new System.Drawing.Point(0, 0);
     this.menuStrip1.Name     = "menuStrip1";
     this.menuStrip1.Size     = new System.Drawing.Size(918, 24);
     this.menuStrip1.TabIndex = 19;
     this.menuStrip1.Text     = "menuStrip1";
     //
     // SaveNetToolStripMenuItem
     //
     this.SaveNetToolStripMenuItem.Name   = "SaveNetToolStripMenuItem";
     this.SaveNetToolStripMenuItem.Size   = new System.Drawing.Size(100, 20);
     this.SaveNetToolStripMenuItem.Text   = "Сохранить сеть";
     this.SaveNetToolStripMenuItem.Click += new System.EventHandler(this.SaveNetToolStripMenuItem_Click);
     //
     // TestNetToolStripMenuItem
     //
     this.TestNetToolStripMenuItem.Name   = "TestNetToolStripMenuItem";
     this.TestNetToolStripMenuItem.Size   = new System.Drawing.Size(42, 20);
     this.TestNetToolStripMenuItem.Text   = "Тест";
     this.TestNetToolStripMenuItem.Click += new System.EventHandler(this.TestNetToolStripMenuItem_Click);
     //
     // ViewTopologyNetToolStripMenuItem
     //
     this.ViewTopologyNetToolStripMenuItem.Name   = "ViewTopologyNetToolStripMenuItem";
     this.ViewTopologyNetToolStripMenuItem.Size   = new System.Drawing.Size(72, 20);
     this.ViewTopologyNetToolStripMenuItem.Text   = "Топология";
     this.ViewTopologyNetToolStripMenuItem.Click += new System.EventHandler(this.ViewTopologyNetToolStripMenuItem_Click);
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.validChart);
     this.groupBox2.Controls.Add(this.errorChart);
     this.groupBox2.Location = new System.Drawing.Point(386, 24);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(331, 459);
     this.groupBox2.TabIndex = 20;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Изменение ошибки обучения";
     //
     // validChart
     //
     this.validChart.BackColor = System.Drawing.SystemColors.ControlLightLight;
     this.validChart.Location  = new System.Drawing.Point(6, 242);
     this.validChart.Name      = "validChart";
     this.validChart.RangeX    = ((AForge.Range)(resources.GetObject("validChart.RangeX")));
     this.validChart.RangeY    = ((AForge.Range)(resources.GetObject("validChart.RangeY")));
     this.validChart.Size      = new System.Drawing.Size(319, 211);
     this.validChart.TabIndex  = 4;
     this.validChart.Text      = "chart1";
     //
     // label8
     //
     this.label8.AutoSize = true;
     this.label8.Location = new System.Drawing.Point(226, 434);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(82, 13);
     this.label8.TabIndex = 3;
     this.label8.Text     = "Кол-во входов:";
     //
     // inputCountBox
     //
     this.inputCountBox.Enabled  = false;
     this.inputCountBox.Location = new System.Drawing.Point(314, 431);
     this.inputCountBox.Name     = "inputCountBox";
     this.inputCountBox.ReadOnly = true;
     this.inputCountBox.Size     = new System.Drawing.Size(62, 20);
     this.inputCountBox.TabIndex = 4;
     //
     // fileTextBox
     //
     this.fileTextBox.Enabled  = false;
     this.fileTextBox.Location = new System.Drawing.Point(136, 433);
     this.fileTextBox.Name     = "fileTextBox";
     this.fileTextBox.ReadOnly = true;
     this.fileTextBox.Size     = new System.Drawing.Size(84, 20);
     this.fileTextBox.TabIndex = 5;
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(918, 483);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox5);
     this.Controls.Add(this.groupBox4);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.menuStrip1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MainMenuStrip   = this.menuStrip1;
     this.MaximizeBox     = false;
     this.Name            = "Form1";
     this.Text            = "MLP Learning Regression";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.Form1_Closing);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
     this.groupBox3.ResumeLayout(false);
     this.groupBox3.PerformLayout();
     this.groupBox4.ResumeLayout(false);
     this.groupBox4.PerformLayout();
     this.groupBox5.ResumeLayout(false);
     this.menuStrip1.ResumeLayout(false);
     this.menuStrip1.PerformLayout();
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemplo n.º 29
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.chart = new AForge.Controls.Chart();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.label1 = new System.Windows.Forms.Label();
            this.minXBox = new System.Windows.Forms.TextBox();
            this.maxXBox = new System.Windows.Forms.TextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.modeBox = new System.Windows.Forms.ComboBox();
            this.label8 = new System.Windows.Forms.Label();
            this.selectionBox = new System.Windows.Forms.ComboBox();
            this.label7 = new System.Windows.Forms.Label();
            this.label6 = new System.Windows.Forms.Label();
            this.iterationsBox = new System.Windows.Forms.TextBox();
            this.label5 = new System.Windows.Forms.Label();
            this.onlyBestCheck = new System.Windows.Forms.CheckBox();
            this.chromosomeLengthBox = new System.Windows.Forms.TextBox();
            this.label4 = new System.Windows.Forms.Label();
            this.populationSizeBox = new System.Windows.Forms.TextBox();
            this.label3 = new System.Windows.Forms.Label();
            this.startButton = new System.Windows.Forms.Button();
            this.stopButton = new System.Windows.Forms.Button();
            this.groupBox3 = new System.Windows.Forms.GroupBox();
            this.currentValueBox = new System.Windows.Forms.TextBox();
            this.label10 = new System.Windows.Forms.Label();
            this.currentIterationBox = new System.Windows.Forms.TextBox();
            this.label9 = new System.Windows.Forms.Label();
            this.groupBox1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.groupBox3.SuspendLayout();
            this.SuspendLayout();
            // 
            // chart
            // 
            this.chart.Location = new System.Drawing.Point(10, 20);
            this.chart.Name = "chart";
            this.chart.Size = new System.Drawing.Size(280, 270);
            this.chart.TabIndex = 0;
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.chart);
            this.groupBox1.Controls.Add(this.label1);
            this.groupBox1.Controls.Add(this.minXBox);
            this.groupBox1.Controls.Add(this.maxXBox);
            this.groupBox1.Controls.Add(this.label2);
            this.groupBox1.Location = new System.Drawing.Point(10, 10);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(300, 330);
            this.groupBox1.TabIndex = 0;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Function";
            // 
            // label1
            // 
            this.label1.Location = new System.Drawing.Point(10, 297);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(41, 13);
            this.label1.TabIndex = 3;
            this.label1.Text = "Range:";
            // 
            // minXBox
            // 
            this.minXBox.Location = new System.Drawing.Point(60, 295);
            this.minXBox.Name = "minXBox";
            this.minXBox.Size = new System.Drawing.Size(50, 20);
            this.minXBox.TabIndex = 3;
            this.minXBox.Text = "";
            this.minXBox.TextChanged += new System.EventHandler(this.minXBox_TextChanged);
            // 
            // maxXBox
            // 
            this.maxXBox.Location = new System.Drawing.Point(130, 295);
            this.maxXBox.Name = "maxXBox";
            this.maxXBox.Size = new System.Drawing.Size(50, 20);
            this.maxXBox.TabIndex = 4;
            this.maxXBox.Text = "";
            this.maxXBox.TextChanged += new System.EventHandler(this.maxXBox_TextChanged);
            // 
            // label2
            // 
            this.label2.Location = new System.Drawing.Point(115, 297);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(8, 16);
            this.label2.TabIndex = 3;
            this.label2.Text = "-";
            // 
            // groupBox2
            // 
            this.groupBox2.Controls.Add(this.modeBox);
            this.groupBox2.Controls.Add(this.label8);
            this.groupBox2.Controls.Add(this.selectionBox);
            this.groupBox2.Controls.Add(this.label7);
            this.groupBox2.Controls.Add(this.label6);
            this.groupBox2.Controls.Add(this.iterationsBox);
            this.groupBox2.Controls.Add(this.label5);
            this.groupBox2.Controls.Add(this.onlyBestCheck);
            this.groupBox2.Controls.Add(this.chromosomeLengthBox);
            this.groupBox2.Controls.Add(this.label4);
            this.groupBox2.Controls.Add(this.populationSizeBox);
            this.groupBox2.Controls.Add(this.label3);
            this.groupBox2.Location = new System.Drawing.Point(320, 10);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(185, 222);
            this.groupBox2.TabIndex = 1;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Settings";
            // 
            // modeBox
            // 
            this.modeBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.modeBox.Items.AddRange(new object[] {
														 "Maximize",
														 "Minimize"});
            this.modeBox.Location = new System.Drawing.Point(110, 95);
            this.modeBox.Name = "modeBox";
            this.modeBox.Size = new System.Drawing.Size(65, 21);
            this.modeBox.TabIndex = 7;
            // 
            // label8
            // 
            this.label8.Location = new System.Drawing.Point(10, 97);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(110, 17);
            this.label8.TabIndex = 6;
            this.label8.Text = "Optimization mode:";
            // 
            // selectionBox
            // 
            this.selectionBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.selectionBox.Items.AddRange(new object[] {
															  "Elite",
															  "Rank",
															  "Roulette"});
            this.selectionBox.Location = new System.Drawing.Point(110, 70);
            this.selectionBox.Name = "selectionBox";
            this.selectionBox.Size = new System.Drawing.Size(65, 21);
            this.selectionBox.TabIndex = 5;
            // 
            // label7
            // 
            this.label7.Location = new System.Drawing.Point(10, 72);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(100, 16);
            this.label7.TabIndex = 4;
            this.label7.Text = "Selection method:";
            // 
            // label6
            // 
            this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this.label6.Location = new System.Drawing.Point(125, 175);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(56, 16);
            this.label6.TabIndex = 10;
            this.label6.Text = "( 0 - inifinity )";
            // 
            // iterationsBox
            // 
            this.iterationsBox.Location = new System.Drawing.Point(125, 155);
            this.iterationsBox.Name = "iterationsBox";
            this.iterationsBox.Size = new System.Drawing.Size(50, 20);
            this.iterationsBox.TabIndex = 9;
            this.iterationsBox.Text = "";
            // 
            // label5
            // 
            this.label5.Location = new System.Drawing.Point(10, 157);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(64, 16);
            this.label5.TabIndex = 8;
            this.label5.Text = "Iterations:";
            // 
            // onlyBestCheck
            // 
            this.onlyBestCheck.Location = new System.Drawing.Point(10, 195);
            this.onlyBestCheck.Name = "onlyBestCheck";
            this.onlyBestCheck.Size = new System.Drawing.Size(144, 16);
            this.onlyBestCheck.TabIndex = 11;
            this.onlyBestCheck.Text = "Show only best solution";
            // 
            // chromosomeLengthBox
            // 
            this.chromosomeLengthBox.Location = new System.Drawing.Point(125, 45);
            this.chromosomeLengthBox.Name = "chromosomeLengthBox";
            this.chromosomeLengthBox.Size = new System.Drawing.Size(50, 20);
            this.chromosomeLengthBox.TabIndex = 3;
            this.chromosomeLengthBox.Text = "";
            // 
            // label4
            // 
            this.label4.Location = new System.Drawing.Point(10, 47);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(110, 12);
            this.label4.TabIndex = 2;
            this.label4.Text = "Chromosome length:";
            // 
            // populationSizeBox
            // 
            this.populationSizeBox.Location = new System.Drawing.Point(125, 20);
            this.populationSizeBox.Name = "populationSizeBox";
            this.populationSizeBox.Size = new System.Drawing.Size(50, 20);
            this.populationSizeBox.TabIndex = 1;
            this.populationSizeBox.Text = "";
            // 
            // label3
            // 
            this.label3.Location = new System.Drawing.Point(10, 22);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(85, 16);
            this.label3.TabIndex = 0;
            this.label3.Text = "Population size:";
            // 
            // startButton
            // 
            this.startButton.Location = new System.Drawing.Point(340, 317);
            this.startButton.Name = "startButton";
            this.startButton.TabIndex = 3;
            this.startButton.Text = "&Start";
            this.startButton.Click += new System.EventHandler(this.startButton_Click);
            // 
            // stopButton
            // 
            this.stopButton.Enabled = false;
            this.stopButton.Location = new System.Drawing.Point(430, 317);
            this.stopButton.Name = "stopButton";
            this.stopButton.TabIndex = 4;
            this.stopButton.Text = "S&top";
            this.stopButton.Click += new System.EventHandler(this.stopButton_Click);
            // 
            // groupBox3
            // 
            this.groupBox3.Controls.Add(this.currentValueBox);
            this.groupBox3.Controls.Add(this.label10);
            this.groupBox3.Controls.Add(this.currentIterationBox);
            this.groupBox3.Controls.Add(this.label9);
            this.groupBox3.Location = new System.Drawing.Point(320, 235);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new System.Drawing.Size(185, 75);
            this.groupBox3.TabIndex = 2;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "Current iteration";
            // 
            // currentValueBox
            // 
            this.currentValueBox.Location = new System.Drawing.Point(125, 45);
            this.currentValueBox.Name = "currentValueBox";
            this.currentValueBox.ReadOnly = true;
            this.currentValueBox.Size = new System.Drawing.Size(50, 20);
            this.currentValueBox.TabIndex = 3;
            this.currentValueBox.Text = "";
            // 
            // label10
            // 
            this.label10.Location = new System.Drawing.Point(10, 47);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(60, 15);
            this.label10.TabIndex = 2;
            this.label10.Text = "Value:";
            // 
            // currentIterationBox
            // 
            this.currentIterationBox.Location = new System.Drawing.Point(125, 20);
            this.currentIterationBox.Name = "currentIterationBox";
            this.currentIterationBox.ReadOnly = true;
            this.currentIterationBox.Size = new System.Drawing.Size(50, 20);
            this.currentIterationBox.TabIndex = 1;
            this.currentIterationBox.Text = "";
            // 
            // label9
            // 
            this.label9.Location = new System.Drawing.Point(10, 22);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(60, 16);
            this.label9.TabIndex = 0;
            this.label9.Text = "Iteration:";
            // 
            // MainForm
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(514, 350);
            this.Controls.Add(this.groupBox3);
            this.Controls.Add(this.stopButton);
            this.Controls.Add(this.startButton);
            this.Controls.Add(this.groupBox2);
            this.Controls.Add(this.groupBox1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.Name = "MainForm";
            this.Text = "1D Optimization using Genetic Algorithms";
            this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
            this.groupBox1.ResumeLayout(false);
            this.groupBox2.ResumeLayout(false);
            this.groupBox3.ResumeLayout(false);
            this.ResumeLayout(false);

        }
Exemplo n.º 30
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
     this.mapControl          = new AForge.Controls.Chart();
     this.groupBox2           = new System.Windows.Forms.GroupBox();
     this.greedyCrossoverBox  = new System.Windows.Forms.CheckBox();
     this.label5              = new System.Windows.Forms.Label();
     this.iterationsBox       = new System.Windows.Forms.TextBox();
     this.label4              = new System.Windows.Forms.Label();
     this.selectionBox        = new System.Windows.Forms.ComboBox();
     this.label3              = new System.Windows.Forms.Label();
     this.populationSizeBox   = new System.Windows.Forms.TextBox();
     this.label2              = new System.Windows.Forms.Label();
     this.pathLengthBox       = new System.Windows.Forms.TextBox();
     this.label7              = new System.Windows.Forms.Label();
     this.currentIterationBox = new System.Windows.Forms.TextBox();
     this.label6              = new System.Windows.Forms.Label();
     this.startButton         = new System.Windows.Forms.Button();
     this.stopButton          = new System.Windows.Forms.Button();
     this.label1              = new System.Windows.Forms.Label();
     this.citiesCountBox      = new System.Windows.Forms.TextBox();
     this.generateMapButton   = new System.Windows.Forms.Button();
     this.label8              = new System.Windows.Forms.Label();
     this.textBox1            = new System.Windows.Forms.TextBox();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // mapControl
     //
     this.mapControl.Location = new System.Drawing.Point(288, 12);
     this.mapControl.Name     = "mapControl";
     this.mapControl.RangeX   = ((AForge.Range)(resources.GetObject("mapControl.RangeX")));
     this.mapControl.RangeY   = ((AForge.Range)(resources.GetObject("mapControl.RangeY")));
     this.mapControl.Size     = new System.Drawing.Size(400, 400);
     this.mapControl.TabIndex = 0;
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.greedyCrossoverBox);
     this.groupBox2.Controls.Add(this.label5);
     this.groupBox2.Controls.Add(this.iterationsBox);
     this.groupBox2.Controls.Add(this.label4);
     this.groupBox2.Controls.Add(this.selectionBox);
     this.groupBox2.Controls.Add(this.label3);
     this.groupBox2.Controls.Add(this.populationSizeBox);
     this.groupBox2.Controls.Add(this.label2);
     this.groupBox2.Location = new System.Drawing.Point(15, 63);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(236, 137);
     this.groupBox2.TabIndex = 1;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Ustawienia";
     this.groupBox2.Enter   += new System.EventHandler(this.groupBox2_Enter);
     //
     // greedyCrossoverBox
     //
     this.greedyCrossoverBox.Location        = new System.Drawing.Point(10, 70);
     this.greedyCrossoverBox.Name            = "greedyCrossoverBox";
     this.greedyCrossoverBox.Size            = new System.Drawing.Size(120, 24);
     this.greedyCrossoverBox.TabIndex        = 7;
     this.greedyCrossoverBox.Text            = "Greedy Crossover";
     this.greedyCrossoverBox.CheckedChanged += new System.EventHandler(this.greedyCrossoverBox_CheckedChanged);
     //
     // label5
     //
     this.label5.Font     = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label5.Location = new System.Drawing.Point(55, 117);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(106, 15);
     this.label5.TabIndex = 6;
     this.label5.Text     = "( 0 - nieskoñczonoœæ )";
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(94, 97);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.Size     = new System.Drawing.Size(50, 20);
     this.iterationsBox.TabIndex = 5;
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(6, 97);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(77, 16);
     this.label4.TabIndex = 4;
     this.label4.Text     = "Ile iteracji?:";
     //
     // selectionBox
     //
     this.selectionBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.selectionBox.Items.AddRange(new object[] {
         "Elite",
         "Rank",
         "Roulette"
     });
     this.selectionBox.Location = new System.Drawing.Point(165, 45);
     this.selectionBox.Name     = "selectionBox";
     this.selectionBox.Size     = new System.Drawing.Size(65, 21);
     this.selectionBox.TabIndex = 3;
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(10, 47);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(100, 16);
     this.label3.TabIndex = 2;
     this.label3.Text     = "Metoda selekcji:";
     //
     // populationSizeBox
     //
     this.populationSizeBox.Location = new System.Drawing.Point(180, 19);
     this.populationSizeBox.Name     = "populationSizeBox";
     this.populationSizeBox.Size     = new System.Drawing.Size(50, 20);
     this.populationSizeBox.TabIndex = 1;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(10, 22);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(120, 16);
     this.label2.TabIndex = 0;
     this.label2.Text     = "Rozmiar populacji:";
     //
     // pathLengthBox
     //
     this.pathLengthBox.Location = new System.Drawing.Point(112, 284);
     this.pathLengthBox.Name     = "pathLengthBox";
     this.pathLengthBox.ReadOnly = true;
     this.pathLengthBox.Size     = new System.Drawing.Size(50, 20);
     this.pathLengthBox.TabIndex = 3;
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(9, 288);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(94, 16);
     this.label7.TabIndex = 2;
     this.label7.Text     = "Najlepsza trasa:";
     //
     // currentIterationBox
     //
     this.currentIterationBox.Location = new System.Drawing.Point(112, 241);
     this.currentIterationBox.Name     = "currentIterationBox";
     this.currentIterationBox.ReadOnly = true;
     this.currentIterationBox.Size     = new System.Drawing.Size(50, 20);
     this.currentIterationBox.TabIndex = 1;
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(9, 241);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(89, 16);
     this.label6.TabIndex = 0;
     this.label6.Text     = "Licznik iteracji:";
     //
     // startButton
     //
     this.startButton.Location = new System.Drawing.Point(12, 206);
     this.startButton.Name     = "startButton";
     this.startButton.Size     = new System.Drawing.Size(75, 23);
     this.startButton.TabIndex = 3;
     this.startButton.Text     = "&Start";
     this.startButton.Click   += new System.EventHandler(this.startButton_Click);
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(176, 206);
     this.stopButton.Name     = "stopButton";
     this.stopButton.Size     = new System.Drawing.Size(75, 23);
     this.stopButton.TabIndex = 4;
     this.stopButton.Text     = "S&top";
     this.stopButton.Click   += new System.EventHandler(this.stopButton_Click);
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(22, 12);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(137, 16);
     this.label1.TabIndex = 1;
     this.label1.Text     = "Ile miast wygenerowaæ?";
     //
     // citiesCountBox
     //
     this.citiesCountBox.Location = new System.Drawing.Point(154, 9);
     this.citiesCountBox.Name     = "citiesCountBox";
     this.citiesCountBox.Size     = new System.Drawing.Size(50, 20);
     this.citiesCountBox.TabIndex = 2;
     //
     // generateMapButton
     //
     this.generateMapButton.Location = new System.Drawing.Point(24, 35);
     this.generateMapButton.Name     = "generateMapButton";
     this.generateMapButton.Size     = new System.Drawing.Size(227, 22);
     this.generateMapButton.TabIndex = 3;
     this.generateMapButton.Text     = "Wygeneruj miasta";
     this.generateMapButton.Click   += new System.EventHandler(this.generateMapButton_Click);
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(12, 329);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(94, 16);
     this.label8.TabIndex = 5;
     this.label8.Text     = "Czas:";
     //
     // textBox1
     //
     this.textBox1.Location     = new System.Drawing.Point(112, 325);
     this.textBox1.Name         = "textBox1";
     this.textBox1.ReadOnly     = true;
     this.textBox1.Size         = new System.Drawing.Size(119, 20);
     this.textBox1.TabIndex     = 6;
     this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(706, 445);
     this.Controls.Add(this.textBox1);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.pathLengthBox);
     this.Controls.Add(this.generateMapButton);
     this.Controls.Add(this.label7);
     this.Controls.Add(this.stopButton);
     this.Controls.Add(this.currentIterationBox);
     this.Controls.Add(this.citiesCountBox);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.startButton);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.mapControl);
     this.Controls.Add(this.groupBox2);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.Name            = "MainForm";
     this.Text            = "Zalewa TSP Aforge";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemplo n.º 31
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components             = new System.ComponentModel.Container();
     this.groupBox1              = new System.Windows.Forms.GroupBox();
     this.dataList               = new System.Windows.Forms.ListView();
     this.yColumnHeader          = new System.Windows.Forms.ColumnHeader();
     this.estimatedYColumnHeader = new System.Windows.Forms.ColumnHeader();
     this.loadDataButton         = new System.Windows.Forms.Button();
     this.openFileDialog         = new System.Windows.Forms.OpenFileDialog();
     this.groupBox2              = new System.Windows.Forms.GroupBox();
     this.chart                     = new AForge.Controls.Chart();
     this.groupBox3                 = new System.Windows.Forms.GroupBox();
     this.moreSettingsButton        = new System.Windows.Forms.Button();
     this.label10                   = new System.Windows.Forms.Label();
     this.iterationsBox             = new System.Windows.Forms.TextBox();
     this.label9                    = new System.Windows.Forms.Label();
     this.label8                    = new System.Windows.Forms.Label();
     this.predictionSizeBox         = new System.Windows.Forms.TextBox();
     this.label7                    = new System.Windows.Forms.Label();
     this.windowSizeBox             = new System.Windows.Forms.TextBox();
     this.label6                    = new System.Windows.Forms.Label();
     this.label5                    = new System.Windows.Forms.Label();
     this.geneticMethodBox          = new System.Windows.Forms.ComboBox();
     this.label4                    = new System.Windows.Forms.Label();
     this.functionsSetBox           = new System.Windows.Forms.ComboBox();
     this.label3                    = new System.Windows.Forms.Label();
     this.selectionBox              = new System.Windows.Forms.ComboBox();
     this.label2                    = new System.Windows.Forms.Label();
     this.populationSizeBox         = new System.Windows.Forms.TextBox();
     this.label1                    = new System.Windows.Forms.Label();
     this.startButton               = new System.Windows.Forms.Button();
     this.stopButton                = new System.Windows.Forms.Button();
     this.groupBox4                 = new System.Windows.Forms.GroupBox();
     this.currentPredictionErrorBox = new System.Windows.Forms.TextBox();
     this.label13                   = new System.Windows.Forms.Label();
     this.currentLearningErrorBox   = new System.Windows.Forms.TextBox();
     this.label12                   = new System.Windows.Forms.Label();
     this.currentIterationBox       = new System.Windows.Forms.TextBox();
     this.label11                   = new System.Windows.Forms.Label();
     this.groupBox5                 = new System.Windows.Forms.GroupBox();
     this.solutionBox               = new System.Windows.Forms.TextBox();
     this.toolTip                   = new System.Windows.Forms.ToolTip(this.components);
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.groupBox4.SuspendLayout();
     this.groupBox5.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.dataList);
     this.groupBox1.Controls.Add(this.loadDataButton);
     this.groupBox1.Location = new System.Drawing.Point(10, 10);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(180, 380);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Data";
     //
     // dataList
     //
     this.dataList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
         this.yColumnHeader,
         this.estimatedYColumnHeader
     });
     this.dataList.FullRowSelect = true;
     this.dataList.GridLines     = true;
     this.dataList.Location      = new System.Drawing.Point(10, 20);
     this.dataList.Name          = "dataList";
     this.dataList.Size          = new System.Drawing.Size(160, 315);
     this.dataList.TabIndex      = 1;
     this.dataList.View          = System.Windows.Forms.View.Details;
     //
     // yColumnHeader
     //
     this.yColumnHeader.Text  = "Y:Real";
     this.yColumnHeader.Width = 70;
     //
     // estimatedYColumnHeader
     //
     this.estimatedYColumnHeader.Text  = "Y:Estimated";
     this.estimatedYColumnHeader.Width = 70;
     //
     // loadDataButton
     //
     this.loadDataButton.Location = new System.Drawing.Point(10, 345);
     this.loadDataButton.Name     = "loadDataButton";
     this.loadDataButton.TabIndex = 1;
     this.loadDataButton.Text     = "&Load";
     this.loadDataButton.Click   += new System.EventHandler(this.loadDataButton_Click);
     //
     // openFileDialog
     //
     this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
     this.openFileDialog.Title  = "Select data file";
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.chart);
     this.groupBox2.Location = new System.Drawing.Point(200, 10);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(300, 380);
     this.groupBox2.TabIndex = 1;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Function";
     //
     // chart
     //
     this.chart.Location = new System.Drawing.Point(10, 20);
     this.chart.Name     = "chart";
     this.chart.Size     = new System.Drawing.Size(280, 350);
     this.chart.TabIndex = 0;
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.moreSettingsButton);
     this.groupBox3.Controls.Add(this.label10);
     this.groupBox3.Controls.Add(this.iterationsBox);
     this.groupBox3.Controls.Add(this.label9);
     this.groupBox3.Controls.Add(this.label8);
     this.groupBox3.Controls.Add(this.predictionSizeBox);
     this.groupBox3.Controls.Add(this.label7);
     this.groupBox3.Controls.Add(this.windowSizeBox);
     this.groupBox3.Controls.Add(this.label6);
     this.groupBox3.Controls.Add(this.label5);
     this.groupBox3.Controls.Add(this.geneticMethodBox);
     this.groupBox3.Controls.Add(this.label4);
     this.groupBox3.Controls.Add(this.functionsSetBox);
     this.groupBox3.Controls.Add(this.label3);
     this.groupBox3.Controls.Add(this.selectionBox);
     this.groupBox3.Controls.Add(this.label2);
     this.groupBox3.Controls.Add(this.populationSizeBox);
     this.groupBox3.Controls.Add(this.label1);
     this.groupBox3.Location = new System.Drawing.Point(510, 10);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(185, 240);
     this.groupBox3.TabIndex = 2;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Settings";
     //
     // moreSettingsButton
     //
     this.moreSettingsButton.Font      = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204)));
     this.moreSettingsButton.ForeColor = System.Drawing.SystemColors.ControlText;
     this.moreSettingsButton.Location  = new System.Drawing.Point(10, 220);
     this.moreSettingsButton.Name      = "moreSettingsButton";
     this.moreSettingsButton.Size      = new System.Drawing.Size(25, 15);
     this.moreSettingsButton.TabIndex  = 17;
     this.moreSettingsButton.Text      = ">>";
     this.toolTip.SetToolTip(this.moreSettingsButton, "More settings");
     this.moreSettingsButton.Click += new System.EventHandler(this.moreSettingsButton_Click);
     //
     // label10
     //
     this.label10.Font     = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.label10.Location = new System.Drawing.Point(125, 220);
     this.label10.Name     = "label10";
     this.label10.Size     = new System.Drawing.Size(58, 14);
     this.label10.TabIndex = 16;
     this.label10.Text     = "( 0 - inifinity )";
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(125, 200);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.Size     = new System.Drawing.Size(50, 20);
     this.iterationsBox.TabIndex = 15;
     this.iterationsBox.Text     = "";
     //
     // label9
     //
     this.label9.Location = new System.Drawing.Point(10, 202);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(70, 16);
     this.label9.TabIndex = 14;
     this.label9.Text     = "Iterations:";
     //
     // label8
     //
     this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.label8.Location    = new System.Drawing.Point(10, 190);
     this.label8.Name        = "label8";
     this.label8.Size        = new System.Drawing.Size(165, 2);
     this.label8.TabIndex    = 13;
     //
     // predictionSizeBox
     //
     this.predictionSizeBox.Location     = new System.Drawing.Point(125, 160);
     this.predictionSizeBox.Name         = "predictionSizeBox";
     this.predictionSizeBox.Size         = new System.Drawing.Size(50, 20);
     this.predictionSizeBox.TabIndex     = 12;
     this.predictionSizeBox.Text         = "";
     this.predictionSizeBox.TextChanged += new System.EventHandler(this.predictionSizeBox_TextChanged);
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(10, 162);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(90, 16);
     this.label7.TabIndex = 11;
     this.label7.Text     = "Prediction size:";
     //
     // windowSizeBox
     //
     this.windowSizeBox.Location     = new System.Drawing.Point(125, 135);
     this.windowSizeBox.Name         = "windowSizeBox";
     this.windowSizeBox.Size         = new System.Drawing.Size(50, 20);
     this.windowSizeBox.TabIndex     = 10;
     this.windowSizeBox.Text         = "";
     this.windowSizeBox.TextChanged += new System.EventHandler(this.windowSizeBox_TextChanged);
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(10, 137);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(80, 16);
     this.label6.TabIndex = 9;
     this.label6.Text     = "Window size:";
     //
     // label5
     //
     this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.label5.Location    = new System.Drawing.Point(10, 125);
     this.label5.Name        = "label5";
     this.label5.Size        = new System.Drawing.Size(165, 2);
     this.label5.TabIndex    = 8;
     //
     // geneticMethodBox
     //
     this.geneticMethodBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.geneticMethodBox.Items.AddRange(new object[] {
         "GP",
         "GEP"
     });
     this.geneticMethodBox.Location = new System.Drawing.Point(110, 95);
     this.geneticMethodBox.Name     = "geneticMethodBox";
     this.geneticMethodBox.Size     = new System.Drawing.Size(65, 21);
     this.geneticMethodBox.TabIndex = 7;
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(10, 97);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(100, 16);
     this.label4.TabIndex = 6;
     this.label4.Text     = "Genetic method:";
     //
     // functionsSetBox
     //
     this.functionsSetBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.functionsSetBox.Items.AddRange(new object[] {
         "Simple",
         "Extended"
     });
     this.functionsSetBox.Location = new System.Drawing.Point(110, 70);
     this.functionsSetBox.Name     = "functionsSetBox";
     this.functionsSetBox.Size     = new System.Drawing.Size(65, 21);
     this.functionsSetBox.TabIndex = 5;
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(10, 72);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(100, 16);
     this.label3.TabIndex = 4;
     this.label3.Text     = "Function set:";
     //
     // selectionBox
     //
     this.selectionBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.selectionBox.Items.AddRange(new object[] {
         "Elite",
         "Rank",
         "Roulette"
     });
     this.selectionBox.Location = new System.Drawing.Point(110, 45);
     this.selectionBox.Name     = "selectionBox";
     this.selectionBox.Size     = new System.Drawing.Size(65, 21);
     this.selectionBox.TabIndex = 3;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(10, 47);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(100, 16);
     this.label2.TabIndex = 2;
     this.label2.Text     = "Selection method:";
     //
     // populationSizeBox
     //
     this.populationSizeBox.Location = new System.Drawing.Point(125, 20);
     this.populationSizeBox.Name     = "populationSizeBox";
     this.populationSizeBox.Size     = new System.Drawing.Size(50, 20);
     this.populationSizeBox.TabIndex = 1;
     this.populationSizeBox.Text     = "";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(10, 22);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(100, 16);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Population size:";
     //
     // startButton
     //
     this.startButton.Enabled  = false;
     this.startButton.Location = new System.Drawing.Point(535, 364);
     this.startButton.Name     = "startButton";
     this.startButton.TabIndex = 3;
     this.startButton.Text     = "&Start";
     this.startButton.Click   += new System.EventHandler(this.startButton_Click);
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(620, 364);
     this.stopButton.Name     = "stopButton";
     this.stopButton.TabIndex = 4;
     this.stopButton.Text     = "S&top";
     this.stopButton.Click   += new System.EventHandler(this.stopButton_Click);
     //
     // groupBox4
     //
     this.groupBox4.Controls.Add(this.currentPredictionErrorBox);
     this.groupBox4.Controls.Add(this.label13);
     this.groupBox4.Controls.Add(this.currentLearningErrorBox);
     this.groupBox4.Controls.Add(this.label12);
     this.groupBox4.Controls.Add(this.currentIterationBox);
     this.groupBox4.Controls.Add(this.label11);
     this.groupBox4.Location = new System.Drawing.Point(510, 255);
     this.groupBox4.Name     = "groupBox4";
     this.groupBox4.Size     = new System.Drawing.Size(185, 100);
     this.groupBox4.TabIndex = 5;
     this.groupBox4.TabStop  = false;
     this.groupBox4.Text     = "Current iteration:";
     //
     // currentPredictionErrorBox
     //
     this.currentPredictionErrorBox.Location = new System.Drawing.Point(125, 70);
     this.currentPredictionErrorBox.Name     = "currentPredictionErrorBox";
     this.currentPredictionErrorBox.ReadOnly = true;
     this.currentPredictionErrorBox.Size     = new System.Drawing.Size(50, 20);
     this.currentPredictionErrorBox.TabIndex = 5;
     this.currentPredictionErrorBox.Text     = "";
     //
     // label13
     //
     this.label13.Location = new System.Drawing.Point(10, 72);
     this.label13.Name     = "label13";
     this.label13.Size     = new System.Drawing.Size(100, 16);
     this.label13.TabIndex = 4;
     this.label13.Text     = "Prediction error:";
     //
     // currentLearningErrorBox
     //
     this.currentLearningErrorBox.Location = new System.Drawing.Point(125, 45);
     this.currentLearningErrorBox.Name     = "currentLearningErrorBox";
     this.currentLearningErrorBox.ReadOnly = true;
     this.currentLearningErrorBox.Size     = new System.Drawing.Size(50, 20);
     this.currentLearningErrorBox.TabIndex = 3;
     this.currentLearningErrorBox.Text     = "";
     //
     // label12
     //
     this.label12.Location = new System.Drawing.Point(10, 47);
     this.label12.Name     = "label12";
     this.label12.Size     = new System.Drawing.Size(80, 16);
     this.label12.TabIndex = 2;
     this.label12.Text     = "Learning error:";
     //
     // currentIterationBox
     //
     this.currentIterationBox.Location = new System.Drawing.Point(125, 20);
     this.currentIterationBox.Name     = "currentIterationBox";
     this.currentIterationBox.ReadOnly = true;
     this.currentIterationBox.Size     = new System.Drawing.Size(50, 20);
     this.currentIterationBox.TabIndex = 1;
     this.currentIterationBox.Text     = "";
     //
     // label11
     //
     this.label11.Location = new System.Drawing.Point(10, 22);
     this.label11.Name     = "label11";
     this.label11.Size     = new System.Drawing.Size(70, 16);
     this.label11.TabIndex = 0;
     this.label11.Text     = "Iteration:";
     //
     // groupBox5
     //
     this.groupBox5.Controls.Add(this.solutionBox);
     this.groupBox5.Location = new System.Drawing.Point(10, 395);
     this.groupBox5.Name     = "groupBox5";
     this.groupBox5.Size     = new System.Drawing.Size(685, 50);
     this.groupBox5.TabIndex = 6;
     this.groupBox5.TabStop  = false;
     this.groupBox5.Text     = "Solution";
     //
     // solutionBox
     //
     this.solutionBox.Location = new System.Drawing.Point(10, 20);
     this.solutionBox.Name     = "solutionBox";
     this.solutionBox.ReadOnly = true;
     this.solutionBox.Size     = new System.Drawing.Size(665, 20);
     this.solutionBox.TabIndex = 0;
     this.solutionBox.Text     = "";
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(704, 455);
     this.Controls.Add(this.groupBox5);
     this.Controls.Add(this.groupBox4);
     this.Controls.Add(this.stopButton);
     this.Controls.Add(this.startButton);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.Name            = "MainForm";
     this.Text            = "Time Series Prediction using Genetic Programming and Gene Expression Programming";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.groupBox3.ResumeLayout(false);
     this.groupBox4.ResumeLayout(false);
     this.groupBox5.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 32
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.dataList = new System.Windows.Forms.ListView();
			this.xColumnHeader = new System.Windows.Forms.ColumnHeader();
			this.yColumnHeader = new System.Windows.Forms.ColumnHeader();
			this.loadDataButton = new System.Windows.Forms.Button();
			this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.chart = new AForge.Controls.Chart();
			this.groupBox3 = new System.Windows.Forms.GroupBox();
			this.geneticMethodBox = new System.Windows.Forms.ComboBox();
			this.label8 = new System.Windows.Forms.Label();
			this.functionsSetBox = new System.Windows.Forms.ComboBox();
			this.label7 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.iterationsBox = new System.Windows.Forms.TextBox();
			this.label3 = new System.Windows.Forms.Label();
			this.selectionBox = new System.Windows.Forms.ComboBox();
			this.label2 = new System.Windows.Forms.Label();
			this.populationSizeBox = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.startButton = new System.Windows.Forms.Button();
			this.stopButton = new System.Windows.Forms.Button();
			this.groupBox4 = new System.Windows.Forms.GroupBox();
			this.currentErrorBox = new System.Windows.Forms.TextBox();
			this.label6 = new System.Windows.Forms.Label();
			this.currentIterationBox = new System.Windows.Forms.TextBox();
			this.label5 = new System.Windows.Forms.Label();
			this.groupBox5 = new System.Windows.Forms.GroupBox();
			this.solutionBox = new System.Windows.Forms.TextBox();
			this.groupBox1.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.groupBox3.SuspendLayout();
			this.groupBox4.SuspendLayout();
			this.groupBox5.SuspendLayout();
			this.SuspendLayout();
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.dataList);
			this.groupBox1.Controls.Add(this.loadDataButton);
			this.groupBox1.Location = new System.Drawing.Point(10, 10);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(180, 310);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "Data";
			// 
			// dataList
			// 
			this.dataList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
																					   this.xColumnHeader,
																					   this.yColumnHeader});
			this.dataList.FullRowSelect = true;
			this.dataList.GridLines = true;
			this.dataList.Location = new System.Drawing.Point(10, 20);
			this.dataList.Name = "dataList";
			this.dataList.Size = new System.Drawing.Size(160, 255);
			this.dataList.TabIndex = 0;
			this.dataList.View = System.Windows.Forms.View.Details;
			// 
			// xColumnHeader
			// 
			this.xColumnHeader.Text = "X";
			// 
			// yColumnHeader
			// 
			this.yColumnHeader.Text = "Y";
			// 
			// loadDataButton
			// 
			this.loadDataButton.Location = new System.Drawing.Point(10, 280);
			this.loadDataButton.Name = "loadDataButton";
			this.loadDataButton.TabIndex = 1;
			this.loadDataButton.Text = "&Load";
			this.loadDataButton.Click += new System.EventHandler(this.loadDataButton_Click);
			// 
			// openFileDialog
			// 
			this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
			this.openFileDialog.Title = "Select data file";
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.Add(this.chart);
			this.groupBox2.Location = new System.Drawing.Point(200, 10);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(300, 310);
			this.groupBox2.TabIndex = 1;
			this.groupBox2.TabStop = false;
			this.groupBox2.Text = "Function";
			// 
			// chart
			// 
			this.chart.Location = new System.Drawing.Point(10, 20);
			this.chart.Name = "chart";
			this.chart.Size = new System.Drawing.Size(280, 280);
			this.chart.TabIndex = 0;
			// 
			// groupBox3
			// 
			this.groupBox3.Controls.Add(this.geneticMethodBox);
			this.groupBox3.Controls.Add(this.label8);
			this.groupBox3.Controls.Add(this.functionsSetBox);
			this.groupBox3.Controls.Add(this.label7);
			this.groupBox3.Controls.Add(this.label4);
			this.groupBox3.Controls.Add(this.iterationsBox);
			this.groupBox3.Controls.Add(this.label3);
			this.groupBox3.Controls.Add(this.selectionBox);
			this.groupBox3.Controls.Add(this.label2);
			this.groupBox3.Controls.Add(this.populationSizeBox);
			this.groupBox3.Controls.Add(this.label1);
			this.groupBox3.Location = new System.Drawing.Point(510, 10);
			this.groupBox3.Name = "groupBox3";
			this.groupBox3.Size = new System.Drawing.Size(185, 198);
			this.groupBox3.TabIndex = 2;
			this.groupBox3.TabStop = false;
			this.groupBox3.Text = "Settings";
			// 
			// geneticMethodBox
			// 
			this.geneticMethodBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.geneticMethodBox.Items.AddRange(new object[] {
																  "GP",
																  "GEP"});
			this.geneticMethodBox.Location = new System.Drawing.Point(110, 95);
			this.geneticMethodBox.Name = "geneticMethodBox";
			this.geneticMethodBox.Size = new System.Drawing.Size(65, 21);
			this.geneticMethodBox.TabIndex = 7;
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(10, 97);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(88, 16);
			this.label8.TabIndex = 6;
			this.label8.Text = "Genetic method:";
			// 
			// functionsSetBox
			// 
			this.functionsSetBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.functionsSetBox.Items.AddRange(new object[] {
																 "Simple",
																 "Extended"});
			this.functionsSetBox.Location = new System.Drawing.Point(110, 70);
			this.functionsSetBox.Name = "functionsSetBox";
			this.functionsSetBox.Size = new System.Drawing.Size(65, 21);
			this.functionsSetBox.TabIndex = 5;
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(10, 72);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(80, 16);
			this.label7.TabIndex = 4;
			this.label7.Text = "Functions set:";
			// 
			// label4
			// 
			this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204)));
			this.label4.Location = new System.Drawing.Point(125, 175);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(56, 15);
			this.label4.TabIndex = 10;
			this.label4.Text = "( 0 - inifinity )";
			// 
			// iterationsBox
			// 
			this.iterationsBox.Location = new System.Drawing.Point(125, 155);
			this.iterationsBox.Name = "iterationsBox";
			this.iterationsBox.Size = new System.Drawing.Size(50, 20);
			this.iterationsBox.TabIndex = 9;
			this.iterationsBox.Text = "";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(10, 157);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(60, 16);
			this.label3.TabIndex = 8;
			this.label3.Text = "Iterations:";
			// 
			// selectionBox
			// 
			this.selectionBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.selectionBox.Items.AddRange(new object[] {
															  "Elite",
															  "Rank",
															  "Roulette"});
			this.selectionBox.Location = new System.Drawing.Point(110, 45);
			this.selectionBox.Name = "selectionBox";
			this.selectionBox.Size = new System.Drawing.Size(65, 21);
			this.selectionBox.TabIndex = 3;
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(10, 47);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(100, 16);
			this.label2.TabIndex = 2;
			this.label2.Text = "Selection method:";
			// 
			// populationSizeBox
			// 
			this.populationSizeBox.Location = new System.Drawing.Point(125, 20);
			this.populationSizeBox.Name = "populationSizeBox";
			this.populationSizeBox.Size = new System.Drawing.Size(50, 20);
			this.populationSizeBox.TabIndex = 1;
			this.populationSizeBox.Text = "";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(10, 22);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(85, 16);
			this.label1.TabIndex = 0;
			this.label1.Text = "Population size:";
			// 
			// startButton
			// 
			this.startButton.Enabled = false;
			this.startButton.Location = new System.Drawing.Point(530, 297);
			this.startButton.Name = "startButton";
			this.startButton.TabIndex = 3;
			this.startButton.Text = "&Start";
			this.startButton.Click += new System.EventHandler(this.startButton_Click);
			// 
			// stopButton
			// 
			this.stopButton.Enabled = false;
			this.stopButton.Location = new System.Drawing.Point(620, 297);
			this.stopButton.Name = "stopButton";
			this.stopButton.TabIndex = 4;
			this.stopButton.Text = "S&top";
			this.stopButton.Click += new System.EventHandler(this.stopButton_Click);
			// 
			// groupBox4
			// 
			this.groupBox4.Controls.Add(this.currentErrorBox);
			this.groupBox4.Controls.Add(this.label6);
			this.groupBox4.Controls.Add(this.currentIterationBox);
			this.groupBox4.Controls.Add(this.label5);
			this.groupBox4.Location = new System.Drawing.Point(510, 216);
			this.groupBox4.Name = "groupBox4";
			this.groupBox4.Size = new System.Drawing.Size(185, 75);
			this.groupBox4.TabIndex = 5;
			this.groupBox4.TabStop = false;
			this.groupBox4.Text = "Current iteration";
			// 
			// currentErrorBox
			// 
			this.currentErrorBox.Location = new System.Drawing.Point(125, 45);
			this.currentErrorBox.Name = "currentErrorBox";
			this.currentErrorBox.ReadOnly = true;
			this.currentErrorBox.Size = new System.Drawing.Size(50, 20);
			this.currentErrorBox.TabIndex = 3;
			this.currentErrorBox.Text = "";
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(10, 47);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(70, 16);
			this.label6.TabIndex = 2;
			this.label6.Text = "Error:";
			// 
			// currentIterationBox
			// 
			this.currentIterationBox.Location = new System.Drawing.Point(125, 20);
			this.currentIterationBox.Name = "currentIterationBox";
			this.currentIterationBox.ReadOnly = true;
			this.currentIterationBox.Size = new System.Drawing.Size(50, 20);
			this.currentIterationBox.TabIndex = 1;
			this.currentIterationBox.Text = "";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(10, 22);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(70, 16);
			this.label5.TabIndex = 0;
			this.label5.Text = "Iteration:";
			// 
			// groupBox5
			// 
			this.groupBox5.Controls.Add(this.solutionBox);
			this.groupBox5.Location = new System.Drawing.Point(10, 330);
			this.groupBox5.Name = "groupBox5";
			this.groupBox5.Size = new System.Drawing.Size(685, 50);
			this.groupBox5.TabIndex = 6;
			this.groupBox5.TabStop = false;
			this.groupBox5.Text = "Solution:";
			// 
			// solutionBox
			// 
			this.solutionBox.Location = new System.Drawing.Point(10, 20);
			this.solutionBox.Name = "solutionBox";
			this.solutionBox.ReadOnly = true;
			this.solutionBox.Size = new System.Drawing.Size(665, 20);
			this.solutionBox.TabIndex = 0;
			this.solutionBox.Text = "";
			// 
			// MainForm
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(704, 390);
			this.Controls.Add(this.groupBox5);
			this.Controls.Add(this.groupBox4);
			this.Controls.Add(this.stopButton);
			this.Controls.Add(this.startButton);
			this.Controls.Add(this.groupBox3);
			this.Controls.Add(this.groupBox2);
			this.Controls.Add(this.groupBox1);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.Name = "MainForm";
			this.Text = "Approximation (Symbolic Regression) using Genetic Programming and Gene Expression" +
				" Programming";
			this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
			this.groupBox1.ResumeLayout(false);
			this.groupBox2.ResumeLayout(false);
			this.groupBox3.ResumeLayout(false);
			this.groupBox4.ResumeLayout(false);
			this.groupBox5.ResumeLayout(false);
			this.ResumeLayout(false);

		}
Exemplo n.º 33
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.dataList = new System.Windows.Forms.ListView();
            this.xColumnHeader = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.yColumnHeader = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.loadDataButton = new System.Windows.Forms.Button();
            this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.chart = new AForge.Controls.Chart();
            this.groupBox3 = new System.Windows.Forms.GroupBox();
            this.cbNguyenWidrow = new System.Windows.Forms.CheckBox();
            this.neuronsBox = new System.Windows.Forms.TextBox();
            this.label4 = new System.Windows.Forms.Label();
            this.alphaBox = new System.Windows.Forms.TextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.learningRateBox = new System.Windows.Forms.TextBox();
            this.label1 = new System.Windows.Forms.Label();
            this.label8 = new System.Windows.Forms.Label();
            this.iterationsBox = new System.Windows.Forms.TextBox();
            this.label10 = new System.Windows.Forms.Label();
            this.label9 = new System.Windows.Forms.Label();
            this.groupBox4 = new System.Windows.Forms.GroupBox();
            this.currentErrorBox = new System.Windows.Forms.TextBox();
            this.label3 = new System.Windows.Forms.Label();
            this.currentIterationBox = new System.Windows.Forms.TextBox();
            this.label5 = new System.Windows.Forms.Label();
            this.stopButton = new System.Windows.Forms.Button();
            this.startButton = new System.Windows.Forms.Button();
            this.groupBox1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.groupBox3.SuspendLayout();
            this.groupBox4.SuspendLayout();
            this.SuspendLayout();
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.dataList);
            this.groupBox1.Controls.Add(this.loadDataButton);
            this.groupBox1.Location = new System.Drawing.Point(10, 10);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(180, 320);
            this.groupBox1.TabIndex = 1;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Data";
            // 
            // dataList
            // 
            this.dataList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.xColumnHeader,
            this.yColumnHeader});
            this.dataList.FullRowSelect = true;
            this.dataList.GridLines = true;
            this.dataList.Location = new System.Drawing.Point(10, 20);
            this.dataList.Name = "dataList";
            this.dataList.Size = new System.Drawing.Size(160, 255);
            this.dataList.TabIndex = 0;
            this.dataList.UseCompatibleStateImageBehavior = false;
            this.dataList.View = System.Windows.Forms.View.Details;
            // 
            // xColumnHeader
            // 
            this.xColumnHeader.Text = "X";
            // 
            // yColumnHeader
            // 
            this.yColumnHeader.Text = "Y";
            // 
            // loadDataButton
            // 
            this.loadDataButton.Location = new System.Drawing.Point(10, 285);
            this.loadDataButton.Name = "loadDataButton";
            this.loadDataButton.Size = new System.Drawing.Size(75, 23);
            this.loadDataButton.TabIndex = 1;
            this.loadDataButton.Text = "&Load";
            this.loadDataButton.Click += new System.EventHandler(this.loadDataButton_Click);
            // 
            // openFileDialog
            // 
            this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
            this.openFileDialog.Title = "Select data file";
            // 
            // groupBox2
            // 
            this.groupBox2.Controls.Add(this.chart);
            this.groupBox2.Location = new System.Drawing.Point(200, 10);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(300, 320);
            this.groupBox2.TabIndex = 2;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Function";
            // 
            // chart
            // 
            this.chart.Location = new System.Drawing.Point(10, 20);
            this.chart.Name = "chart";
            this.chart.RangeX = ((AForge.Range)(resources.GetObject("chart.RangeX")));
            this.chart.RangeY = ((AForge.Range)(resources.GetObject("chart.RangeY")));
            this.chart.Size = new System.Drawing.Size(280, 290);
            this.chart.TabIndex = 0;
            // 
            // groupBox3
            // 
            this.groupBox3.Controls.Add(this.cbNguyenWidrow);
            this.groupBox3.Controls.Add(this.neuronsBox);
            this.groupBox3.Controls.Add(this.label4);
            this.groupBox3.Controls.Add(this.alphaBox);
            this.groupBox3.Controls.Add(this.label2);
            this.groupBox3.Controls.Add(this.learningRateBox);
            this.groupBox3.Controls.Add(this.label1);
            this.groupBox3.Controls.Add(this.label8);
            this.groupBox3.Controls.Add(this.iterationsBox);
            this.groupBox3.Controls.Add(this.label10);
            this.groupBox3.Controls.Add(this.label9);
            this.groupBox3.Location = new System.Drawing.Point(510, 10);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new System.Drawing.Size(195, 195);
            this.groupBox3.TabIndex = 4;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "Settings";
            // 
            // cbNguyenWidrow
            // 
            this.cbNguyenWidrow.AutoSize = true;
            this.cbNguyenWidrow.Location = new System.Drawing.Point(13, 120);
            this.cbNguyenWidrow.Name = "cbNguyenWidrow";
            this.cbNguyenWidrow.Size = new System.Drawing.Size(166, 17);
            this.cbNguyenWidrow.TabIndex = 26;
            this.cbNguyenWidrow.Text = "Use Nguyen-Widrow Weights";
            this.cbNguyenWidrow.UseVisualStyleBackColor = true;
            // 
            // neuronsBox
            // 
            this.neuronsBox.Location = new System.Drawing.Point(124, 71);
            this.neuronsBox.Name = "neuronsBox";
            this.neuronsBox.Size = new System.Drawing.Size(60, 20);
            this.neuronsBox.TabIndex = 7;
            // 
            // label4
            // 
            this.label4.Location = new System.Drawing.Point(9, 73);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(115, 15);
            this.label4.TabIndex = 6;
            this.label4.Text = "Neurons in first layer:";
            // 
            // alphaBox
            // 
            this.alphaBox.Location = new System.Drawing.Point(124, 46);
            this.alphaBox.Name = "alphaBox";
            this.alphaBox.Size = new System.Drawing.Size(60, 20);
            this.alphaBox.TabIndex = 5;
            // 
            // label2
            // 
            this.label2.Location = new System.Drawing.Point(9, 48);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(120, 15);
            this.label2.TabIndex = 4;
            this.label2.Text = "Sigmoid\'s alpha value:";
            // 
            // learningRateBox
            // 
            this.learningRateBox.Location = new System.Drawing.Point(125, 20);
            this.learningRateBox.Name = "learningRateBox";
            this.learningRateBox.Size = new System.Drawing.Size(60, 20);
            this.learningRateBox.TabIndex = 1;
            // 
            // label1
            // 
            this.label1.Location = new System.Drawing.Point(10, 22);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(78, 14);
            this.label1.TabIndex = 0;
            this.label1.Text = "Learning rate:";
            // 
            // label8
            // 
            this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.label8.Location = new System.Drawing.Point(10, 147);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(175, 2);
            this.label8.TabIndex = 22;
            // 
            // iterationsBox
            // 
            this.iterationsBox.Location = new System.Drawing.Point(125, 155);
            this.iterationsBox.Name = "iterationsBox";
            this.iterationsBox.Size = new System.Drawing.Size(60, 20);
            this.iterationsBox.TabIndex = 9;
            // 
            // label10
            // 
            this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label10.Location = new System.Drawing.Point(126, 175);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(58, 14);
            this.label10.TabIndex = 25;
            this.label10.Text = "( 0 - inifinity )";
            // 
            // label9
            // 
            this.label9.Location = new System.Drawing.Point(10, 157);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(70, 16);
            this.label9.TabIndex = 8;
            this.label9.Text = "Iterations:";
            // 
            // groupBox4
            // 
            this.groupBox4.Controls.Add(this.currentErrorBox);
            this.groupBox4.Controls.Add(this.label3);
            this.groupBox4.Controls.Add(this.currentIterationBox);
            this.groupBox4.Controls.Add(this.label5);
            this.groupBox4.Location = new System.Drawing.Point(510, 210);
            this.groupBox4.Name = "groupBox4";
            this.groupBox4.Size = new System.Drawing.Size(195, 75);
            this.groupBox4.TabIndex = 6;
            this.groupBox4.TabStop = false;
            this.groupBox4.Text = "Current iteration";
            // 
            // currentErrorBox
            // 
            this.currentErrorBox.Location = new System.Drawing.Point(125, 45);
            this.currentErrorBox.Name = "currentErrorBox";
            this.currentErrorBox.ReadOnly = true;
            this.currentErrorBox.Size = new System.Drawing.Size(60, 20);
            this.currentErrorBox.TabIndex = 3;
            // 
            // label3
            // 
            this.label3.Location = new System.Drawing.Point(10, 47);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(70, 16);
            this.label3.TabIndex = 2;
            this.label3.Text = "Error:";
            // 
            // currentIterationBox
            // 
            this.currentIterationBox.Location = new System.Drawing.Point(125, 20);
            this.currentIterationBox.Name = "currentIterationBox";
            this.currentIterationBox.ReadOnly = true;
            this.currentIterationBox.Size = new System.Drawing.Size(60, 20);
            this.currentIterationBox.TabIndex = 1;
            // 
            // label5
            // 
            this.label5.Location = new System.Drawing.Point(10, 22);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(70, 16);
            this.label5.TabIndex = 0;
            this.label5.Text = "Iteration:";
            // 
            // stopButton
            // 
            this.stopButton.Enabled = false;
            this.stopButton.Location = new System.Drawing.Point(630, 305);
            this.stopButton.Name = "stopButton";
            this.stopButton.Size = new System.Drawing.Size(75, 23);
            this.stopButton.TabIndex = 8;
            this.stopButton.Text = "S&top";
            this.stopButton.Click += new System.EventHandler(this.stopButton_Click);
            // 
            // startButton
            // 
            this.startButton.Enabled = false;
            this.startButton.Location = new System.Drawing.Point(540, 305);
            this.startButton.Name = "startButton";
            this.startButton.Size = new System.Drawing.Size(75, 23);
            this.startButton.TabIndex = 7;
            this.startButton.Text = "&Start";
            this.startButton.Click += new System.EventHandler(this.startButton_Click);
            // 
            // MainForm
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(714, 338);
            this.Controls.Add(this.stopButton);
            this.Controls.Add(this.startButton);
            this.Controls.Add(this.groupBox4);
            this.Controls.Add(this.groupBox3);
            this.Controls.Add(this.groupBox2);
            this.Controls.Add(this.groupBox1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.Name = "MainForm";
            this.Text = "Approximation using Multi-Layer Neural Network (Resilient Backpropagation)";
            this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
            this.groupBox1.ResumeLayout(false);
            this.groupBox2.ResumeLayout(false);
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            this.groupBox4.ResumeLayout(false);
            this.groupBox4.PerformLayout();
            this.ResumeLayout(false);

        }
Exemplo n.º 34
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.generateMapButton = new System.Windows.Forms.Button();
     this.citiesCountBox = new System.Windows.Forms.TextBox();
     this.label1 = new System.Windows.Forms.Label();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.stopButton = new System.Windows.Forms.Button();
     this.startButton = new System.Windows.Forms.Button();
     this.currentIterationBox = new System.Windows.Forms.TextBox();
     this.label8 = new System.Windows.Forms.Label();
     this.label7 = new System.Windows.Forms.Label();
     this.rateBox = new System.Windows.Forms.TextBox();
     this.label5 = new System.Windows.Forms.Label();
     this.iterationsBox = new System.Windows.Forms.TextBox();
     this.label6 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.neuronsBox = new System.Windows.Forms.TextBox();
     this.label2 = new System.Windows.Forms.Label();
     this.label4 = new System.Windows.Forms.Label();
     this.radiusBox = new System.Windows.Forms.TextBox();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     this.chart = new AForge.Controls.Chart( );
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.generateMapButton);
     this.groupBox1.Controls.Add(this.citiesCountBox);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.chart);
     this.groupBox1.Location = new System.Drawing.Point(10, 10);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(300, 340);
     this.groupBox1.TabIndex = 1;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Map";
     //
     // generateMapButton
     //
     this.generateMapButton.Location = new System.Drawing.Point(110, 309);
     this.generateMapButton.Name = "generateMapButton";
     this.generateMapButton.Size = new System.Drawing.Size(75, 22);
     this.generateMapButton.TabIndex = 3;
     this.generateMapButton.Text = "&Generate";
     this.generateMapButton.Click += new System.EventHandler(this.generateMapButton_Click);
     //
     // citiesCountBox
     //
     this.citiesCountBox.Location = new System.Drawing.Point(50, 310);
     this.citiesCountBox.Name = "citiesCountBox";
     this.citiesCountBox.Size = new System.Drawing.Size(50, 20);
     this.citiesCountBox.TabIndex = 2;
     this.citiesCountBox.Text = "";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(10, 312);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(40, 16);
     this.label1.TabIndex = 1;
     this.label1.Text = "Cities:";
     //
     // chart
     //
     this.chart.Location = new System.Drawing.Point(10, 20);
     this.chart.Name = "chart";
     this.chart.Size = new System.Drawing.Size(280, 280);
     this.chart.TabIndex = 4;
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.radiusBox);
     this.groupBox2.Controls.Add(this.label4);
     this.groupBox2.Controls.Add(this.stopButton);
     this.groupBox2.Controls.Add(this.startButton);
     this.groupBox2.Controls.Add(this.currentIterationBox);
     this.groupBox2.Controls.Add(this.label8);
     this.groupBox2.Controls.Add(this.label7);
     this.groupBox2.Controls.Add(this.rateBox);
     this.groupBox2.Controls.Add(this.label5);
     this.groupBox2.Controls.Add(this.iterationsBox);
     this.groupBox2.Controls.Add(this.label6);
     this.groupBox2.Controls.Add(this.label3);
     this.groupBox2.Controls.Add(this.neuronsBox);
     this.groupBox2.Controls.Add(this.label2);
     this.groupBox2.Location = new System.Drawing.Point(320, 10);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size(180, 340);
     this.groupBox2.TabIndex = 2;
     this.groupBox2.TabStop = false;
     this.groupBox2.Text = "Neural Network";
     //
     // stopButton
     //
     this.stopButton.Enabled = false;
     this.stopButton.Location = new System.Drawing.Point(95, 305);
     this.stopButton.Name = "stopButton";
     this.stopButton.TabIndex = 23;
     this.stopButton.Text = "S&top";
     this.stopButton.Click += new System.EventHandler(this.stopButton_Click);
     //
     // startButton
     //
     this.startButton.Location = new System.Drawing.Point(10, 305);
     this.startButton.Name = "startButton";
     this.startButton.TabIndex = 22;
     this.startButton.Text = "&Start";
     this.startButton.Click += new System.EventHandler(this.startButton_Click);
     //
     // currentIterationBox
     //
     this.currentIterationBox.Location = new System.Drawing.Point(110, 150);
     this.currentIterationBox.Name = "currentIterationBox";
     this.currentIterationBox.ReadOnly = true;
     this.currentIterationBox.Size = new System.Drawing.Size(60, 20);
     this.currentIterationBox.TabIndex = 21;
     this.currentIterationBox.Text = "";
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(10, 152);
     this.label8.Name = "label8";
     this.label8.Size = new System.Drawing.Size(100, 16);
     this.label8.TabIndex = 20;
     this.label8.Text = "Curren iteration:";
     //
     // label7
     //
     this.label7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label7.Location = new System.Drawing.Point(10, 139);
     this.label7.Name = "label7";
     this.label7.Size = new System.Drawing.Size(160, 2);
     this.label7.TabIndex = 19;
     //
     // rateBox
     //
     this.rateBox.Location = new System.Drawing.Point(110, 85);
     this.rateBox.Name = "rateBox";
     this.rateBox.Size = new System.Drawing.Size(60, 20);
     this.rateBox.TabIndex = 18;
     this.rateBox.Text = "";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(10, 87);
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size(100, 16);
     this.label5.TabIndex = 17;
     this.label5.Text = "Initial learning rate:";
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(110, 60);
     this.iterationsBox.Name = "iterationsBox";
     this.iterationsBox.Size = new System.Drawing.Size(60, 20);
     this.iterationsBox.TabIndex = 16;
     this.iterationsBox.Text = "";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(10, 62);
     this.label6.Name = "label6";
     this.label6.Size = new System.Drawing.Size(60, 16);
     this.label6.TabIndex = 15;
     this.label6.Text = "Iteraions:";
     //
     // label3
     //
     this.label3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label3.Location = new System.Drawing.Point(10, 48);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(160, 2);
     this.label3.TabIndex = 4;
     //
     // neuronsBox
     //
     this.neuronsBox.Location = new System.Drawing.Point(110, 20);
     this.neuronsBox.Name = "neuronsBox";
     this.neuronsBox.Size = new System.Drawing.Size(60, 20);
     this.neuronsBox.TabIndex = 1;
     this.neuronsBox.Text = "";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(10, 22);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(60, 16);
     this.label2.TabIndex = 0;
     this.label2.Text = "Neurons:";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(10, 112);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(100, 16);
     this.label4.TabIndex = 24;
     this.label4.Text = "Learning radius:";
     //
     // radiusBox
     //
     this.radiusBox.Location = new System.Drawing.Point(110, 110);
     this.radiusBox.Name = "radiusBox";
     this.radiusBox.Size = new System.Drawing.Size(60, 20);
     this.radiusBox.TabIndex = 25;
     this.radiusBox.Text = "";
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(509, 360);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox = false;
     this.Name = "MainForm";
     this.Text = "Traveling Salesman Problem using Elastic Net";
     this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 35
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.dataList = new System.Windows.Forms.ListView();
            this.yColumnHeader = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.estimatedYColumnHeader = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.loadDataButton = new System.Windows.Forms.Button();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.chart = new AForge.Controls.Chart();
            this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
            this.stopButton = new System.Windows.Forms.Button();
            this.startButton = new System.Windows.Forms.Button();
            this.groupBox4 = new System.Windows.Forms.GroupBox();
            this.currentPredictionErrorBox = new System.Windows.Forms.TextBox();
            this.label13 = new System.Windows.Forms.Label();
            this.currentLearningErrorBox = new System.Windows.Forms.TextBox();
            this.label12 = new System.Windows.Forms.Label();
            this.currentIterationBox = new System.Windows.Forms.TextBox();
            this.label11 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.label9 = new System.Windows.Forms.Label();
            this.label10 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.windowSizeBox = new System.Windows.Forms.TextBox();
            this.label7 = new System.Windows.Forms.Label();
            this.predictionSizeBox = new System.Windows.Forms.TextBox();
            this.iterationsBox = new System.Windows.Forms.TextBox();
            this.label8 = new System.Windows.Forms.Label();
            this.label1 = new System.Windows.Forms.Label();
            this.learningRateBox = new System.Windows.Forms.TextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.alphaBox = new System.Windows.Forms.TextBox();
            this.groupBox3 = new System.Windows.Forms.GroupBox();
            this.groupBox1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.groupBox4.SuspendLayout();
            this.groupBox3.SuspendLayout();
            this.SuspendLayout();
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.dataList);
            this.groupBox1.Controls.Add(this.loadDataButton);
            this.groupBox1.Location = new System.Drawing.Point(10, 10);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(180, 380);
            this.groupBox1.TabIndex = 0;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Data";
            // 
            // dataList
            // 
            this.dataList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.yColumnHeader,
            this.estimatedYColumnHeader});
            this.dataList.FullRowSelect = true;
            this.dataList.GridLines = true;
            this.dataList.Location = new System.Drawing.Point(10, 20);
            this.dataList.Name = "dataList";
            this.dataList.Size = new System.Drawing.Size(160, 315);
            this.dataList.TabIndex = 3;
            this.dataList.UseCompatibleStateImageBehavior = false;
            this.dataList.View = System.Windows.Forms.View.Details;
            // 
            // yColumnHeader
            // 
            this.yColumnHeader.Text = "Y:Real";
            this.yColumnHeader.Width = 70;
            // 
            // estimatedYColumnHeader
            // 
            this.estimatedYColumnHeader.Text = "Y:Estimated";
            this.estimatedYColumnHeader.Width = 70;
            // 
            // loadDataButton
            // 
            this.loadDataButton.Location = new System.Drawing.Point(10, 345);
            this.loadDataButton.Name = "loadDataButton";
            this.loadDataButton.Size = new System.Drawing.Size(75, 23);
            this.loadDataButton.TabIndex = 2;
            this.loadDataButton.Text = "&Load";
            this.loadDataButton.Click += new System.EventHandler(this.loadDataButton_Click);
            // 
            // groupBox2
            // 
            this.groupBox2.Controls.Add(this.chart);
            this.groupBox2.Location = new System.Drawing.Point(200, 10);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(300, 380);
            this.groupBox2.TabIndex = 2;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Function";
            // 
            // chart
            // 
            this.chart.Location = new System.Drawing.Point(10, 20);
            this.chart.Name = "chart";
            this.chart.Size = new System.Drawing.Size(280, 350);
            this.chart.TabIndex = 0;
            // 
            // openFileDialog
            // 
            this.openFileDialog.Filter = "CSV (Comma delimited) (*.csv)|*.csv";
            this.openFileDialog.Title = "Select data file";
            // 
            // stopButton
            // 
            this.stopButton.Enabled = false;
            this.stopButton.Location = new System.Drawing.Point(630, 360);
            this.stopButton.Name = "stopButton";
            this.stopButton.Size = new System.Drawing.Size(75, 23);
            this.stopButton.TabIndex = 6;
            this.stopButton.Text = "S&top";
            this.stopButton.Click += new System.EventHandler(this.stopButton_Click);
            // 
            // startButton
            // 
            this.startButton.Enabled = false;
            this.startButton.Location = new System.Drawing.Point(540, 360);
            this.startButton.Name = "startButton";
            this.startButton.Size = new System.Drawing.Size(75, 23);
            this.startButton.TabIndex = 5;
            this.startButton.Text = "&Start";
            this.startButton.Click += new System.EventHandler(this.startButton_Click);
            // 
            // groupBox4
            // 
            this.groupBox4.Controls.Add(this.currentPredictionErrorBox);
            this.groupBox4.Controls.Add(this.label13);
            this.groupBox4.Controls.Add(this.currentLearningErrorBox);
            this.groupBox4.Controls.Add(this.label12);
            this.groupBox4.Controls.Add(this.currentIterationBox);
            this.groupBox4.Controls.Add(this.label11);
            this.groupBox4.Location = new System.Drawing.Point(510, 225);
            this.groupBox4.Name = "groupBox4";
            this.groupBox4.Size = new System.Drawing.Size(195, 100);
            this.groupBox4.TabIndex = 7;
            this.groupBox4.TabStop = false;
            this.groupBox4.Text = "Current iteration:";
            // 
            // currentPredictionErrorBox
            // 
            this.currentPredictionErrorBox.Location = new System.Drawing.Point(125, 70);
            this.currentPredictionErrorBox.Name = "currentPredictionErrorBox";
            this.currentPredictionErrorBox.ReadOnly = true;
            this.currentPredictionErrorBox.Size = new System.Drawing.Size(60, 20);
            this.currentPredictionErrorBox.TabIndex = 5;
            // 
            // label13
            // 
            this.label13.Location = new System.Drawing.Point(10, 72);
            this.label13.Name = "label13";
            this.label13.Size = new System.Drawing.Size(100, 16);
            this.label13.TabIndex = 4;
            this.label13.Text = "Prediction error:";
            // 
            // currentLearningErrorBox
            // 
            this.currentLearningErrorBox.Location = new System.Drawing.Point(125, 45);
            this.currentLearningErrorBox.Name = "currentLearningErrorBox";
            this.currentLearningErrorBox.ReadOnly = true;
            this.currentLearningErrorBox.Size = new System.Drawing.Size(60, 20);
            this.currentLearningErrorBox.TabIndex = 3;
            // 
            // label12
            // 
            this.label12.Location = new System.Drawing.Point(10, 47);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(80, 16);
            this.label12.TabIndex = 2;
            this.label12.Text = "Learning error:";
            // 
            // currentIterationBox
            // 
            this.currentIterationBox.Location = new System.Drawing.Point(125, 20);
            this.currentIterationBox.Name = "currentIterationBox";
            this.currentIterationBox.ReadOnly = true;
            this.currentIterationBox.Size = new System.Drawing.Size(60, 20);
            this.currentIterationBox.TabIndex = 1;
            // 
            // label11
            // 
            this.label11.Location = new System.Drawing.Point(10, 22);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(70, 16);
            this.label11.TabIndex = 0;
            this.label11.Text = "Iteration:";
            // 
            // label5
            // 
            this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.label5.Location = new System.Drawing.Point(11, 104);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(175, 2);
            this.label5.TabIndex = 17;
            // 
            // label9
            // 
            this.label9.Location = new System.Drawing.Point(11, 174);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(70, 16);
            this.label9.TabIndex = 23;
            this.label9.Text = "Iterations:";
            // 
            // label10
            // 
            this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label10.Location = new System.Drawing.Point(127, 192);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(58, 14);
            this.label10.TabIndex = 25;
            this.label10.Text = "( 0 - inifinity )";
            // 
            // label3
            // 
            this.label3.Location = new System.Drawing.Point(11, 114);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(80, 16);
            this.label3.TabIndex = 18;
            this.label3.Text = "Window size:";
            // 
            // windowSizeBox
            // 
            this.windowSizeBox.Location = new System.Drawing.Point(126, 112);
            this.windowSizeBox.Name = "windowSizeBox";
            this.windowSizeBox.Size = new System.Drawing.Size(60, 20);
            this.windowSizeBox.TabIndex = 19;
            this.windowSizeBox.TextChanged += new System.EventHandler(this.windowSizeBox_TextChanged);
            // 
            // label7
            // 
            this.label7.Location = new System.Drawing.Point(11, 139);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(90, 16);
            this.label7.TabIndex = 20;
            this.label7.Text = "Prediction size:";
            // 
            // predictionSizeBox
            // 
            this.predictionSizeBox.Location = new System.Drawing.Point(126, 137);
            this.predictionSizeBox.Name = "predictionSizeBox";
            this.predictionSizeBox.Size = new System.Drawing.Size(60, 20);
            this.predictionSizeBox.TabIndex = 21;
            this.predictionSizeBox.TextChanged += new System.EventHandler(this.predictionSizeBox_TextChanged);
            // 
            // iterationsBox
            // 
            this.iterationsBox.Location = new System.Drawing.Point(126, 172);
            this.iterationsBox.Name = "iterationsBox";
            this.iterationsBox.Size = new System.Drawing.Size(60, 20);
            this.iterationsBox.TabIndex = 24;
            // 
            // label8
            // 
            this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.label8.Location = new System.Drawing.Point(11, 164);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(175, 2);
            this.label8.TabIndex = 22;
            // 
            // label1
            // 
            this.label1.Location = new System.Drawing.Point(10, 22);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(78, 14);
            this.label1.TabIndex = 6;
            this.label1.Text = "Learning rate:";
            // 
            // learningRateBox
            // 
            this.learningRateBox.Location = new System.Drawing.Point(125, 20);
            this.learningRateBox.Name = "learningRateBox";
            this.learningRateBox.Size = new System.Drawing.Size(60, 20);
            this.learningRateBox.TabIndex = 7;
            // 
            // label2
            // 
            this.label2.Location = new System.Drawing.Point(10, 48);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(120, 15);
            this.label2.TabIndex = 10;
            this.label2.Text = "Sigmoid\'s alpha value:";
            // 
            // alphaBox
            // 
            this.alphaBox.Location = new System.Drawing.Point(125, 46);
            this.alphaBox.Name = "alphaBox";
            this.alphaBox.Size = new System.Drawing.Size(60, 20);
            this.alphaBox.TabIndex = 11;
            // 
            // groupBox3
            // 
            this.groupBox3.Controls.Add(this.alphaBox);
            this.groupBox3.Controls.Add(this.label2);
            this.groupBox3.Controls.Add(this.learningRateBox);
            this.groupBox3.Controls.Add(this.label1);
            this.groupBox3.Controls.Add(this.label8);
            this.groupBox3.Controls.Add(this.iterationsBox);
            this.groupBox3.Controls.Add(this.predictionSizeBox);
            this.groupBox3.Controls.Add(this.label7);
            this.groupBox3.Controls.Add(this.windowSizeBox);
            this.groupBox3.Controls.Add(this.label3);
            this.groupBox3.Controls.Add(this.label10);
            this.groupBox3.Controls.Add(this.label9);
            this.groupBox3.Controls.Add(this.label5);
            this.groupBox3.Location = new System.Drawing.Point(510, 10);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new System.Drawing.Size(195, 209);
            this.groupBox3.TabIndex = 3;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "Settings";
            // 
            // MainForm
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(715, 398);
            this.Controls.Add(this.groupBox4);
            this.Controls.Add(this.stopButton);
            this.Controls.Add(this.startButton);
            this.Controls.Add(this.groupBox3);
            this.Controls.Add(this.groupBox2);
            this.Controls.Add(this.groupBox1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.Name = "MainForm";
            this.Text = "Time Series Prediction using Multi-Layer Neural Network (Resilient Backpropagatio" +
                "n)";
            this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
            this.groupBox1.ResumeLayout(false);
            this.groupBox2.ResumeLayout(false);
            this.groupBox4.ResumeLayout(false);
            this.groupBox4.PerformLayout();
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            this.ResumeLayout(false);

        }
Exemplo n.º 36
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
     this.groupBox1         = new System.Windows.Forms.GroupBox();
     this.generateMapButton = new System.Windows.Forms.Button();
     this.citiesCountBox    = new System.Windows.Forms.TextBox();
     this.label1            = new System.Windows.Forms.Label();
     this.mapControl        = new AForge.Controls.Chart();
     this.groupBox2         = new System.Windows.Forms.GroupBox();
     this.groupBox4         = new System.Windows.Forms.GroupBox();
     this.label8            = new System.Windows.Forms.Label();
     this.radioButton2      = new System.Windows.Forms.RadioButton();
     this.radioButton1      = new System.Windows.Forms.RadioButton();
     this.mutationChanceBox = new System.Windows.Forms.TextBox();
     this.label3            = new System.Windows.Forms.Label();
     this.iterationsBox     = new System.Windows.Forms.TextBox();
     this.label4            = new System.Windows.Forms.Label();
     this.populationSizeBox = new System.Windows.Forms.TextBox();
     this.label2            = new System.Windows.Forms.Label();
     this.groupBox3         = new System.Windows.Forms.GroupBox();
     this.button2           = new System.Windows.Forms.Button();
     this.button1           = new System.Windows.Forms.Button();
     this.label6            = new System.Windows.Forms.Label();
     this.startButton       = new System.Windows.Forms.Button();
     this.label5            = new System.Windows.Forms.Label();
     this.pathLengthBox     = new System.Windows.Forms.TextBox();
     this.label7            = new System.Windows.Forms.Label();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox4.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.generateMapButton);
     this.groupBox1.Controls.Add(this.citiesCountBox);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.mapControl);
     this.groupBox1.Location = new System.Drawing.Point(10, 10);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(300, 354);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Mapa";
     //
     // generateMapButton
     //
     this.generateMapButton.Location = new System.Drawing.Point(111, 314);
     this.generateMapButton.Name     = "generateMapButton";
     this.generateMapButton.Size     = new System.Drawing.Size(180, 22);
     this.generateMapButton.TabIndex = 3;
     this.generateMapButton.Text     = "Gerar Mapa";
     this.generateMapButton.Click   += new System.EventHandler(this.generateMapButton_Click);
     //
     // citiesCountBox
     //
     this.citiesCountBox.Location = new System.Drawing.Point(55, 315);
     this.citiesCountBox.Name     = "citiesCountBox";
     this.citiesCountBox.Size     = new System.Drawing.Size(50, 20);
     this.citiesCountBox.TabIndex = 2;
     this.citiesCountBox.Text     = "20";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 318);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(51, 19);
     this.label1.TabIndex = 1;
     this.label1.Text     = "Cidades:";
     //
     // mapControl
     //
     this.mapControl.Location = new System.Drawing.Point(10, 20);
     this.mapControl.Name     = "mapControl";
     this.mapControl.RangeX   = ((AForge.Range)(resources.GetObject("mapControl.RangeX")));
     this.mapControl.RangeY   = ((AForge.Range)(resources.GetObject("mapControl.RangeY")));
     this.mapControl.Size     = new System.Drawing.Size(280, 280);
     this.mapControl.TabIndex = 0;
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add(this.groupBox4);
     this.groupBox2.Controls.Add(this.iterationsBox);
     this.groupBox2.Controls.Add(this.label4);
     this.groupBox2.Controls.Add(this.populationSizeBox);
     this.groupBox2.Controls.Add(this.label2);
     this.groupBox2.Location = new System.Drawing.Point(320, 10);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(185, 179);
     this.groupBox2.TabIndex = 1;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Configurações";
     //
     // groupBox4
     //
     this.groupBox4.Controls.Add(this.label8);
     this.groupBox4.Controls.Add(this.radioButton2);
     this.groupBox4.Controls.Add(this.radioButton1);
     this.groupBox4.Controls.Add(this.mutationChanceBox);
     this.groupBox4.Controls.Add(this.label3);
     this.groupBox4.Location = new System.Drawing.Point(13, 74);
     this.groupBox4.Name     = "groupBox4";
     this.groupBox4.Size     = new System.Drawing.Size(162, 99);
     this.groupBox4.TabIndex = 8;
     this.groupBox4.TabStop  = false;
     this.groupBox4.Text     = "Mutação";
     //
     // label8
     //
     this.label8.AutoSize = true;
     this.label8.Location = new System.Drawing.Point(10, 54);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(51, 26);
     this.label8.TabIndex = 10;
     this.label8.Text     = "Tipo de\r\nmutação:";
     //
     // radioButton2
     //
     this.radioButton2.AutoSize = true;
     this.radioButton2.Font     = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.radioButton2.Location = new System.Drawing.Point(71, 70);
     this.radioButton2.Name     = "radioButton2";
     this.radioButton2.Size     = new System.Drawing.Size(90, 17);
     this.radioButton2.TabIndex = 9;
     this.radioButton2.TabStop  = true;
     this.radioButton2.Text     = "Inverter pares";
     this.radioButton2.UseVisualStyleBackColor = true;
     this.radioButton2.CheckedChanged         += new System.EventHandler(this.radioButton2_CheckedChanged);
     //
     // radioButton1
     //
     this.radioButton1.AutoSize = true;
     this.radioButton1.Checked  = true;
     this.radioButton1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.radioButton1.Location = new System.Drawing.Point(71, 50);
     this.radioButton1.Name     = "radioButton1";
     this.radioButton1.Size     = new System.Drawing.Size(78, 17);
     this.radioButton1.TabIndex = 8;
     this.radioButton1.TabStop  = true;
     this.radioButton1.Text     = "Embaralhar";
     this.radioButton1.UseVisualStyleBackColor = true;
     this.radioButton1.CheckedChanged         += new System.EventHandler(this.radioButton1_CheckedChanged);
     //
     // mutationChanceBox
     //
     this.mutationChanceBox.Location = new System.Drawing.Point(91, 17);
     this.mutationChanceBox.Name     = "mutationChanceBox";
     this.mutationChanceBox.Size     = new System.Drawing.Size(65, 20);
     this.mutationChanceBox.TabIndex = 7;
     this.mutationChanceBox.Text     = "0,0";
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(6, 20);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(64, 13);
     this.label3.TabIndex = 6;
     this.label3.Text     = "Chance (%):";
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(110, 51);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.Size     = new System.Drawing.Size(65, 20);
     this.iterationsBox.TabIndex = 5;
     this.iterationsBox.Text     = "10000";
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(19, 54);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(69, 17);
     this.label4.TabIndex = 4;
     this.label4.Text     = "Gerações:";
     //
     // populationSizeBox
     //
     this.populationSizeBox.Location = new System.Drawing.Point(110, 25);
     this.populationSizeBox.Name     = "populationSizeBox";
     this.populationSizeBox.Size     = new System.Drawing.Size(65, 20);
     this.populationSizeBox.TabIndex = 1;
     this.populationSizeBox.Text     = "100";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(19, 28);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(69, 17);
     this.label2.TabIndex = 0;
     this.label2.Text     = "População:";
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.button2);
     this.groupBox3.Controls.Add(this.button1);
     this.groupBox3.Controls.Add(this.label6);
     this.groupBox3.Controls.Add(this.startButton);
     this.groupBox3.Controls.Add(this.label5);
     this.groupBox3.Controls.Add(this.pathLengthBox);
     this.groupBox3.Controls.Add(this.label7);
     this.groupBox3.Location = new System.Drawing.Point(320, 195);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(185, 169);
     this.groupBox3.TabIndex = 2;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Resultados:";
     //
     // button2
     //
     this.button2.Location = new System.Drawing.Point(104, 115);
     this.button2.Name     = "button2";
     this.button2.Size     = new System.Drawing.Size(75, 45);
     this.button2.TabIndex = 7;
     this.button2.Text     = "Pausar";
     this.button2.UseVisualStyleBackColor = true;
     this.button2.Click += new System.EventHandler(this.button2_Click);
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(13, 115);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(85, 45);
     this.button1.TabIndex = 3;
     this.button1.Text     = "Interromper \r\nExecução";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // label6
     //
     this.label6.AutoSize = true;
     this.label6.Location = new System.Drawing.Point(101, 88);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(13, 13);
     this.label6.TabIndex = 4;
     this.label6.Text     = "0";
     //
     // startButton
     //
     this.startButton.Location = new System.Drawing.Point(13, 19);
     this.startButton.Name     = "startButton";
     this.startButton.Size     = new System.Drawing.Size(162, 33);
     this.startButton.TabIndex = 3;
     this.startButton.Text     = "Executar";
     this.startButton.Click   += new System.EventHandler(this.startButton_Click);
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Location = new System.Drawing.Point(14, 88);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(78, 13);
     this.label5.TabIndex = 3;
     this.label5.Text     = "Geração Atual:";
     //
     // pathLengthBox
     //
     this.pathLengthBox.Location = new System.Drawing.Point(100, 59);
     this.pathLengthBox.Name     = "pathLengthBox";
     this.pathLengthBox.ReadOnly = true;
     this.pathLengthBox.Size     = new System.Drawing.Size(79, 20);
     this.pathLengthBox.TabIndex = 3;
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(14, 62);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(80, 16);
     this.label7.TabIndex = 2;
     this.label7.Text     = "Percurso:";
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(514, 370);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.Name            = "MainForm";
     this.Text            = "Problema do Caixeiro Viajante utilizando Algoritmo Genético";
     this.Load           += new System.EventHandler(this.MainForm_Load);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     this.groupBox4.ResumeLayout(false);
     this.groupBox4.PerformLayout();
     this.groupBox3.ResumeLayout(false);
     this.groupBox3.PerformLayout();
     this.ResumeLayout(false);
 }