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 Range( 0, 9 ); // update the chart chart.UpdateDataSeries( "Test", testValues );
Inheritance: System.Windows.Forms.Control
Example #1
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 Accord.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(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.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.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";
            // 
            // TimeSeries
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
            this.ClientSize = new System.Drawing.Size(1144, 579);
            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.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MaximizeBox = false;
            this.Name = "TimeSeries";
            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);

        }
 /// <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 Accord.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 Accord.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.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.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.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     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);
 }
Example #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.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 Accord.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.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);
 }
 /// <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 Accord.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);
 }
Example #5
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       = ((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 Accord.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.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();
            //
            // startButton
            //

            this.startButton.Location = new System.Drawing.Point(848, 442);
            //
            // stopButton
            //
            this.stopButton.Location = new System.Drawing.Point(992, 442);
            //
            // 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, 453);
            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(16, 29);
            this.dataList.Name          = "dataList";
            this.dataList.Size          = new System.Drawing.Size(256, 373);
            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(16, 409);
            this.loadDataButton.Name     = "loadDataButton";
            this.loadDataButton.Size     = new System.Drawing.Size(120, 34);
            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(320, 15);
            this.groupBox2.Name     = "groupBox2";
            this.groupBox2.Size     = new System.Drawing.Size(480, 453);
            this.groupBox2.TabIndex = 1;
            this.groupBox2.TabStop  = false;
            this.groupBox2.Text     = "Function";
            //
            // chart
            //
            this.chart.Location = new System.Drawing.Point(16, 29);
            this.chart.Name     = "chart";
            this.chart.Size     = new System.Drawing.Size(448, 409);
            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(816, 15);
            this.groupBox3.Name     = "groupBox3";
            this.groupBox3.Size     = new System.Drawing.Size(296, 289);
            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(176, 139);
            this.geneticMethodBox.Name     = "geneticMethodBox";
            this.geneticMethodBox.Size     = new System.Drawing.Size(104, 28);
            this.geneticMethodBox.TabIndex = 7;
            //
            // label8
            //
            this.label8.Location = new System.Drawing.Point(16, 142);
            this.label8.Name     = "label8";
            this.label8.Size     = new System.Drawing.Size(141, 23);
            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(176, 102);
            this.functionsSetBox.Name     = "functionsSetBox";
            this.functionsSetBox.Size     = new System.Drawing.Size(104, 28);
            this.functionsSetBox.TabIndex = 5;
            //
            // label7
            //
            this.label7.Location = new System.Drawing.Point(16, 105);
            this.label7.Name     = "label7";
            this.label7.Size     = new System.Drawing.Size(128, 24);
            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, ((byte)(204)));
            this.label4.Location = new System.Drawing.Point(200, 256);
            this.label4.Name     = "label4";
            this.label4.Size     = new System.Drawing.Size(90, 22);
            this.label4.TabIndex = 10;
            this.label4.Text     = "( 0 - inifinity )";
            //
            // iterationsBox
            //
            this.iterationsBox.Location = new System.Drawing.Point(200, 227);
            this.iterationsBox.Name     = "iterationsBox";
            this.iterationsBox.Size     = new System.Drawing.Size(80, 26);
            this.iterationsBox.TabIndex = 9;
            //
            // label3
            //
            this.label3.Location = new System.Drawing.Point(16, 229);
            this.label3.Name     = "label3";
            this.label3.Size     = new System.Drawing.Size(96, 24);
            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(176, 66);
            this.selectionBox.Name     = "selectionBox";
            this.selectionBox.Size     = new System.Drawing.Size(104, 28);
            this.selectionBox.TabIndex = 3;
            //
            // label2
            //
            this.label2.Location = new System.Drawing.Point(16, 69);
            this.label2.Name     = "label2";
            this.label2.Size     = new System.Drawing.Size(160, 23);
            this.label2.TabIndex = 2;
            this.label2.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;
            //
            // label1
            //
            this.label1.Location = new System.Drawing.Point(16, 32);
            this.label1.Name     = "label1";
            this.label1.Size     = new System.Drawing.Size(136, 24);
            this.label1.TabIndex = 0;
            this.label1.Text     = "Population size:";
            //
            // 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(816, 316);
            this.groupBox4.Name     = "groupBox4";
            this.groupBox4.Size     = new System.Drawing.Size(296, 109);
            this.groupBox4.TabIndex = 5;
            this.groupBox4.TabStop  = false;
            this.groupBox4.Text     = "Current iteration";
            //
            // currentErrorBox
            //
            this.currentErrorBox.Location = new System.Drawing.Point(200, 66);
            this.currentErrorBox.Name     = "currentErrorBox";
            this.currentErrorBox.ReadOnly = true;
            this.currentErrorBox.Size     = new System.Drawing.Size(80, 26);
            this.currentErrorBox.TabIndex = 3;
            //
            // label6
            //
            this.label6.Location = new System.Drawing.Point(16, 69);
            this.label6.Name     = "label6";
            this.label6.Size     = new System.Drawing.Size(112, 23);
            this.label6.TabIndex = 2;
            this.label6.Text     = "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(80, 26);
            this.currentIterationBox.TabIndex = 1;
            //
            // label5
            //
            this.label5.Location = new System.Drawing.Point(16, 32);
            this.label5.Name     = "label5";
            this.label5.Size     = new System.Drawing.Size(112, 24);
            this.label5.TabIndex = 0;
            this.label5.Text     = "Iteration:";
            //
            // groupBox5
            //
            this.groupBox5.Controls.Add(this.solutionBox);
            this.groupBox5.Location = new System.Drawing.Point(16, 482);
            this.groupBox5.Name     = "groupBox5";
            this.groupBox5.Size     = new System.Drawing.Size(1096, 73);
            this.groupBox5.TabIndex = 6;
            this.groupBox5.TabStop  = false;
            this.groupBox5.Text     = "Solution:";
            //
            // solutionBox
            //
            this.solutionBox.Location = new System.Drawing.Point(16, 29);
            this.solutionBox.Name     = "solutionBox";
            this.solutionBox.ReadOnly = true;
            this.solutionBox.Size     = new System.Drawing.Size(1064, 26);
            this.solutionBox.TabIndex = 0;
            //
            // Approximation
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
            this.ClientSize          = new System.Drawing.Size(1145, 581);
            this.Controls.Add(this.groupBox5);
            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            = "Approximation";
            this.Text            = "Approximation (Symbolic Regression) using Genetic Programming and Gene Expression" +
                                   " Programming";
            this.Controls.SetChildIndex(this.groupBox1, 0);
            this.Controls.SetChildIndex(this.groupBox2, 0);
            this.Controls.SetChildIndex(this.groupBox3, 0);
            this.Controls.SetChildIndex(this.groupBox4, 0);
            this.Controls.SetChildIndex(this.groupBox5, 0);
            this.Controls.SetChildIndex(this.startButton, 0);
            this.Controls.SetChildIndex(this.stopButton, 0);
            this.groupBox1.ResumeLayout(false);
            this.groupBox2.ResumeLayout(false);
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            this.groupBox4.ResumeLayout(false);
            this.groupBox4.PerformLayout();
            this.groupBox5.ResumeLayout(false);
            this.groupBox5.PerformLayout();
            this.ResumeLayout(false);
        }
Example #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.components             = new System.ComponentModel.Container();
            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.openFileDialog         = new System.Windows.Forms.OpenFileDialog();
            this.groupBox2              = new System.Windows.Forms.GroupBox();
            this.chart                     = new Accord.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.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();
            //
            // startButton
            //
            this.startButton.Location = new System.Drawing.Point(840, 537);
            //
            // stopButton
            //
            this.stopButton.Location = new System.Drawing.Point(992, 536);
            //
            // 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      = 1;
            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 = 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(320, 15);
            this.groupBox2.Name     = "groupBox2";
            this.groupBox2.Size     = new System.Drawing.Size(480, 555);
            this.groupBox2.TabIndex = 1;
            this.groupBox2.TabStop  = false;
            this.groupBox2.Text     = "Function";
            //
            // chart
            //
            this.chart.Location = new System.Drawing.Point(16, 29);
            this.chart.Name     = "chart";
            this.chart.Size     = new System.Drawing.Size(448, 512);
            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(816, 15);
            this.groupBox3.Name     = "groupBox3";
            this.groupBox3.Size     = new System.Drawing.Size(296, 350);
            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, ((byte)(204)));
            this.moreSettingsButton.ForeColor = System.Drawing.SystemColors.ControlText;
            this.moreSettingsButton.Location  = new System.Drawing.Point(16, 322);
            this.moreSettingsButton.Name      = "moreSettingsButton";
            this.moreSettingsButton.Size      = new System.Drawing.Size(40, 21);
            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, ((byte)(0)));
            this.label10.Location = new System.Drawing.Point(200, 322);
            this.label10.Name     = "label10";
            this.label10.Size     = new System.Drawing.Size(93, 20);
            this.label10.TabIndex = 16;
            this.label10.Text     = "( 0 - inifinity )";
            //
            // iterationsBox
            //
            this.iterationsBox.Location = new System.Drawing.Point(200, 292);
            this.iterationsBox.Name     = "iterationsBox";
            this.iterationsBox.Size     = new System.Drawing.Size(80, 26);
            this.iterationsBox.TabIndex = 15;

            //
            // label9
            //
            this.label9.Location = new System.Drawing.Point(16, 295);
            this.label9.Name     = "label9";
            this.label9.Size     = new System.Drawing.Size(112, 24);
            this.label9.TabIndex = 14;
            this.label9.Text     = "Iterations:";
            //
            // label8
            //
            this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.label8.Location    = new System.Drawing.Point(16, 278);
            this.label8.Name        = "label8";
            this.label8.Size        = new System.Drawing.Size(264, 3);
            this.label8.TabIndex    = 13;
            //
            // predictionSizeBox
            //
            this.predictionSizeBox.Location     = new System.Drawing.Point(200, 234);
            this.predictionSizeBox.Name         = "predictionSizeBox";
            this.predictionSizeBox.Size         = new System.Drawing.Size(80, 26);
            this.predictionSizeBox.TabIndex     = 12;
            this.predictionSizeBox.TextChanged += new System.EventHandler(this.predictionSizeBox_TextChanged);
            //
            // label7
            //
            this.label7.Location = new System.Drawing.Point(16, 237);
            this.label7.Name     = "label7";
            this.label7.Size     = new System.Drawing.Size(144, 23);
            this.label7.TabIndex = 11;
            this.label7.Text     = "Prediction size:";
            //
            // windowSizeBox
            //
            this.windowSizeBox.Location     = new System.Drawing.Point(200, 197);
            this.windowSizeBox.Name         = "windowSizeBox";
            this.windowSizeBox.Size         = new System.Drawing.Size(80, 26);
            this.windowSizeBox.TabIndex     = 10;
            this.windowSizeBox.TextChanged += new System.EventHandler(this.windowSizeBox_TextChanged);
            //
            // label6
            //
            this.label6.Location = new System.Drawing.Point(16, 200);
            this.label6.Name     = "label6";
            this.label6.Size     = new System.Drawing.Size(128, 24);
            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(16, 183);
            this.label5.Name        = "label5";
            this.label5.Size        = new System.Drawing.Size(264, 3);
            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(176, 139);
            this.geneticMethodBox.Name     = "geneticMethodBox";
            this.geneticMethodBox.Size     = new System.Drawing.Size(104, 28);
            this.geneticMethodBox.TabIndex = 7;
            //
            // label4
            //
            this.label4.Location = new System.Drawing.Point(16, 142);
            this.label4.Name     = "label4";
            this.label4.Size     = new System.Drawing.Size(160, 23);
            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(176, 102);
            this.functionsSetBox.Name     = "functionsSetBox";
            this.functionsSetBox.Size     = new System.Drawing.Size(104, 28);
            this.functionsSetBox.TabIndex = 5;
            //
            // label3
            //
            this.label3.Location = new System.Drawing.Point(16, 105);
            this.label3.Name     = "label3";
            this.label3.Size     = new System.Drawing.Size(160, 24);
            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(176, 66);
            this.selectionBox.Name     = "selectionBox";
            this.selectionBox.Size     = new System.Drawing.Size(104, 28);
            this.selectionBox.TabIndex = 3;
            //
            // label2
            //
            this.label2.Location = new System.Drawing.Point(16, 69);
            this.label2.Name     = "label2";
            this.label2.Size     = new System.Drawing.Size(160, 23);
            this.label2.TabIndex = 2;
            this.label2.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;
            //
            // label1
            //
            this.label1.Location = new System.Drawing.Point(16, 32);
            this.label1.Name     = "label1";
            this.label1.Size     = new System.Drawing.Size(160, 24);
            this.label1.TabIndex = 0;
            this.label1.Text     = "Population size:";
            //
            // 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, 373);
            this.groupBox4.Name     = "groupBox4";
            this.groupBox4.Size     = new System.Drawing.Size(296, 146);
            this.groupBox4.TabIndex = 5;
            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(80, 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(80, 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(80, 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:";
            //
            // groupBox5
            //
            this.groupBox5.Controls.Add(this.solutionBox);
            this.groupBox5.Location = new System.Drawing.Point(16, 577);
            this.groupBox5.Name     = "groupBox5";
            this.groupBox5.Size     = new System.Drawing.Size(1096, 73);
            this.groupBox5.TabIndex = 6;
            this.groupBox5.TabStop  = false;
            this.groupBox5.Text     = "Solution";
            //
            // solutionBox
            //
            this.solutionBox.Location = new System.Drawing.Point(16, 29);
            this.solutionBox.Name     = "solutionBox";
            this.solutionBox.ReadOnly = true;
            this.solutionBox.Size     = new System.Drawing.Size(1064, 26);
            this.solutionBox.TabIndex = 0;
            //
            // TimeSeries
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
            this.ClientSize          = new System.Drawing.Size(1182, 698);
            this.Controls.Add(this.groupBox5);
            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            = "TimeSeries";
            this.Text            = "Time Series Prediction using Genetic Programming and Gene Expression Programming";
            this.Controls.SetChildIndex(this.groupBox1, 0);
            this.Controls.SetChildIndex(this.groupBox2, 0);
            this.Controls.SetChildIndex(this.groupBox3, 0);
            this.Controls.SetChildIndex(this.groupBox4, 0);
            this.Controls.SetChildIndex(this.groupBox5, 0);
            this.Controls.SetChildIndex(this.startButton, 0);
            this.Controls.SetChildIndex(this.stopButton, 0);
            this.groupBox1.ResumeLayout(false);
            this.groupBox2.ResumeLayout(false);
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            this.groupBox4.ResumeLayout(false);
            this.groupBox4.PerformLayout();
            this.groupBox5.ResumeLayout(false);
            this.groupBox5.PerformLayout();
            this.ResumeLayout(false);
        }
Example #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.chart               = new Accord.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.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();
            //
            // startButton
            //
            this.startButton.Location = new System.Drawing.Point(544, 463);
            this.startButton.Enabled  = true;

            //
            // stopButton
            //
            this.stopButton.Location = new System.Drawing.Point(688, 463);
            //
            // chart
            //
            this.chart.Location = new System.Drawing.Point(16, 29);
            this.chart.Name     = "chart";
            this.chart.Size     = new System.Drawing.Size(448, 395);
            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(16, 15);
            this.groupBox1.Name     = "groupBox1";
            this.groupBox1.Size     = new System.Drawing.Size(480, 482);
            this.groupBox1.TabIndex = 0;
            this.groupBox1.TabStop  = false;
            this.groupBox1.Text     = "Function";
            //
            // label1
            //
            this.label1.Location = new System.Drawing.Point(16, 434);
            this.label1.Name     = "label1";
            this.label1.Size     = new System.Drawing.Size(66, 19);
            this.label1.TabIndex = 3;
            this.label1.Text     = "Range:";
            //
            // minXBox
            //
            this.minXBox.Location     = new System.Drawing.Point(96, 431);
            this.minXBox.Name         = "minXBox";
            this.minXBox.Size         = new System.Drawing.Size(80, 26);
            this.minXBox.TabIndex     = 3;
            this.minXBox.TextChanged += new System.EventHandler(this.minXBox_TextChanged);
            //
            // maxXBox
            //
            this.maxXBox.Location     = new System.Drawing.Point(208, 431);
            this.maxXBox.Name         = "maxXBox";
            this.maxXBox.Size         = new System.Drawing.Size(80, 26);
            this.maxXBox.TabIndex     = 4;
            this.maxXBox.TextChanged += new System.EventHandler(this.maxXBox_TextChanged);
            //
            // label2
            //
            this.label2.Location = new System.Drawing.Point(184, 434);
            this.label2.Name     = "label2";
            this.label2.Size     = new System.Drawing.Size(13, 23);
            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(512, 15);
            this.groupBox2.Name     = "groupBox2";
            this.groupBox2.Size     = new System.Drawing.Size(296, 324);
            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(176, 139);
            this.modeBox.Name     = "modeBox";
            this.modeBox.Size     = new System.Drawing.Size(104, 28);
            this.modeBox.TabIndex = 7;
            //
            // label8
            //
            this.label8.Location = new System.Drawing.Point(16, 142);
            this.label8.Name     = "label8";
            this.label8.Size     = new System.Drawing.Size(176, 25);
            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(176, 102);
            this.selectionBox.Name     = "selectionBox";
            this.selectionBox.Size     = new System.Drawing.Size(104, 28);
            this.selectionBox.TabIndex = 5;
            //
            // label7
            //
            this.label7.Location = new System.Drawing.Point(16, 105);
            this.label7.Name     = "label7";
            this.label7.Size     = new System.Drawing.Size(160, 24);
            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, ((byte)(0)));
            this.label6.Location = new System.Drawing.Point(200, 256);
            this.label6.Name     = "label6";
            this.label6.Size     = new System.Drawing.Size(90, 23);
            this.label6.TabIndex = 10;
            this.label6.Text     = "( 0 - inifinity )";
            //
            // iterationsBox
            //
            this.iterationsBox.Location = new System.Drawing.Point(200, 227);
            this.iterationsBox.Name     = "iterationsBox";
            this.iterationsBox.Size     = new System.Drawing.Size(80, 26);
            this.iterationsBox.TabIndex = 9;
            //
            // label5
            //
            this.label5.Location = new System.Drawing.Point(16, 229);
            this.label5.Name     = "label5";
            this.label5.Size     = new System.Drawing.Size(102, 24);
            this.label5.TabIndex = 8;
            this.label5.Text     = "Iterations:";
            //
            // onlyBestCheck
            //
            this.onlyBestCheck.Location = new System.Drawing.Point(16, 285);
            this.onlyBestCheck.Name     = "onlyBestCheck";
            this.onlyBestCheck.Size     = new System.Drawing.Size(230, 23);
            this.onlyBestCheck.TabIndex = 11;
            this.onlyBestCheck.Text     = "Show only best solution";
            //
            // chromosomeLengthBox
            //
            this.chromosomeLengthBox.Location = new System.Drawing.Point(200, 66);
            this.chromosomeLengthBox.Name     = "chromosomeLengthBox";
            this.chromosomeLengthBox.Size     = new System.Drawing.Size(80, 26);
            this.chromosomeLengthBox.TabIndex = 3;
            //
            // label4
            //
            this.label4.Location = new System.Drawing.Point(16, 69);
            this.label4.Name     = "label4";
            this.label4.Size     = new System.Drawing.Size(176, 17);
            this.label4.TabIndex = 2;
            this.label4.Text     = "Chromosome length:";
            //
            // 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;
            //
            // label3
            //
            this.label3.Location = new System.Drawing.Point(16, 32);
            this.label3.Name     = "label3";
            this.label3.Size     = new System.Drawing.Size(136, 24);
            this.label3.TabIndex = 0;
            this.label3.Text     = "Population size:";
            //
            // 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(512, 343);
            this.groupBox3.Name     = "groupBox3";
            this.groupBox3.Size     = new System.Drawing.Size(296, 110);
            this.groupBox3.TabIndex = 2;
            this.groupBox3.TabStop  = false;
            this.groupBox3.Text     = "Current iteration";
            //
            // currentValueBox
            //
            this.currentValueBox.Location = new System.Drawing.Point(200, 66);
            this.currentValueBox.Name     = "currentValueBox";
            this.currentValueBox.ReadOnly = true;
            this.currentValueBox.Size     = new System.Drawing.Size(80, 26);
            this.currentValueBox.TabIndex = 3;
            //
            // label10
            //
            this.label10.Location = new System.Drawing.Point(16, 69);
            this.label10.Name     = "label10";
            this.label10.Size     = new System.Drawing.Size(96, 22);
            this.label10.TabIndex = 2;
            this.label10.Text     = "Value:";
            //
            // 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;
            //
            // label9
            //
            this.label9.Location = new System.Drawing.Point(16, 32);
            this.label9.Name     = "label9";
            this.label9.Size     = new System.Drawing.Size(96, 24);
            this.label9.TabIndex = 0;
            this.label9.Text     = "Iteration:";
            //
            // Optimization
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
            this.ClientSize          = new System.Drawing.Size(844, 538);
            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            = "Optimization";
            this.Text            = "1D Optimization using Genetic Algorithms";
            this.Controls.SetChildIndex(this.groupBox1, 0);
            this.Controls.SetChildIndex(this.groupBox2, 0);
            this.Controls.SetChildIndex(this.groupBox3, 0);
            this.Controls.SetChildIndex(this.startButton, 0);
            this.Controls.SetChildIndex(this.stopButton, 0);
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            this.ResumeLayout(false);
        }
Example #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(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.chart               = new Accord.Controls.Chart();
     this.groupBox2           = new System.Windows.Forms.GroupBox();
     this.radiusBox           = new System.Windows.Forms.TextBox();
     this.label4              = new System.Windows.Forms.Label();
     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.groupBox1.SuspendLayout();
     this.groupBox2.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.chart);
     this.groupBox1.Location = new System.Drawing.Point(13, 12);
     this.groupBox1.Margin   = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Padding  = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.groupBox1.Size     = new System.Drawing.Size(400, 414);
     this.groupBox1.TabIndex = 1;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Map";
     //
     // generateMapButton
     //
     this.generateMapButton.Location = new System.Drawing.Point(147, 377);
     this.generateMapButton.Margin   = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.generateMapButton.Name     = "generateMapButton";
     this.generateMapButton.Size     = new System.Drawing.Size(100, 27);
     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(67, 377);
     this.citiesCountBox.Margin   = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.citiesCountBox.Name     = "citiesCountBox";
     this.citiesCountBox.Size     = new System.Drawing.Size(67, 22);
     this.citiesCountBox.TabIndex = 2;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(13, 380);
     this.label1.Margin   = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(53, 19);
     this.label1.TabIndex = 1;
     this.label1.Text     = "Cities:";
     //
     // chart
     //
     this.chart.Location = new System.Drawing.Point(13, 24);
     this.chart.Margin   = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.chart.Name     = "chart";
     this.chart.Size     = new System.Drawing.Size(373, 341);
     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(427, 12);
     this.groupBox2.Margin   = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Padding  = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.groupBox2.Size     = new System.Drawing.Size(240, 414);
     this.groupBox2.TabIndex = 2;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Neural Network";
     //
     // radiusBox
     //
     this.radiusBox.Location = new System.Drawing.Point(147, 134);
     this.radiusBox.Margin   = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.radiusBox.Name     = "radiusBox";
     this.radiusBox.Size     = new System.Drawing.Size(81, 22);
     this.radiusBox.TabIndex = 25;
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(13, 137);
     this.label4.Margin   = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(133, 19);
     this.label4.TabIndex = 24;
     this.label4.Text     = "Learning radius:";
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(127, 372);
     this.stopButton.Margin   = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.stopButton.Name     = "stopButton";
     this.stopButton.Size     = new System.Drawing.Size(100, 27);
     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(13, 372);
     this.startButton.Margin   = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.startButton.Name     = "startButton";
     this.startButton.Size     = new System.Drawing.Size(100, 27);
     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(147, 182);
     this.currentIterationBox.Margin   = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.currentIterationBox.Name     = "currentIterationBox";
     this.currentIterationBox.ReadOnly = true;
     this.currentIterationBox.Size     = new System.Drawing.Size(81, 22);
     this.currentIterationBox.TabIndex = 21;
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(13, 185);
     this.label8.Margin   = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(133, 20);
     this.label8.TabIndex = 20;
     this.label8.Text     = "Current iteration:";
     //
     // label7
     //
     this.label7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label7.Location    = new System.Drawing.Point(13, 169);
     this.label7.Margin      = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label7.Name        = "label7";
     this.label7.Size        = new System.Drawing.Size(214, 3);
     this.label7.TabIndex    = 19;
     //
     // rateBox
     //
     this.rateBox.Location = new System.Drawing.Point(147, 103);
     this.rateBox.Margin   = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.rateBox.Name     = "rateBox";
     this.rateBox.Size     = new System.Drawing.Size(81, 22);
     this.rateBox.TabIndex = 18;
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(13, 106);
     this.label5.Margin   = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(133, 20);
     this.label5.TabIndex = 17;
     this.label5.Text     = "Initial learning rate:";
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(147, 73);
     this.iterationsBox.Margin   = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.Size     = new System.Drawing.Size(81, 22);
     this.iterationsBox.TabIndex = 16;
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(13, 76);
     this.label6.Margin   = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(80, 19);
     this.label6.TabIndex = 15;
     this.label6.Text     = "Iterations:";
     //
     // label3
     //
     this.label3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label3.Location    = new System.Drawing.Point(13, 58);
     this.label3.Margin      = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label3.Name        = "label3";
     this.label3.Size        = new System.Drawing.Size(214, 3);
     this.label3.TabIndex    = 4;
     //
     // neuronsBox
     //
     this.neuronsBox.Location = new System.Drawing.Point(147, 24);
     this.neuronsBox.Margin   = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.neuronsBox.Name     = "neuronsBox";
     this.neuronsBox.Size     = new System.Drawing.Size(81, 22);
     this.neuronsBox.TabIndex = 1;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(13, 27);
     this.label2.Margin   = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(80, 20);
     this.label2.TabIndex = 0;
     this.label2.Text     = "Neurons:";
     //
     // MainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(120F, 120F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
     this.ClientSize          = new System.Drawing.Size(673, 432);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Margin          = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.MaximizeBox     = false;
     this.Name            = "MainForm";
     this.Text            = "Traveling Salesman Problem using Elastic Network Training";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     this.ResumeLayout(false);
 }
 /// <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 Accord.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);
 }
Example #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(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.chart = new Accord.Controls.Chart();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.radiusBox = new System.Windows.Forms.TextBox();
            this.label4 = new System.Windows.Forms.Label();
            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.groupBox1.SuspendLayout();
            this.groupBox2.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.chart);
            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 = 1;
            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:";
            // 
            // chart
            // 
            this.chart.Location = new System.Drawing.Point(16, 29);
            this.chart.Name = "chart";
            this.chart.Size = new System.Drawing.Size(448, 409);
            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(512, 15);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(288, 497);
            this.groupBox2.TabIndex = 2;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Neural Network";
            // 
            // radiusBox
            // 
            this.radiusBox.Location = new System.Drawing.Point(176, 161);
            this.radiusBox.Name = "radiusBox";
            this.radiusBox.Size = new System.Drawing.Size(96, 26);
            this.radiusBox.TabIndex = 25;
            // 
            // label4
            // 
            this.label4.Location = new System.Drawing.Point(16, 164);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(160, 23);
            this.label4.TabIndex = 24;
            this.label4.Text = "Learning radius:";
            // 
            // stopButton
            // 
            this.stopButton.Enabled = false;
            this.stopButton.Location = new System.Drawing.Point(152, 446);
            this.stopButton.Name = "stopButton";
            this.stopButton.Size = new System.Drawing.Size(120, 33);
            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(16, 446);
            this.startButton.Name = "startButton";
            this.startButton.Size = new System.Drawing.Size(120, 33);
            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(176, 219);
            this.currentIterationBox.Name = "currentIterationBox";
            this.currentIterationBox.ReadOnly = true;
            this.currentIterationBox.Size = new System.Drawing.Size(96, 26);
            this.currentIterationBox.TabIndex = 21;
            // 
            // label8
            // 
            this.label8.Location = new System.Drawing.Point(16, 222);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(160, 24);
            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(16, 203);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(256, 3);
            this.label7.TabIndex = 19;
            // 
            // rateBox
            // 
            this.rateBox.Location = new System.Drawing.Point(176, 124);
            this.rateBox.Name = "rateBox";
            this.rateBox.Size = new System.Drawing.Size(96, 26);
            this.rateBox.TabIndex = 18;
            // 
            // label5
            // 
            this.label5.Location = new System.Drawing.Point(16, 127);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(160, 24);
            this.label5.TabIndex = 17;
            this.label5.Text = "Initial learning rate:";
            // 
            // iterationsBox
            // 
            this.iterationsBox.Location = new System.Drawing.Point(176, 88);
            this.iterationsBox.Name = "iterationsBox";
            this.iterationsBox.Size = new System.Drawing.Size(96, 26);
            this.iterationsBox.TabIndex = 16;
            // 
            // label6
            // 
            this.label6.Location = new System.Drawing.Point(16, 91);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(96, 23);
            this.label6.TabIndex = 15;
            this.label6.Text = "Iteraions:";
            // 
            // label3
            // 
            this.label3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.label3.Location = new System.Drawing.Point(16, 70);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(256, 3);
            this.label3.TabIndex = 4;
            // 
            // neuronsBox
            // 
            this.neuronsBox.Location = new System.Drawing.Point(176, 29);
            this.neuronsBox.Name = "neuronsBox";
            this.neuronsBox.Size = new System.Drawing.Size(96, 26);
            this.neuronsBox.TabIndex = 1;
            // 
            // label2
            // 
            this.label2.Location = new System.Drawing.Point(16, 32);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(96, 24);
            this.label2.TabIndex = 0;
            this.label2.Text = "Neurons:";
            // 
            // MainForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
            this.ClientSize = new System.Drawing.Size(808, 518);
            this.Controls.Add(this.groupBox2);
            this.Controls.Add(this.groupBox1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            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.groupBox1.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.ResumeLayout(false);

        }
 /// <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 Accord.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);
 }
Example #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(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.chart               = new Accord.Controls.Chart();
     this.groupBox2           = new System.Windows.Forms.GroupBox();
     this.radiusBox           = new System.Windows.Forms.TextBox();
     this.label4              = new System.Windows.Forms.Label();
     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.groupBox1.SuspendLayout();
     this.groupBox2.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.chart);
     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 = 1;
     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:";
     //
     // chart
     //
     this.chart.Location = new System.Drawing.Point(16, 29);
     this.chart.Name     = "chart";
     this.chart.Size     = new System.Drawing.Size(448, 409);
     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(512, 15);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(288, 497);
     this.groupBox2.TabIndex = 2;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Neural Network";
     //
     // radiusBox
     //
     this.radiusBox.Location = new System.Drawing.Point(176, 161);
     this.radiusBox.Name     = "radiusBox";
     this.radiusBox.Size     = new System.Drawing.Size(96, 26);
     this.radiusBox.TabIndex = 25;
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(16, 164);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(160, 23);
     this.label4.TabIndex = 24;
     this.label4.Text     = "Learning radius:";
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(152, 446);
     this.stopButton.Name     = "stopButton";
     this.stopButton.Size     = new System.Drawing.Size(120, 33);
     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(16, 446);
     this.startButton.Name     = "startButton";
     this.startButton.Size     = new System.Drawing.Size(120, 33);
     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(176, 219);
     this.currentIterationBox.Name     = "currentIterationBox";
     this.currentIterationBox.ReadOnly = true;
     this.currentIterationBox.Size     = new System.Drawing.Size(96, 26);
     this.currentIterationBox.TabIndex = 21;
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(16, 222);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(160, 24);
     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(16, 203);
     this.label7.Name        = "label7";
     this.label7.Size        = new System.Drawing.Size(256, 3);
     this.label7.TabIndex    = 19;
     //
     // rateBox
     //
     this.rateBox.Location = new System.Drawing.Point(176, 124);
     this.rateBox.Name     = "rateBox";
     this.rateBox.Size     = new System.Drawing.Size(96, 26);
     this.rateBox.TabIndex = 18;
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(16, 127);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(160, 24);
     this.label5.TabIndex = 17;
     this.label5.Text     = "Initial learning rate:";
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(176, 88);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.Size     = new System.Drawing.Size(96, 26);
     this.iterationsBox.TabIndex = 16;
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(16, 91);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(96, 23);
     this.label6.TabIndex = 15;
     this.label6.Text     = "Iteraions:";
     //
     // label3
     //
     this.label3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.label3.Location    = new System.Drawing.Point(16, 70);
     this.label3.Name        = "label3";
     this.label3.Size        = new System.Drawing.Size(256, 3);
     this.label3.TabIndex    = 4;
     //
     // neuronsBox
     //
     this.neuronsBox.Location = new System.Drawing.Point(176, 29);
     this.neuronsBox.Name     = "neuronsBox";
     this.neuronsBox.Size     = new System.Drawing.Size(96, 26);
     this.neuronsBox.TabIndex = 1;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(16, 32);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(96, 24);
     this.label2.TabIndex = 0;
     this.label2.Text     = "Neurons:";
     //
     // MainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
     this.ClientSize          = new System.Drawing.Size(808, 518);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     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.groupBox1.PerformLayout();
     this.groupBox2.ResumeLayout(false);
     this.groupBox2.PerformLayout();
     this.ResumeLayout(false);
 }
Example #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(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 Accord.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.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.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            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);

        }
Example #14
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 Accord.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);

        }
Example #15
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 Accord.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);

        }
Example #16
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(PerceptronForm));
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.chart = new Accord.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 Accord.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 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(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.groupBox1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.SuspendLayout();
            // 
            // groupBox1
            // 
            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(16, 15);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(304, 613);
            this.groupBox1.TabIndex = 0;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Data";
            // 
            // chart
            // 
            this.chart.Location = new System.Drawing.Point(16, 314);
            this.chart.Name = "chart";
            this.chart.Size = new System.Drawing.Size(272, 249);
            this.chart.TabIndex = 2;
            this.chart.Text = "chart1";
            // 
            // loadButton
            // 
            this.loadButton.Location = new System.Drawing.Point(16, 570);
            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);
            // 
            // 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(272, 278);
            this.dataList.TabIndex = 0;
            this.dataList.UseCompatibleStateImageBehavior = false;
            this.dataList.View = System.Windows.Forms.View.Details;
            // 
            // noVisualizationLabel
            // 
            this.noVisualizationLabel.Location = new System.Drawing.Point(16, 314);
            this.noVisualizationLabel.Name = "noVisualizationLabel";
            this.noVisualizationLabel.Size = new System.Drawing.Size(272, 249);
            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(336, 15);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(384, 613);
            this.groupBox2.TabIndex = 1;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Training";
            // 
            // saveFilesCheck
            // 
            this.saveFilesCheck.Location = new System.Drawing.Point(16, 117);
            this.saveFilesCheck.Name = "saveFilesCheck";
            this.saveFilesCheck.Size = new System.Drawing.Size(291, 23);
            this.saveFilesCheck.TabIndex = 11;
            this.saveFilesCheck.Text = "Save weights and errors to files";
            // 
            // errorChart
            // 
            this.errorChart.Location = new System.Drawing.Point(16, 395);
            this.errorChart.Name = "errorChart";
            this.errorChart.Size = new System.Drawing.Size(352, 204);
            this.errorChart.TabIndex = 10;
            // 
            // label5
            // 
            this.label5.Location = new System.Drawing.Point(16, 365);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(162, 22);
            this.label5.TabIndex = 9;
            this.label5.Text = "Error\'s dynamics:";
            // 
            // 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 = 8;
            this.stopButton.Text = "S&top";
            this.stopButton.Click += new System.EventHandler(this.stopButton_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 = 7;
            // 
            // label4
            // 
            this.label4.Location = new System.Drawing.Point(16, 76);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(104, 23);
            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(16, 190);
            this.weightsList.Name = "weightsList";
            this.weightsList.Size = new System.Drawing.Size(352, 161);
            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(16, 161);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(179, 23);
            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(16, 146);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(352, 3);
            this.label2.TabIndex = 3;
            // 
            // 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 = 2;
            this.startButton.Text = "&Start";
            this.startButton.Click += new System.EventHandler(this.startButton_Click);
            // 
            // 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(120, 24);
            this.label1.TabIndex = 0;
            this.label1.Text = "Learning rate:";
            // 
            // PerceptronForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
            this.ClientSize = new System.Drawing.Size(732, 646);
            this.Controls.Add(this.groupBox2);
            this.Controls.Add(this.groupBox1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MaximizeBox = false;
            this.Name = "PerceptronForm";
            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);

        }
Example #17
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 Accord.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.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.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            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);

        }
Example #18
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(Approximation));
     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 Accord.Controls.Chart();
     this.groupBox3           = new System.Windows.Forms.GroupBox();
     this.cbNguyenWidrow      = new System.Windows.Forms.CheckBox();
     this.cbRegularization    = 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(16, 15);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(288, 467);
     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(16, 29);
     this.dataList.Name          = "dataList";
     this.dataList.Size          = new System.Drawing.Size(256, 373);
     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(16, 417);
     this.loadDataButton.Name     = "loadDataButton";
     this.loadDataButton.Size     = new System.Drawing.Size(120, 33);
     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(320, 15);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(480, 467);
     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.Size     = new System.Drawing.Size(448, 424);
     this.chart.TabIndex = 0;
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.cbNguyenWidrow);
     this.groupBox3.Controls.Add(this.cbRegularization);
     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(816, 15);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Size     = new System.Drawing.Size(312, 285);
     this.groupBox3.TabIndex = 4;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Settings";
     //
     // cbNguyenWidrow
     //
     this.cbNguyenWidrow.AutoSize = true;
     this.cbNguyenWidrow.Location = new System.Drawing.Point(21, 175);
     this.cbNguyenWidrow.Name     = "cbNguyenWidrow";
     this.cbNguyenWidrow.Size     = new System.Drawing.Size(241, 24);
     this.cbNguyenWidrow.TabIndex = 26;
     this.cbNguyenWidrow.Text     = "Use Nguyen-Widrow Weights";
     this.cbNguyenWidrow.UseVisualStyleBackColor = true;
     //
     // cbRegularization
     //
     this.cbRegularization.AutoSize = true;
     this.cbRegularization.Location = new System.Drawing.Point(21, 142);
     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;
     //
     // neuronsBox
     //
     this.neuronsBox.Location = new System.Drawing.Point(198, 104);
     this.neuronsBox.Name     = "neuronsBox";
     this.neuronsBox.Size     = new System.Drawing.Size(96, 26);
     this.neuronsBox.TabIndex = 7;
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(14, 107);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(184, 22);
     this.label4.TabIndex = 6;
     this.label4.Text     = "Neurons in first layer:";
     //
     // alphaBox
     //
     this.alphaBox.Location = new System.Drawing.Point(198, 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(14, 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:";
     //
     // label8
     //
     this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.label8.Location    = new System.Drawing.Point(16, 215);
     this.label8.Name        = "label8";
     this.label8.Size        = new System.Drawing.Size(280, 3);
     this.label8.TabIndex    = 22;
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(200, 227);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.Size     = new System.Drawing.Size(96, 26);
     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(202, 256);
     this.label10.Name     = "label10";
     this.label10.Size     = new System.Drawing.Size(92, 20);
     this.label10.TabIndex = 25;
     this.label10.Text     = "( 0 - inifinity )";
     //
     // label9
     //
     this.label9.Location = new System.Drawing.Point(16, 229);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(112, 24);
     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(816, 307);
     this.groupBox4.Name     = "groupBox4";
     this.groupBox4.Size     = new System.Drawing.Size(312, 110);
     this.groupBox4.TabIndex = 6;
     this.groupBox4.TabStop  = false;
     this.groupBox4.Text     = "Current iteration";
     //
     // currentErrorBox
     //
     this.currentErrorBox.Location = new System.Drawing.Point(200, 66);
     this.currentErrorBox.Name     = "currentErrorBox";
     this.currentErrorBox.ReadOnly = true;
     this.currentErrorBox.Size     = new System.Drawing.Size(96, 26);
     this.currentErrorBox.TabIndex = 3;
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(16, 69);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(112, 23);
     this.label3.TabIndex = 2;
     this.label3.Text     = "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;
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(16, 32);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(112, 24);
     this.label5.TabIndex = 0;
     this.label5.Text     = "Iteration:";
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(1008, 446);
     this.stopButton.Name     = "stopButton";
     this.stopButton.Size     = new System.Drawing.Size(120, 33);
     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(864, 446);
     this.startButton.Name     = "startButton";
     this.startButton.Size     = new System.Drawing.Size(120, 33);
     this.startButton.TabIndex = 7;
     this.startButton.Text     = "&Start";
     this.startButton.Click   += new System.EventHandler(this.startButton_Click);
     //
     // Approximation
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
     this.ClientSize          = new System.Drawing.Size(1146, 500);
     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.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox     = false;
     this.Name            = "Approximation";
     this.Text            = "Approximation 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.groupBox3.ResumeLayout(false);
     this.groupBox3.PerformLayout();
     this.groupBox4.ResumeLayout(false);
     this.groupBox4.PerformLayout();
     this.ResumeLayout(false);
 }
Example #19
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 Accord.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);

        }
Example #20
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(Approximation));
            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 Accord.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(16, 15);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(288, 467);
            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(16, 29);
            this.dataList.Name = "dataList";
            this.dataList.Size = new System.Drawing.Size(256, 373);
            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(16, 417);
            this.loadDataButton.Name = "loadDataButton";
            this.loadDataButton.Size = new System.Drawing.Size(120, 33);
            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(320, 15);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(480, 467);
            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.Size = new System.Drawing.Size(448, 424);
            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(816, 15);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Size = new System.Drawing.Size(312, 285);
            this.groupBox3.TabIndex = 4;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "Settings";
            // 
            // cbNguyenWidrow
            // 
            this.cbNguyenWidrow.AutoSize = true;
            this.cbNguyenWidrow.Location = new System.Drawing.Point(21, 175);
            this.cbNguyenWidrow.Name = "cbNguyenWidrow";
            this.cbNguyenWidrow.Size = new System.Drawing.Size(241, 24);
            this.cbNguyenWidrow.TabIndex = 26;
            this.cbNguyenWidrow.Text = "Use Nguyen-Widrow Weights";
            this.cbNguyenWidrow.UseVisualStyleBackColor = true;
            // 
            // neuronsBox
            // 
            this.neuronsBox.Location = new System.Drawing.Point(198, 104);
            this.neuronsBox.Name = "neuronsBox";
            this.neuronsBox.Size = new System.Drawing.Size(96, 26);
            this.neuronsBox.TabIndex = 7;
            // 
            // label4
            // 
            this.label4.Location = new System.Drawing.Point(14, 107);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(184, 22);
            this.label4.TabIndex = 6;
            this.label4.Text = "Neurons in first layer:";
            // 
            // alphaBox
            // 
            this.alphaBox.Location = new System.Drawing.Point(198, 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(14, 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:";
            // 
            // label8
            // 
            this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.label8.Location = new System.Drawing.Point(16, 215);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(280, 3);
            this.label8.TabIndex = 22;
            // 
            // iterationsBox
            // 
            this.iterationsBox.Location = new System.Drawing.Point(200, 227);
            this.iterationsBox.Name = "iterationsBox";
            this.iterationsBox.Size = new System.Drawing.Size(96, 26);
            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(202, 256);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(92, 20);
            this.label10.TabIndex = 25;
            this.label10.Text = "( 0 - inifinity )";
            // 
            // label9
            // 
            this.label9.Location = new System.Drawing.Point(16, 229);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(112, 24);
            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(816, 307);
            this.groupBox4.Name = "groupBox4";
            this.groupBox4.Size = new System.Drawing.Size(312, 110);
            this.groupBox4.TabIndex = 6;
            this.groupBox4.TabStop = false;
            this.groupBox4.Text = "Current iteration";
            // 
            // currentErrorBox
            // 
            this.currentErrorBox.Location = new System.Drawing.Point(200, 66);
            this.currentErrorBox.Name = "currentErrorBox";
            this.currentErrorBox.ReadOnly = true;
            this.currentErrorBox.Size = new System.Drawing.Size(96, 26);
            this.currentErrorBox.TabIndex = 3;
            // 
            // label3
            // 
            this.label3.Location = new System.Drawing.Point(16, 69);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(112, 23);
            this.label3.TabIndex = 2;
            this.label3.Text = "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;
            // 
            // label5
            // 
            this.label5.Location = new System.Drawing.Point(16, 32);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(112, 24);
            this.label5.TabIndex = 0;
            this.label5.Text = "Iteration:";
            // 
            // stopButton
            // 
            this.stopButton.Enabled = false;
            this.stopButton.Location = new System.Drawing.Point(1008, 446);
            this.stopButton.Name = "stopButton";
            this.stopButton.Size = new System.Drawing.Size(120, 33);
            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(864, 446);
            this.startButton.Name = "startButton";
            this.startButton.Size = new System.Drawing.Size(120, 33);
            this.startButton.TabIndex = 7;
            this.startButton.Text = "&Start";
            this.startButton.Click += new System.EventHandler(this.startButton_Click);
            // 
            // Approximation
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
            this.ClientSize = new System.Drawing.Size(1144, 499);
            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.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MaximizeBox = false;
            this.Name = "Approximation";
            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);

        }
 /// <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 Accord.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(21, 20);
     this.groupBox1.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Padding  = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.groupBox1.Size     = new System.Drawing.Size(491, 643);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Data";
     //
     // classesBox
     //
     this.classesBox.Location = new System.Drawing.Point(405, 579);
     this.classesBox.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.classesBox.Name     = "classesBox";
     this.classesBox.ReadOnly = true;
     this.classesBox.Size     = new System.Drawing.Size(63, 31);
     this.classesBox.TabIndex = 3;
     //
     // label10
     //
     this.label10.Location = new System.Drawing.Point(299, 583);
     this.label10.Margin   = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label10.Name     = "label10";
     this.label10.Size     = new System.Drawing.Size(107, 24);
     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(21, 39);
     this.dataList.Margin        = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.dataList.Name          = "dataList";
     this.dataList.Size          = new System.Drawing.Size(447, 525);
     this.dataList.TabIndex      = 0;
     this.dataList.UseCompatibleStateImageBehavior = false;
     this.dataList.View = System.Windows.Forms.View.Details;
     //
     // loadButton
     //
     this.loadButton.Location = new System.Drawing.Point(21, 579);
     this.loadButton.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.loadButton.Name     = "loadButton";
     this.loadButton.Size     = new System.Drawing.Size(160, 45);
     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(533, 20);
     this.groupBox2.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Padding  = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.groupBox2.Size     = new System.Drawing.Size(395, 643);
     this.groupBox2.TabIndex = 1;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Training";
     //
     // currentErrorBox
     //
     this.currentErrorBox.Location = new System.Drawing.Point(267, 497);
     this.currentErrorBox.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.currentErrorBox.Name     = "currentErrorBox";
     this.currentErrorBox.ReadOnly = true;
     this.currentErrorBox.Size     = new System.Drawing.Size(105, 31);
     this.currentErrorBox.TabIndex = 20;
     //
     // label11
     //
     this.label11.Location = new System.Drawing.Point(21, 501);
     this.label11.Margin   = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label11.Name     = "label11";
     this.label11.Size     = new System.Drawing.Size(259, 27);
     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(21, 552);
     this.label9.Margin      = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label9.Name        = "label9";
     this.label9.Size        = new System.Drawing.Size(351, 3);
     this.label9.TabIndex    = 18;
     //
     // currentIterationBox
     //
     this.currentIterationBox.Location = new System.Drawing.Point(267, 448);
     this.currentIterationBox.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.currentIterationBox.Name     = "currentIterationBox";
     this.currentIterationBox.ReadOnly = true;
     this.currentIterationBox.Size     = new System.Drawing.Size(105, 31);
     this.currentIterationBox.TabIndex = 17;
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(21, 452);
     this.label8.Margin   = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(209, 31);
     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(21, 429);
     this.label7.Margin      = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label7.Name        = "label7";
     this.label7.Size        = new System.Drawing.Size(351, 2);
     this.label7.TabIndex    = 15;
     //
     // errorLimitCheck
     //
     this.errorLimitCheck.Location = new System.Drawing.Point(21, 360);
     this.errorLimitCheck.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.errorLimitCheck.Name     = "errorLimitCheck";
     this.errorLimitCheck.Size     = new System.Drawing.Size(335, 59);
     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(21, 321);
     this.oneNeuronForTwoCheck.Margin          = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.oneNeuronForTwoCheck.Name            = "oneNeuronForTwoCheck";
     this.oneNeuronForTwoCheck.Size            = new System.Drawing.Size(359, 29);
     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(267, 263);
     this.neuronsBox.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.neuronsBox.Name     = "neuronsBox";
     this.neuronsBox.ReadOnly = true;
     this.neuronsBox.Size     = new System.Drawing.Size(105, 31);
     this.neuronsBox.TabIndex = 12;
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(21, 267);
     this.label6.Margin   = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(125, 24);
     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(267, 224);
     this.label5.Margin   = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(124, 33);
     this.label5.TabIndex = 10;
     this.label5.Text     = "( 0 - inifinity )";
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(267, 185);
     this.iterationsBox.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.Size     = new System.Drawing.Size(105, 31);
     this.iterationsBox.TabIndex = 9;
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(21, 189);
     this.label4.Margin   = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(192, 25);
     this.label4.TabIndex = 8;
     this.label4.Text     = "Iterations limit:";
     //
     // errorLimitBox
     //
     this.errorLimitBox.Location = new System.Drawing.Point(267, 136);
     this.errorLimitBox.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.errorLimitBox.Name     = "errorLimitBox";
     this.errorLimitBox.Size     = new System.Drawing.Size(105, 31);
     this.errorLimitBox.TabIndex = 7;
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(21, 140);
     this.label3.Margin   = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(235, 29);
     this.label3.TabIndex = 6;
     this.label3.Text     = "Learning error limit:";
     //
     // alphaBox
     //
     this.alphaBox.Location = new System.Drawing.Point(267, 88);
     this.alphaBox.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.alphaBox.Name     = "alphaBox";
     this.alphaBox.Size     = new System.Drawing.Size(105, 31);
     this.alphaBox.TabIndex = 5;
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(21, 92);
     this.label2.Margin   = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(256, 29);
     this.label2.TabIndex = 4;
     this.label2.Text     = "Sigmoid\'s alpha value:";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(21, 43);
     this.label1.Margin   = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(160, 32);
     this.label1.TabIndex = 2;
     this.label1.Text     = "Learning rate:";
     //
     // learningRateBox
     //
     this.learningRateBox.Location = new System.Drawing.Point(267, 39);
     this.learningRateBox.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.learningRateBox.Name     = "learningRateBox";
     this.learningRateBox.Size     = new System.Drawing.Size(105, 31);
     this.learningRateBox.TabIndex = 3;
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(213, 579);
     this.stopButton.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.stopButton.Name     = "stopButton";
     this.stopButton.Size     = new System.Drawing.Size(160, 45);
     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(21, 579);
     this.startButton.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.startButton.Name     = "startButton";
     this.startButton.Size     = new System.Drawing.Size(160, 45);
     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(949, 20);
     this.groupBox3.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.groupBox3.Name     = "groupBox3";
     this.groupBox3.Padding  = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.groupBox3.Size     = new System.Drawing.Size(469, 643);
     this.groupBox3.TabIndex = 2;
     this.groupBox3.TabStop  = false;
     this.groupBox3.Text     = "Solution";
     //
     // saveFilesCheck
     //
     this.saveFilesCheck.Location = new System.Drawing.Point(21, 595);
     this.saveFilesCheck.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.saveFilesCheck.Name     = "saveFilesCheck";
     this.saveFilesCheck.Size     = new System.Drawing.Size(416, 29);
     this.saveFilesCheck.TabIndex = 4;
     this.saveFilesCheck.Text     = "Save weights and errors to files";
     //
     // label13
     //
     this.label13.Location = new System.Drawing.Point(21, 331);
     this.label13.Margin   = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label13.Name     = "label13";
     this.label13.Size     = new System.Drawing.Size(213, 24);
     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(21, 68);
     this.weightsList.Margin        = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.weightsList.Name          = "weightsList";
     this.weightsList.Size          = new System.Drawing.Size(425, 252);
     this.weightsList.TabIndex      = 2;
     this.weightsList.UseCompatibleStateImageBehavior = false;
     this.weightsList.View = System.Windows.Forms.View.Details;
     //
     // columnHeader1
     //
     this.columnHeader1.Text  = "Neuron";
     this.columnHeader1.Width = 100;
     //
     // columnHeader2
     //
     this.columnHeader2.Text  = "Weight";
     this.columnHeader2.Width = 100;
     //
     // columnHeader3
     //
     this.columnHeader3.Text  = "Value";
     this.columnHeader3.Width = 100;
     //
     // errorChart
     //
     this.errorChart.Location = new System.Drawing.Point(21, 360);
     this.errorChart.Margin   = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.errorChart.Name     = "errorChart";
     this.errorChart.Size     = new System.Drawing.Size(427, 215);
     this.errorChart.TabIndex = 1;
     this.errorChart.Text     = "chart1";
     //
     // label12
     //
     this.label12.Location = new System.Drawing.Point(21, 39);
     this.label12.Margin   = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label12.Name     = "label12";
     this.label12.Size     = new System.Drawing.Size(213, 29);
     this.label12.TabIndex = 0;
     this.label12.Text     = "Network weights:";
     //
     // DeltaRuleForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(192F, 192F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
     this.ClientSize          = new System.Drawing.Size(1435, 683);
     this.Controls.Add(this.groupBox3);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Margin          = new System.Windows.Forms.Padding(4, 4, 4, 4);
     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);
 }
Example #22
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 Accord.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(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.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.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";
     //
     // TimeSeries
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
     this.ClientSize          = new System.Drawing.Size(1144, 579);
     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.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox     = false;
     this.Name            = "TimeSeries";
     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);
 }
Example #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.generateMapButton = new System.Windows.Forms.Button();
            this.citiesCountBox = new System.Windows.Forms.TextBox();
            this.label1 = new System.Windows.Forms.Label();
            this.mapControl = new Accord.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.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);

        }
 /// <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.label5              = new System.Windows.Forms.Label();
     this.generateMapButton   = new System.Windows.Forms.Button();
     this.iterationsBox       = new System.Windows.Forms.TextBox();
     this.startButton         = new System.Windows.Forms.Button();
     this.label4              = new System.Windows.Forms.Label();
     this.citiesCountBox      = new System.Windows.Forms.TextBox();
     this.selectionBox        = new System.Windows.Forms.ComboBox();
     this.currentIterationBox = new System.Windows.Forms.TextBox();
     this.label3              = new System.Windows.Forms.Label();
     this.label1              = new System.Windows.Forms.Label();
     this.label6              = new System.Windows.Forms.Label();
     this.mapControl          = new Accord.Controls.Chart();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.stopButton);
     this.groupBox1.Controls.Add(this.label5);
     this.groupBox1.Controls.Add(this.generateMapButton);
     this.groupBox1.Controls.Add(this.iterationsBox);
     this.groupBox1.Controls.Add(this.startButton);
     this.groupBox1.Controls.Add(this.label4);
     this.groupBox1.Controls.Add(this.citiesCountBox);
     this.groupBox1.Controls.Add(this.selectionBox);
     this.groupBox1.Controls.Add(this.currentIterationBox);
     this.groupBox1.Controls.Add(this.label3);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.label6);
     this.groupBox1.Controls.Add(this.mapControl);
     this.groupBox1.Location = new System.Drawing.Point(2, 4);
     this.groupBox1.Margin   = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Padding  = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.groupBox1.Size     = new System.Drawing.Size(790, 554);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Todays Sales Route";
     //
     // stopButton
     //
     this.stopButton.Enabled  = false;
     this.stopButton.Location = new System.Drawing.Point(628, 446);
     this.stopButton.Margin   = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.stopButton.Name     = "stopButton";
     this.stopButton.Size     = new System.Drawing.Size(138, 28);
     this.stopButton.TabIndex = 4;
     this.stopButton.Text     = "S&top";
     this.stopButton.Click   += new System.EventHandler(this.stopButton_Click);
     //
     // 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(689, 182);
     this.label5.Margin   = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(78, 18);
     this.label5.TabIndex = 6;
     this.label5.Text     = "( 0 - inifinity )";
     //
     // generateMapButton
     //
     this.generateMapButton.Location = new System.Drawing.Point(666, 46);
     this.generateMapButton.Margin   = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.generateMapButton.Name     = "generateMapButton";
     this.generateMapButton.Size     = new System.Drawing.Size(100, 26);
     this.generateMapButton.TabIndex = 3;
     this.generateMapButton.Text     = "&Generate";
     this.generateMapButton.Click   += new System.EventHandler(this.generateMapButton_Click);
     //
     // iterationsBox
     //
     this.iterationsBox.Location = new System.Drawing.Point(700, 154);
     this.iterationsBox.Margin   = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.iterationsBox.Name     = "iterationsBox";
     this.iterationsBox.Size     = new System.Drawing.Size(69, 22);
     this.iterationsBox.TabIndex = 5;
     //
     // startButton
     //
     this.startButton.Location = new System.Drawing.Point(628, 413);
     this.startButton.Margin   = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.startButton.Name     = "startButton";
     this.startButton.Size     = new System.Drawing.Size(138, 28);
     this.startButton.TabIndex = 3;
     this.startButton.Text     = "&Calculate Route";
     this.startButton.Click   += new System.EventHandler(this.startButton_Click);
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(626, 156);
     this.label4.Margin   = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(80, 19);
     this.label4.TabIndex = 4;
     this.label4.Text     = "Iterations:";
     //
     // citiesCountBox
     //
     this.citiesCountBox.Location = new System.Drawing.Point(734, 22);
     this.citiesCountBox.Margin   = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.citiesCountBox.Name     = "citiesCountBox";
     this.citiesCountBox.Size     = new System.Drawing.Size(34, 22);
     this.citiesCountBox.TabIndex = 2;
     //
     // 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(628, 118);
     this.selectionBox.Margin   = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.selectionBox.Name     = "selectionBox";
     this.selectionBox.Size     = new System.Drawing.Size(140, 24);
     this.selectionBox.TabIndex = 3;
     //
     // currentIterationBox
     //
     this.currentIterationBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.currentIterationBox.Location    = new System.Drawing.Point(692, 520);
     this.currentIterationBox.Margin      = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.currentIterationBox.Name        = "currentIterationBox";
     this.currentIterationBox.ReadOnly    = true;
     this.currentIterationBox.Size        = new System.Drawing.Size(66, 15);
     this.currentIterationBox.TabIndex    = 1;
     this.currentIterationBox.Text        = "0";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(626, 96);
     this.label3.Margin   = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(134, 19);
     this.label3.TabIndex = 2;
     this.label3.Text     = "Selection method:";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(626, 24);
     this.label1.Margin   = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(108, 19);
     this.label1.TabIndex = 1;
     this.label1.Text     = "Houses to Visit:";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(626, 520);
     this.label6.Margin   = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(66, 20);
     this.label6.TabIndex = 0;
     this.label6.Text     = "Iteration:";
     //
     // mapControl
     //
     this.mapControl.Location = new System.Drawing.Point(14, 24);
     this.mapControl.Margin   = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.mapControl.Name     = "mapControl";
     this.mapControl.Size     = new System.Drawing.Size(592, 516);
     this.mapControl.TabIndex = 0;
     //
     // MainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(120F, 120F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
     this.ClientSize          = new System.Drawing.Size(799, 547);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Margin          = new System.Windows.Forms.Padding(2, 2, 2, 2);
     this.MaximizeBox     = false;
     this.Name            = "MainForm";
     this.Text            = "Encyclopedias and Neurons";
     this.Closing        += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.ResumeLayout(false);
 }
Example #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.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 Accord.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);
 }