- Timestamp:
- 03/31/19 14:40:15 (6 years ago)
- Location:
- branches/1614_GeneralizedQAP/HeuristicLab.OptimizationExpertSystem/3.3
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1614_GeneralizedQAP/HeuristicLab.OptimizationExpertSystem/3.3/HeuristicLab.OptimizationExpertSystem-3.3.csproj
r15694 r16728 10 10 <RootNamespace>HeuristicLab.OptimizationExpertSystem</RootNamespace> 11 11 <AssemblyName>HeuristicLab.OptimizationExpertSystem-3.3</AssemblyName> 12 <TargetFrameworkVersion>v4. 5</TargetFrameworkVersion>12 <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> 13 13 <FileAlignment>512</FileAlignment> 14 <TargetFrameworkProfile /> 14 15 </PropertyGroup> 15 16 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> -
branches/1614_GeneralizedQAP/HeuristicLab.OptimizationExpertSystem/3.3/Menu/0_Config/30_DownloadFromOkbMenuItem.cs
r13767 r16728 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 24 using System.Drawing; 22 25 using HeuristicLab.Common; 23 26 using HeuristicLab.Common.Resources; 24 27 using HeuristicLab.MainForm; 25 using System;26 using System.Collections.Generic;27 using System.Drawing;28 28 29 29 namespace HeuristicLab.OptimizationExpertSystem.Menu { … … 72 72 private void DownloadProgressOnStateChanged(object sender, EventArgs eventArgs) { 73 73 var progress = (IProgress)sender; 74 if (progress.ProgressState == ProgressState.Finished || progress.ProgressState == ProgressState.Cancel ed) {74 if (progress.ProgressState == ProgressState.Finished || progress.ProgressState == ProgressState.CancelRequested) { 75 75 SetToolStripItemEnabled(true); 76 76 progress.ProgressStateChanged -= DownloadProgressOnStateChanged; -
branches/1614_GeneralizedQAP/HeuristicLab.OptimizationExpertSystem/3.3/OptimizationKnowledgeCenter.cs
r13748 r16728 20 20 #endregion 21 21 22 using System; 23 using System.Windows.Forms; 22 24 using HeuristicLab.Common; 23 25 using HeuristicLab.MainForm; 24 26 using HeuristicLab.MainForm.WindowsForms; 25 27 using HeuristicLab.OptimizationExpertSystem.Common; 26 using System;27 using System.Windows.Forms;28 28 29 29 namespace HeuristicLab.OptimizationExpertSystem { … … 45 45 e.Value.ProgressStateChanged += OnProgressStateChanged; 46 46 e.Value.ProgressValueChanged += OnProgressValueChanged; 47 e.Value. StatusChanged += OnProgressStatusChanged;47 e.Value.MessageChanged += OnProgressStatusChanged; 48 48 progressBar.Value = progressBar.Minimum; 49 49 progressLabel.Text = string.Empty; … … 55 55 if (InvokeRequired) { Invoke((Action<object, EventArgs>)OnProgressStateChanged, sender, e); return; } 56 56 var progress = (IProgress)sender; 57 if (progress.ProgressState == ProgressState.Cancel ed57 if (progress.ProgressState == ProgressState.CancelRequested 58 58 || progress.ProgressState == ProgressState.Finished) { 59 59 progress.ProgressStateChanged -= OnProgressStateChanged; 60 60 progress.ProgressValueChanged -= OnProgressValueChanged; 61 progress. StatusChanged -= OnProgressStatusChanged;61 progress.MessageChanged -= OnProgressStatusChanged; 62 62 progressBar.Visible = false; 63 63 progressLabel.Visible = false; … … 74 74 if (InvokeRequired) { Invoke((Action<object, EventArgs>)OnProgressStatusChanged, sender, e); return; } 75 75 var progress = (IProgress)sender; 76 progressLabel.Text = progress. Status.Replace(Environment.NewLine, " ");76 progressLabel.Text = progress.Message.Replace(Environment.NewLine, " "); 77 77 } 78 78 -
branches/1614_GeneralizedQAP/HeuristicLab.OptimizationExpertSystem/3.3/Toolbar/DownloadFromOKBToolbarItem.cs
r13767 r16728 20 20 #endregion 21 21 22 using System; 23 using System.Drawing; 22 24 using HeuristicLab.Common; 23 25 using HeuristicLab.MainForm; 24 using System;25 using System.Drawing;26 26 27 27 namespace HeuristicLab.OptimizationExpertSystem.Toolbar { … … 66 66 private void DownloadProgressOnStateChanged(object sender, EventArgs eventArgs) { 67 67 var progress = (IProgress)sender; 68 if (progress.ProgressState == ProgressState.Finished || progress.ProgressState == ProgressState.Cancel ed) {68 if (progress.ProgressState == ProgressState.Finished || progress.ProgressState == ProgressState.CancelRequested) { 69 69 SetToolStripItemEnabled(true); 70 70 progress.ProgressStateChanged -= DownloadProgressOnStateChanged; -
branches/1614_GeneralizedQAP/HeuristicLab.OptimizationExpertSystem/3.3/Views/KnowledgeCenterAllinOneView.cs
r13774 r16728 20 20 #endregion 21 21 22 using System; 23 using System.Collections.Generic; 24 using System.ComponentModel; 25 using System.Linq; 26 using System.Text.RegularExpressions; 27 using System.Windows.Forms; 28 using System.Windows.Forms.DataVisualization.Charting; 22 29 using HeuristicLab.Analysis; 23 30 using HeuristicLab.Analysis.QualityAnalysis; … … 34 41 using HeuristicLab.Optimization.Views; 35 42 using HeuristicLab.OptimizationExpertSystem.Common; 36 using System;37 using System.Collections.Generic;38 using System.ComponentModel;39 using System.Linq;40 using System.Text.RegularExpressions;41 using System.Windows.Forms;42 using System.Windows.Forms.DataVisualization.Charting;43 43 44 44 namespace HeuristicLab.OptimizationExpertSystem { … … 221 221 return; 222 222 } 223 var progress = new Progress();223 var progress = Progress.ShowOnControl(progressPanel, ""); 224 224 progress.ProgressStateChanged += OkbDownloadProgressOnStateChanged; 225 225 Content.UpdateKnowledgeBaseAsync(progress); 226 MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().AddOperationProgressToView(progressPanel, progress);227 226 progressPanel.Visible = true; 228 227 SetEnabledStateOfControls(); -
branches/1614_GeneralizedQAP/HeuristicLab.OptimizationExpertSystem/3.3/Views/KnowledgeCenterViewBase.cs
r13787 r16728 20 20 #endregion 21 21 22 using System; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.MainForm; … … 25 26 using HeuristicLab.Optimization; 26 27 using HeuristicLab.OptimizationExpertSystem.Common; 27 using System;28 28 29 29 namespace HeuristicLab.OptimizationExpertSystem { … … 146 146 private void ContentOnDownloadStarted(object sender, EventArgs<IProgress> e) { 147 147 if (InvokeRequired) { Invoke((Action<object, EventArgs<IProgress>>)ContentOnDownloadStarted, sender, e); return; } 148 MainForm.AddOperationProgressToView(this, e.Value);148 Progress.Show(this, e.Value); 149 149 e.Value.ProgressStateChanged += ProgressOnStateChanged; 150 150 OnDownloadStarted(e.Value); -
branches/1614_GeneralizedQAP/HeuristicLab.OptimizationExpertSystem/3.3/Views/PerformanceModelingView.cs
r15736 r16728 153 153 private void xValidateButton_Click(object sender, EventArgs e) { 154 154 var recommender = (IAlgorithmInstanceRecommender)recommenderComboBox.SelectedItem; 155 var progress = MainForm.AddOperationProgressToView(this, "Performing Leave-one-out Crossvalidation");155 var progress = Progress.ShowOnControl(this, "Performing Leave-one-out Crossvalidation"); 156 156 var topN = (int)topNComboBox.SelectedItem; 157 157 Task.Factory.StartNew(() => { DoCrossvalidate(recommender, topN, progress); }, TaskCreationOptions.LongRunning); … … 190 190 var observed = Content.GetAlgorithmPerformanceLog10(pi); 191 191 if (observed.Count == 0) continue; 192 progress. Status= pi.Name + "...";192 progress.Message = pi.Name + "..."; 193 193 var model = recommender.TrainModel(trainingSet.Where(x => x != pi).ToArray(), Content, features); 194 194 var predictedTopN = model.GetRanking(pi).Take(topN).ToDictionary(x => x.Key, x => Math.Log10(x.Value));
Note: See TracChangeset
for help on using the changeset viewer.