Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/19/10 18:49:17 (14 years ago)
Author:
gkronber
Message:

Removed max. and min. time offset constraints as algorithm parameters and from all engines. The time constraints were added to the relevant terminal symbols (variable & differential) instead. The time offset constraint can be changed by editing the symbols in the function library. #880 (Max and min time offsets for variable symbols are not set correctly by FunctionLibraryInjectors)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CEDMA.Server/3.3/DispatcherView.cs

    r2824 r2843  
    102102      testSamplesStartTextBox.Text = selectedSpec.TestSamplesStart.ToString();
    103103      testSamplesEndTextBox.Text = selectedSpec.TestSamplesEnd.ToString();
    104       minTimeOffsetTextBox.Text = selectedSpec.MinTimeOffset.ToString();
    105       maxTimeOffsetTextBox.Text = selectedSpec.MaxTimeOffset.ToString();
    106104      autoregressiveCheckBox.Checked = selectedSpec.AutoRegressive;
    107105    }
     
    136134          ProblemSpecification spec = dispatcher.GetProblemSpecification(targetVar);
    137135          spec.LearningTask = selectedSpec.LearningTask;
    138           spec.MinTimeOffset = selectedSpec.MinTimeOffset;
    139           spec.MaxTimeOffset = selectedSpec.MaxTimeOffset;
    140136          spec.AutoRegressive = selectedSpec.AutoRegressive;
    141137          var curAllowedAlgos = dispatcher.GetAllowedAlgorithms(targetVar).ToList();
     
    157153
    158154    private void radioButton_CheckedChanged(object sender, EventArgs e) {
    159       minTimeOffsetLabel.Enabled = timeSeriesRadioButton.Checked;
    160       minTimeOffsetTextBox.Enabled = timeSeriesRadioButton.Checked;
    161       maxTimeOffsetLabel.Enabled = timeSeriesRadioButton.Checked;
    162       maxTimeOffsetTextBox.Enabled = timeSeriesRadioButton.Checked;
    163155      autoregressiveCheckBox.Enabled = timeSeriesRadioButton.Checked;
    164156      autoregressiveLabel.Enabled = timeSeriesRadioButton.Checked;
     
    171163      }
    172164      UpdateAlgorithms();
    173     }
    174 
    175     private void timeOffsetTextBox_Validating(object sender, CancelEventArgs e) {
    176       int min, max;
    177       e.Cancel = !int.TryParse(minTimeOffsetTextBox.Text, out min);
    178       e.Cancel = !int.TryParse(maxTimeOffsetTextBox.Text, out max);
    179       e.Cancel = min > max;
    180     }
    181 
    182     private void timeOffsetTextBox_Validated(object sender, EventArgs e) {
    183       selectedSpec.MinTimeOffset = int.Parse(minTimeOffsetTextBox.Text);
    184       selectedSpec.MaxTimeOffset = int.Parse(maxTimeOffsetTextBox.Text);
    185165    }
    186166
     
    255235      editEngineButton.Enabled = algorithmsListBox.SelectedItems.Count > 0;
    256236    }
    257 
    258237  }
    259238}
Note: See TracChangeset for help on using the changeset viewer.