Changeset 1112
- Timestamp:
- 01/12/09 15:45:21 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.ES
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.ES/ESEditor.Designer.cs
r1091 r1112 80 80 this.problemInitializationTextBox = new System.Windows.Forms.TextBox(); 81 81 this.setRandomSeedRandomlyCheckBox = new System.Windows.Forms.CheckBox(); 82 this.problemDimensionTextBox = new System.Windows.Forms.TextBox(); 82 83 this.initialMutationStrengthVectorTextBox = new System.Windows.Forms.TextBox(); 83 84 this.evaluationLabel = new System.Windows.Forms.Label(); … … 85 86 this.solutionGenerationLabel = new System.Windows.Forms.Label(); 86 87 this.problemInitializationLabel = new System.Windows.Forms.Label(); 88 this.problemDimensionLabel = new System.Windows.Forms.Label(); 87 89 this.initialMutationStrengthLabel = new System.Windows.Forms.Label(); 88 90 this.mutationRateLabel = new System.Windows.Forms.Label(); … … 106 108 this.cloneEngineButton = new System.Windows.Forms.Button(); 107 109 this.toolTip = new System.Windows.Forms.ToolTip(this.components); 108 this.problemDimensionLabel = new System.Windows.Forms.Label();109 this.problemDimensionTextBox = new System.Windows.Forms.TextBox();110 110 this.tabControl.SuspendLayout(); 111 111 this.parametersTabPage.SuspendLayout(); … … 215 215 this.learningRateTextBox.Size = new System.Drawing.Size(186, 20); 216 216 this.learningRateTextBox.TabIndex = 17; 217 this.toolTip.SetToolTip(this.learningRateTextBox, @"Automatically updates when Problem Dimension (dim) is changed. 218 The used formula is: tau = 1 / Sqrt(2*Sqrt(dim))"); 217 219 // 218 220 // label1 … … 233 235 this.generalLearningRateTextBox.Size = new System.Drawing.Size(186, 20); 234 236 this.generalLearningRateTextBox.TabIndex = 15; 237 this.toolTip.SetToolTip(this.generalLearningRateTextBox, @"Automatically updates when Problem Dimension (dim) is changed. 238 The used formula is: tau0 = 1 / Sqrt(2*dim)"); 235 239 // 236 240 // targetSuccessRateLabel … … 494 498 this.setRandomSeedRandomlyCheckBox.UseVisualStyleBackColor = true; 495 499 // 500 // problemDimensionTextBox 501 // 502 this.problemDimensionTextBox.Anchor = System.Windows.Forms.AnchorStyles.None; 503 this.problemDimensionTextBox.Location = new System.Drawing.Point(168, 172); 504 this.problemDimensionTextBox.Name = "problemDimensionTextBox"; 505 this.problemDimensionTextBox.Size = new System.Drawing.Size(186, 20); 506 this.problemDimensionTextBox.TabIndex = 13; 507 this.problemDimensionTextBox.Validated += new System.EventHandler(this.problemDimensionTextBox_Validated); 508 // 496 509 // initialMutationStrengthVectorTextBox 497 510 // … … 543 556 this.problemInitializationLabel.TabIndex = 19; 544 557 this.problemInitializationLabel.Text = "&Problem Initialization:"; 558 // 559 // problemDimensionLabel 560 // 561 this.problemDimensionLabel.Anchor = System.Windows.Forms.AnchorStyles.None; 562 this.problemDimensionLabel.AutoSize = true; 563 this.problemDimensionLabel.Location = new System.Drawing.Point(7, 175); 564 this.problemDimensionLabel.Name = "problemDimensionLabel"; 565 this.problemDimensionLabel.Size = new System.Drawing.Size(100, 13); 566 this.problemDimensionLabel.TabIndex = 12; 567 this.problemDimensionLabel.Text = "Problem Dimension:"; 545 568 // 546 569 // initialMutationStrengthLabel … … 694 717 this.scopesTabPage.Name = "scopesTabPage"; 695 718 this.scopesTabPage.Padding = new System.Windows.Forms.Padding(3); 696 this.scopesTabPage.Size = new System.Drawing.Size(493, 4 61);719 this.scopesTabPage.Size = new System.Drawing.Size(493, 495); 697 720 this.scopesTabPage.TabIndex = 2; 698 721 this.scopesTabPage.Text = "Scopes"; … … 706 729 this.scopeView.Name = "scopeView"; 707 730 this.scopeView.Scope = null; 708 this.scopeView.Size = new System.Drawing.Size(487, 4 55);731 this.scopeView.Size = new System.Drawing.Size(487, 489); 709 732 this.scopeView.TabIndex = 0; 710 733 // … … 749 772 this.toolTip.InitialDelay = 200; 750 773 this.toolTip.ReshowDelay = 40; 751 //752 // problemDimensionLabel753 //754 this.problemDimensionLabel.Anchor = System.Windows.Forms.AnchorStyles.None;755 this.problemDimensionLabel.AutoSize = true;756 this.problemDimensionLabel.Location = new System.Drawing.Point(7, 175);757 this.problemDimensionLabel.Name = "problemDimensionLabel";758 this.problemDimensionLabel.Size = new System.Drawing.Size(100, 13);759 this.problemDimensionLabel.TabIndex = 12;760 this.problemDimensionLabel.Text = "Problem Dimension:";761 //762 // problemDimensionTextBox763 //764 this.problemDimensionTextBox.Anchor = System.Windows.Forms.AnchorStyles.None;765 this.problemDimensionTextBox.Location = new System.Drawing.Point(168, 172);766 this.problemDimensionTextBox.Name = "problemDimensionTextBox";767 this.problemDimensionTextBox.Size = new System.Drawing.Size(186, 20);768 this.problemDimensionTextBox.TabIndex = 13;769 this.problemDimensionTextBox.Validated += new System.EventHandler(this.problemDimensionTextBox_Validated);770 774 // 771 775 // ESEditor -
trunk/sources/HeuristicLab.ES/ESEditor.cs
r1091 r1112 61 61 : this() { 62 62 ES = es; 63 int dimension = es.ShakingFactors.Length; 64 problemDimensionTextBox.Text = dimension.ToString(); 63 65 } 64 66 … … 268 270 if (ES.ShakingFactors.Length != dim) { 269 271 problemDimensionTextBox.Text = ES.ShakingFactors.Length.ToString(); 272 UpdateLearningRates(); 270 273 } 271 274 Refresh(); … … 287 290 } 288 291 ES.ShakingFactors = shakingFactors; 292 UpdateLearningRates(); 289 293 Refresh(); 294 } 295 } 296 297 private void UpdateLearningRates() { 298 if (ES != null) { 299 int dimension = int.Parse(problemDimensionTextBox.Text); 300 ES.GeneralLearningRate = 1 / Math.Sqrt(2 * dimension); 301 ES.LearningRate = 1 / Math.Sqrt(2 * Math.Sqrt(dimension)); 290 302 } 291 303 } -
trunk/sources/HeuristicLab.ES/ESEditor.resx
r1091 r1112 121 121 <value>7, 3</value> 122 122 </metadata> 123 <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 124 <value>7, 3</value> 125 </metadata> 123 126 <data name="initialMutationStrengthVectorTextBox.ToolTip" xml:space="preserve"> 124 127 <value>Enter a pattern that is used to generate the initial strategy vector.
Note: See TracChangeset
for help on using the changeset viewer.