Free cookie consent management tool by TermsFeed Policy Generator

Changeset 98


Ignore:
Timestamp:
03/25/08 11:50:17 (17 years ago)
Author:
abeham
Message:

Added the DampeningFactor as variable as well so that Success Rule adjustment is completely configurable (ref ticket #77)

Location:
trunk/sources/HeuristicLab.ES
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.ES/ES.cs

    r97 r98  
    384384    public int Seed {
    385385      get { return mySeed.Data; }
    386       set { mySeed.Data = value; }
     386      set {
     387        mySeed.Data = value;
     388        OnChanged();
     389      }
    387390    }
    388391    private IntData myMu;
     
    586589      mySuccessProbability = vi.GetVariable("SuccessProbability").GetValue<DoubleData>();
    587590      myLearningRate = vi.GetVariable("LearningRate").GetValue<DoubleData>();
     591      myDampeningFactor = vi.GetVariable("DampeningFactor").GetValue<DoubleData>();
    588592      myUseSuccessRule = vi.GetVariable("UseSuccessRule").GetValue<BoolData>();
    589593      // Population Initialization
  • trunk/sources/HeuristicLab.ES/ESEditor.Designer.cs

    r97 r98  
    5050      this.parametersTabPage = new System.Windows.Forms.TabPage();
    5151      this.successRuleGroupBox = new System.Windows.Forms.GroupBox();
     52      this.dampeningFactorTextBox = new System.Windows.Forms.TextBox();
     53      this.dampeningFactorLabel = new System.Windows.Forms.Label();
    5254      this.learningRateTextBox = new System.Windows.Forms.TextBox();
    5355      this.label1 = new System.Windows.Forms.Label();
     
    9799      this.resetButton = new System.Windows.Forms.Button();
    98100      this.cloneEngineButton = new System.Windows.Forms.Button();
    99       this.dampeningFactorLabel = new System.Windows.Forms.Label();
    100       this.dampeningFactorTextBox = new System.Windows.Forms.TextBox();
    101101      this.tabControl.SuspendLayout();
    102102      this.parametersTabPage.SuspendLayout();
     
    193193      this.successRuleGroupBox.Text = "Success Rule Mutation Strength Adjustment";
    194194      //
     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      //
    195213      // learningRateTextBox
    196214      //
     
    330348      this.useSuccessRuleCheckBox.Checked = true;
    331349      this.useSuccessRuleCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
    332       this.useSuccessRuleCheckBox.Location = new System.Drawing.Point(410, 235);
     350      this.useSuccessRuleCheckBox.Location = new System.Drawing.Point(410, 248);
    333351      this.useSuccessRuleCheckBox.Name = "useSuccessRuleCheckBox";
    334352      this.useSuccessRuleCheckBox.Size = new System.Drawing.Size(51, 17);
     
    618636      this.scopesTabPage.Name = "scopesTabPage";
    619637      this.scopesTabPage.Padding = new System.Windows.Forms.Padding(3);
    620       this.scopesTabPage.Size = new System.Drawing.Size(518, 477);
     638      this.scopesTabPage.Size = new System.Drawing.Size(518, 497);
    621639      this.scopesTabPage.TabIndex = 2;
    622640      this.scopesTabPage.Text = "Scopes";
     
    630648      this.scopeView.Name = "scopeView";
    631649      this.scopeView.Scope = null;
    632       this.scopeView.Size = new System.Drawing.Size(512, 471);
     650      this.scopeView.Size = new System.Drawing.Size(512, 491);
    633651      this.scopeView.TabIndex = 0;
    634652      //
     
    666684      this.cloneEngineButton.UseVisualStyleBackColor = true;
    667685      this.cloneEngineButton.Click += new System.EventHandler(this.cloneEngineButton_Click);
    668       //
    669       // dampeningFactorLabel
    670       //
    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       // dampeningFactorTextBox
    680       //
    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;
    686686      //
    687687      // ESEditor
  • trunk/sources/HeuristicLab.ES/ESEditor.cs

    r97 r98  
    6565    void ES_Changed(object sender, EventArgs e) {
    6666      // neither Refresh() nor Update() work
     67      randomSeedTextBox.Text = ES.Seed.ToString();
    6768      muTextBox.Text = ES.Mu.ToString();
    6869      rhoTextBox.Text = ES.Rho.ToString();
     
    9596      targetSuccessRateTextBox.DataBindings.Add("Text", ES, "SuccessProbability");
    9697      learningRateTextBox.DataBindings.Add("Text", ES, "LearningRate");
     98      dampeningFactorTextBox.DataBindings.Add("Text", ES, "DampeningFactor");
    9799      useSuccessRuleCheckBox.DataBindings.Add("Checked", ES, "UseSuccessRule");
    98100    }
     
    204206      targetSuccessRateTextBox.Enabled = useSuccessRuleCheckBox.Checked;
    205207      learningRateTextBox.Enabled = useSuccessRuleCheckBox.Checked;
     208      dampeningFactorTextBox.Enabled = useSuccessRuleCheckBox.Checked;
    206209    }
    207210    #endregion
Note: See TracChangeset for help on using the changeset viewer.