- Timestamp:
- 03/25/08 11:50:17 (17 years ago)
- Location:
- trunk/sources/HeuristicLab.ES
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.ES/ES.cs
r97 r98 384 384 public int Seed { 385 385 get { return mySeed.Data; } 386 set { mySeed.Data = value; } 386 set { 387 mySeed.Data = value; 388 OnChanged(); 389 } 387 390 } 388 391 private IntData myMu; … … 586 589 mySuccessProbability = vi.GetVariable("SuccessProbability").GetValue<DoubleData>(); 587 590 myLearningRate = vi.GetVariable("LearningRate").GetValue<DoubleData>(); 591 myDampeningFactor = vi.GetVariable("DampeningFactor").GetValue<DoubleData>(); 588 592 myUseSuccessRule = vi.GetVariable("UseSuccessRule").GetValue<BoolData>(); 589 593 // Population Initialization -
trunk/sources/HeuristicLab.ES/ESEditor.Designer.cs
r97 r98 50 50 this.parametersTabPage = new System.Windows.Forms.TabPage(); 51 51 this.successRuleGroupBox = new System.Windows.Forms.GroupBox(); 52 this.dampeningFactorTextBox = new System.Windows.Forms.TextBox(); 53 this.dampeningFactorLabel = new System.Windows.Forms.Label(); 52 54 this.learningRateTextBox = new System.Windows.Forms.TextBox(); 53 55 this.label1 = new System.Windows.Forms.Label(); … … 97 99 this.resetButton = new System.Windows.Forms.Button(); 98 100 this.cloneEngineButton = new System.Windows.Forms.Button(); 99 this.dampeningFactorLabel = new System.Windows.Forms.Label();100 this.dampeningFactorTextBox = new System.Windows.Forms.TextBox();101 101 this.tabControl.SuspendLayout(); 102 102 this.parametersTabPage.SuspendLayout(); … … 193 193 this.successRuleGroupBox.Text = "Success Rule Mutation Strength Adjustment"; 194 194 // 195 // dampeningFactorTextBox 196 // 197 this.dampeningFactorTextBox.Anchor = System.Windows.Forms.AnchorStyles.Top; 198 this.dampeningFactorTextBox.Location = new System.Drawing.Point(150, 71); 199 this.dampeningFactorTextBox.Name = "dampeningFactorTextBox"; 200 this.dampeningFactorTextBox.Size = new System.Drawing.Size(180, 20); 201 this.dampeningFactorTextBox.TabIndex = 19; 202 // 203 // dampeningFactorLabel 204 // 205 this.dampeningFactorLabel.Anchor = System.Windows.Forms.AnchorStyles.Top; 206 this.dampeningFactorLabel.AutoSize = true; 207 this.dampeningFactorLabel.Location = new System.Drawing.Point(7, 74); 208 this.dampeningFactorLabel.Name = "dampeningFactorLabel"; 209 this.dampeningFactorLabel.Size = new System.Drawing.Size(97, 13); 210 this.dampeningFactorLabel.TabIndex = 18; 211 this.dampeningFactorLabel.Text = "Dampening Factor:"; 212 // 195 213 // learningRateTextBox 196 214 // … … 330 348 this.useSuccessRuleCheckBox.Checked = true; 331 349 this.useSuccessRuleCheckBox.CheckState = System.Windows.Forms.CheckState.Checked; 332 this.useSuccessRuleCheckBox.Location = new System.Drawing.Point(410, 2 35);350 this.useSuccessRuleCheckBox.Location = new System.Drawing.Point(410, 248); 333 351 this.useSuccessRuleCheckBox.Name = "useSuccessRuleCheckBox"; 334 352 this.useSuccessRuleCheckBox.Size = new System.Drawing.Size(51, 17); … … 618 636 this.scopesTabPage.Name = "scopesTabPage"; 619 637 this.scopesTabPage.Padding = new System.Windows.Forms.Padding(3); 620 this.scopesTabPage.Size = new System.Drawing.Size(518, 4 77);638 this.scopesTabPage.Size = new System.Drawing.Size(518, 497); 621 639 this.scopesTabPage.TabIndex = 2; 622 640 this.scopesTabPage.Text = "Scopes"; … … 630 648 this.scopeView.Name = "scopeView"; 631 649 this.scopeView.Scope = null; 632 this.scopeView.Size = new System.Drawing.Size(512, 4 71);650 this.scopeView.Size = new System.Drawing.Size(512, 491); 633 651 this.scopeView.TabIndex = 0; 634 652 // … … 666 684 this.cloneEngineButton.UseVisualStyleBackColor = true; 667 685 this.cloneEngineButton.Click += new System.EventHandler(this.cloneEngineButton_Click); 668 //669 // dampeningFactorLabel670 //671 this.dampeningFactorLabel.Anchor = System.Windows.Forms.AnchorStyles.Top;672 this.dampeningFactorLabel.AutoSize = true;673 this.dampeningFactorLabel.Location = new System.Drawing.Point(7, 74);674 this.dampeningFactorLabel.Name = "dampeningFactorLabel";675 this.dampeningFactorLabel.Size = new System.Drawing.Size(97, 13);676 this.dampeningFactorLabel.TabIndex = 18;677 this.dampeningFactorLabel.Text = "Dampening Factor:";678 //679 // dampeningFactorTextBox680 //681 this.dampeningFactorTextBox.Anchor = System.Windows.Forms.AnchorStyles.Top;682 this.dampeningFactorTextBox.Location = new System.Drawing.Point(150, 71);683 this.dampeningFactorTextBox.Name = "dampeningFactorTextBox";684 this.dampeningFactorTextBox.Size = new System.Drawing.Size(180, 20);685 this.dampeningFactorTextBox.TabIndex = 19;686 686 // 687 687 // ESEditor -
trunk/sources/HeuristicLab.ES/ESEditor.cs
r97 r98 65 65 void ES_Changed(object sender, EventArgs e) { 66 66 // neither Refresh() nor Update() work 67 randomSeedTextBox.Text = ES.Seed.ToString(); 67 68 muTextBox.Text = ES.Mu.ToString(); 68 69 rhoTextBox.Text = ES.Rho.ToString(); … … 95 96 targetSuccessRateTextBox.DataBindings.Add("Text", ES, "SuccessProbability"); 96 97 learningRateTextBox.DataBindings.Add("Text", ES, "LearningRate"); 98 dampeningFactorTextBox.DataBindings.Add("Text", ES, "DampeningFactor"); 97 99 useSuccessRuleCheckBox.DataBindings.Add("Checked", ES, "UseSuccessRule"); 98 100 } … … 204 206 targetSuccessRateTextBox.Enabled = useSuccessRuleCheckBox.Checked; 205 207 learningRateTextBox.Enabled = useSuccessRuleCheckBox.Checked; 208 dampeningFactorTextBox.Enabled = useSuccessRuleCheckBox.Checked; 206 209 } 207 210 #endregion
Note: See TracChangeset
for help on using the changeset viewer.