Changeset 6659
- Timestamp:
- 08/12/11 23:30:19 (13 years ago)
- Location:
- branches/GeneralizedQAP
- Files:
-
- 40 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP/HeuristicLab 3.3 Services.sln
r5163 r6659 17 17 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Services.Deployment-3.3.Tests", "HeuristicLab.Services.Deployment\3.3\Tests\HeuristicLab.Services.Deployment-3.3.Tests.csproj", "{421D9CCA-5A48-4813-AB9C-ED7025F9CC35}" 18 18 EndProject 19 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Services.ProblemInstances-3.3", "HeuristicLab.Services.ProblemInstances\HeuristicLab.Services.ProblemInstances-3.3.csproj", "{D4E9242F-DAA4-4A15-8DE7-91CECFFFD898}" 20 EndProject 21 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Services.ProblemInstances.QAPInitializer", "HeuristicLab.Services.ProblemInstances.QAPInitializer\HeuristicLab.Services.ProblemInstances.QAPInitializer.csproj", "{BA6B5487-6CCA-4484-B196-13B68A45CBB5}" 22 ProjectSection(ProjectDependencies) = postProject 23 {D4E9242F-DAA4-4A15-8DE7-91CECFFFD898} = {D4E9242F-DAA4-4A15-8DE7-91CECFFFD898} 24 EndProjectSection 25 EndProject 19 26 Global 20 27 GlobalSection(TestCaseManagementSettings) = postSolution … … 23 30 GlobalSection(SolutionConfigurationPlatforms) = preSolution 24 31 Debug|Any CPU = Debug|Any CPU 32 Debug|Mixed Platforms = Debug|Mixed Platforms 25 33 Debug|x64 = Debug|x64 26 34 Debug|x86 = Debug|x86 27 35 Release|Any CPU = Release|Any CPU 36 Release|Mixed Platforms = Release|Mixed Platforms 28 37 Release|x64 = Release|x64 29 38 Release|x86 = Release|x86 … … 32 41 {30D8C5F1-CD3A-4EC1-907F-430177A03FBE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 33 42 {30D8C5F1-CD3A-4EC1-907F-430177A03FBE}.Debug|Any CPU.Build.0 = Debug|Any CPU 43 {30D8C5F1-CD3A-4EC1-907F-430177A03FBE}.Debug|Mixed Platforms.ActiveCfg = Debug|x64 44 {30D8C5F1-CD3A-4EC1-907F-430177A03FBE}.Debug|Mixed Platforms.Build.0 = Debug|x64 34 45 {30D8C5F1-CD3A-4EC1-907F-430177A03FBE}.Debug|x64.ActiveCfg = Debug|x64 35 46 {30D8C5F1-CD3A-4EC1-907F-430177A03FBE}.Debug|x64.Build.0 = Debug|x64 … … 38 49 {30D8C5F1-CD3A-4EC1-907F-430177A03FBE}.Release|Any CPU.ActiveCfg = Release|Any CPU 39 50 {30D8C5F1-CD3A-4EC1-907F-430177A03FBE}.Release|Any CPU.Build.0 = Release|Any CPU 51 {30D8C5F1-CD3A-4EC1-907F-430177A03FBE}.Release|Mixed Platforms.ActiveCfg = Release|x64 52 {30D8C5F1-CD3A-4EC1-907F-430177A03FBE}.Release|Mixed Platforms.Build.0 = Release|x64 40 53 {30D8C5F1-CD3A-4EC1-907F-430177A03FBE}.Release|x64.ActiveCfg = Release|x64 41 54 {30D8C5F1-CD3A-4EC1-907F-430177A03FBE}.Release|x64.Build.0 = Release|x64 … … 44 57 {EBEBA863-DD05-4331-BE25-5758B15F7407}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 45 58 {EBEBA863-DD05-4331-BE25-5758B15F7407}.Debug|Any CPU.Build.0 = Debug|Any CPU 59 {EBEBA863-DD05-4331-BE25-5758B15F7407}.Debug|Mixed Platforms.ActiveCfg = Debug|x64 60 {EBEBA863-DD05-4331-BE25-5758B15F7407}.Debug|Mixed Platforms.Build.0 = Debug|x64 46 61 {EBEBA863-DD05-4331-BE25-5758B15F7407}.Debug|x64.ActiveCfg = Debug|x64 47 62 {EBEBA863-DD05-4331-BE25-5758B15F7407}.Debug|x64.Build.0 = Debug|x64 … … 50 65 {EBEBA863-DD05-4331-BE25-5758B15F7407}.Release|Any CPU.ActiveCfg = Release|Any CPU 51 66 {EBEBA863-DD05-4331-BE25-5758B15F7407}.Release|Any CPU.Build.0 = Release|Any CPU 67 {EBEBA863-DD05-4331-BE25-5758B15F7407}.Release|Mixed Platforms.ActiveCfg = Release|x64 68 {EBEBA863-DD05-4331-BE25-5758B15F7407}.Release|Mixed Platforms.Build.0 = Release|x64 52 69 {EBEBA863-DD05-4331-BE25-5758B15F7407}.Release|x64.ActiveCfg = Release|x64 53 70 {EBEBA863-DD05-4331-BE25-5758B15F7407}.Release|x64.Build.0 = Release|x64 … … 56 73 {421D9CCA-5A48-4813-AB9C-ED7025F9CC35}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 57 74 {421D9CCA-5A48-4813-AB9C-ED7025F9CC35}.Debug|Any CPU.Build.0 = Debug|Any CPU 75 {421D9CCA-5A48-4813-AB9C-ED7025F9CC35}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 76 {421D9CCA-5A48-4813-AB9C-ED7025F9CC35}.Debug|Mixed Platforms.Build.0 = Debug|x86 58 77 {421D9CCA-5A48-4813-AB9C-ED7025F9CC35}.Debug|x64.ActiveCfg = Debug|x64 59 78 {421D9CCA-5A48-4813-AB9C-ED7025F9CC35}.Debug|x64.Build.0 = Debug|x64 … … 62 81 {421D9CCA-5A48-4813-AB9C-ED7025F9CC35}.Release|Any CPU.ActiveCfg = Release|Any CPU 63 82 {421D9CCA-5A48-4813-AB9C-ED7025F9CC35}.Release|Any CPU.Build.0 = Release|Any CPU 83 {421D9CCA-5A48-4813-AB9C-ED7025F9CC35}.Release|Mixed Platforms.ActiveCfg = Release|x86 84 {421D9CCA-5A48-4813-AB9C-ED7025F9CC35}.Release|Mixed Platforms.Build.0 = Release|x86 64 85 {421D9CCA-5A48-4813-AB9C-ED7025F9CC35}.Release|x64.ActiveCfg = Release|x64 65 86 {421D9CCA-5A48-4813-AB9C-ED7025F9CC35}.Release|x64.Build.0 = Release|x64 66 87 {421D9CCA-5A48-4813-AB9C-ED7025F9CC35}.Release|x86.ActiveCfg = Release|x86 67 88 {421D9CCA-5A48-4813-AB9C-ED7025F9CC35}.Release|x86.Build.0 = Release|x86 89 {D4E9242F-DAA4-4A15-8DE7-91CECFFFD898}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 90 {D4E9242F-DAA4-4A15-8DE7-91CECFFFD898}.Debug|Any CPU.Build.0 = Debug|Any CPU 91 {D4E9242F-DAA4-4A15-8DE7-91CECFFFD898}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU 92 {D4E9242F-DAA4-4A15-8DE7-91CECFFFD898}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU 93 {D4E9242F-DAA4-4A15-8DE7-91CECFFFD898}.Debug|x64.ActiveCfg = Debug|Any CPU 94 {D4E9242F-DAA4-4A15-8DE7-91CECFFFD898}.Debug|x86.ActiveCfg = Debug|Any CPU 95 {D4E9242F-DAA4-4A15-8DE7-91CECFFFD898}.Release|Any CPU.ActiveCfg = Release|Any CPU 96 {D4E9242F-DAA4-4A15-8DE7-91CECFFFD898}.Release|Any CPU.Build.0 = Release|Any CPU 97 {D4E9242F-DAA4-4A15-8DE7-91CECFFFD898}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU 98 {D4E9242F-DAA4-4A15-8DE7-91CECFFFD898}.Release|Mixed Platforms.Build.0 = Release|Any CPU 99 {D4E9242F-DAA4-4A15-8DE7-91CECFFFD898}.Release|x64.ActiveCfg = Release|Any CPU 100 {D4E9242F-DAA4-4A15-8DE7-91CECFFFD898}.Release|x86.ActiveCfg = Release|Any CPU 101 {BA6B5487-6CCA-4484-B196-13B68A45CBB5}.Debug|Any CPU.ActiveCfg = Debug|x86 102 {BA6B5487-6CCA-4484-B196-13B68A45CBB5}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 103 {BA6B5487-6CCA-4484-B196-13B68A45CBB5}.Debug|Mixed Platforms.Build.0 = Debug|x86 104 {BA6B5487-6CCA-4484-B196-13B68A45CBB5}.Debug|x64.ActiveCfg = Debug|x86 105 {BA6B5487-6CCA-4484-B196-13B68A45CBB5}.Debug|x86.ActiveCfg = Debug|x86 106 {BA6B5487-6CCA-4484-B196-13B68A45CBB5}.Debug|x86.Build.0 = Debug|x86 107 {BA6B5487-6CCA-4484-B196-13B68A45CBB5}.Release|Any CPU.ActiveCfg = Release|x86 108 {BA6B5487-6CCA-4484-B196-13B68A45CBB5}.Release|Mixed Platforms.ActiveCfg = Release|x86 109 {BA6B5487-6CCA-4484-B196-13B68A45CBB5}.Release|Mixed Platforms.Build.0 = Release|x86 110 {BA6B5487-6CCA-4484-B196-13B68A45CBB5}.Release|x64.ActiveCfg = Release|x86 111 {BA6B5487-6CCA-4484-B196-13B68A45CBB5}.Release|x86.ActiveCfg = Release|x86 112 {BA6B5487-6CCA-4484-B196-13B68A45CBB5}.Release|x86.Build.0 = Release|x86 68 113 EndGlobalSection 69 114 GlobalSection(SolutionProperties) = preSolution -
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/GeneralizedQuadraticAssignmentProblem.cs
r6657 r6659 78 78 set { InstallationCostsParameter.Value = value; } 79 79 } 80 public DoubleValue TransportationCosts {81 get { return TransportationCostsParameter.Value ; }82 set { TransportationCostsParameter.Value = value; }80 public double TransportationCosts { 81 get { return TransportationCostsParameter.Value.Value; } 82 set { TransportationCostsParameter.Value.Value = value; } 83 83 } 84 84 public DoubleArray Demands { … … 131 131 InstallationCosts = new DoubleMatrix(3, 3); 132 132 133 TransportationCosts = new DoubleValue(1);133 TransportationCosts = 1; 134 134 135 135 Demands = new DoubleArray(5); -
branches/GeneralizedQAP/HeuristicLab.Problems.QuadraticAssignment.Views/3.3/HeuristicLab.Problems.QuadraticAssignment.Views-3.3.csproj
r6344 r6659 113 113 <Reference Include="System.Data" /> 114 114 <Reference Include="System.Drawing" /> 115 <Reference Include="System.Runtime.Serialization" /> 116 <Reference Include="System.ServiceModel" /> 115 117 <Reference Include="System.Windows.Forms" /> 116 118 <Reference Include="System.Windows.Forms.DataVisualization" /> … … 136 138 <DependentUpon>QuadraticAssignmentProblemView.cs</DependentUpon> 137 139 </Compile> 140 <Compile Include="Service References\QAPServiceReference\Reference.cs"> 141 <AutoGen>True</AutoGen> 142 <DesignTime>True</DesignTime> 143 <DependentUpon>Reference.svcmap</DependentUpon> 144 </Compile> 145 <None Include="app.config" /> 138 146 <None Include="Plugin.cs.frame" /> 139 147 <Compile Include="Plugin.cs" /> 140 148 <Compile Include="Properties\AssemblyInfo.cs" /> 141 149 <None Include="Properties\AssemblyInfo.frame" /> 150 <None Include="Service References\QAPServiceReference\HeuristicLab.Problems.QuadraticAssignment.Views.QAPServiceReference.QAPInstanceDto.datasource"> 151 <DependentUpon>Reference.svcmap</DependentUpon> 152 </None> 153 <None Include="Service References\QAPServiceReference\HeuristicLab.Problems.QuadraticAssignment.Views.QAPServiceReference.QAPSolutionDto.datasource"> 154 <DependentUpon>Reference.svcmap</DependentUpon> 155 </None> 156 <None Include="Service References\QAPServiceReference\QAP.wsdl" /> 157 <None Include="Service References\QAPServiceReference\QAP.xsd"> 158 <SubType>Designer</SubType> 159 </None> 160 <None Include="Service References\QAPServiceReference\QAP1.xsd"> 161 <SubType>Designer</SubType> 162 </None> 163 <None Include="Service References\QAPServiceReference\QAP2.xsd"> 164 <SubType>Designer</SubType> 165 </None> 166 <None Include="Service References\QAPServiceReference\QAP3.xsd"> 167 <SubType>Designer</SubType> 168 </None> 142 169 </ItemGroup> 143 170 <ItemGroup> … … 197 224 <Name>HeuristicLab.Problems.QuadraticAssignment-3.3</Name> 198 225 </ProjectReference> 226 </ItemGroup> 227 <ItemGroup> 228 <WCFMetadata Include="Service References\" /> 229 </ItemGroup> 230 <ItemGroup> 231 <WCFMetadataStorage Include="Service References\QAPServiceReference\" /> 232 </ItemGroup> 233 <ItemGroup> 234 <None Include="Service References\QAPServiceReference\QAP.disco" /> 235 </ItemGroup> 236 <ItemGroup> 237 <None Include="Service References\QAPServiceReference\configuration91.svcinfo" /> 238 </ItemGroup> 239 <ItemGroup> 240 <None Include="Service References\QAPServiceReference\configuration.svcinfo" /> 241 </ItemGroup> 242 <ItemGroup> 243 <None Include="Service References\QAPServiceReference\Reference.svcmap"> 244 <Generator>WCF Proxy Generator</Generator> 245 <LastGenOutput>Reference.cs</LastGenOutput> 246 </None> 199 247 </ItemGroup> 200 248 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> -
branches/GeneralizedQAP/HeuristicLab.Problems.QuadraticAssignment.Views/3.3/QuadraticAssignmentProblemView.Designer.cs
r6342 r6659 54 54 this.visualizationTabPage = new System.Windows.Forms.TabPage(); 55 55 this.qapView = new HeuristicLab.Problems.QuadraticAssignment.Views.QAPVisualizationControl(); 56 this.reloadInstancesButton = new System.Windows.Forms.Button(); 56 57 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 57 58 this.tabControl.SuspendLayout(); … … 120 121 this.instancesComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 121 122 this.instancesComboBox.FormattingEnabled = true; 122 this.instancesComboBox.Location = new System.Drawing.Point(1 05, 2);123 this.instancesComboBox.Location = new System.Drawing.Point(137, 1); 123 124 this.instancesComboBox.Name = "instancesComboBox"; 124 this.instancesComboBox.Size = new System.Drawing.Size(3 58, 21);125 this.instancesComboBox.Size = new System.Drawing.Size(326, 21); 125 126 this.instancesComboBox.TabIndex = 7; 126 127 this.instancesComboBox.SelectedValueChanged += new System.EventHandler(this.instancesComboBox_SelectedValueChanged); … … 184 185 this.qapView.Weights = null; 185 186 // 187 // reloadInstancesButton 188 // 189 this.reloadInstancesButton.Location = new System.Drawing.Point(105, 0); 190 this.reloadInstancesButton.Name = "reloadInstancesButton"; 191 this.reloadInstancesButton.Size = new System.Drawing.Size(26, 23); 192 this.reloadInstancesButton.TabIndex = 9; 193 this.reloadInstancesButton.Text = "Reload"; 194 this.reloadInstancesButton.UseVisualStyleBackColor = true; 195 this.reloadInstancesButton.Click += new System.EventHandler(this.reloadInstancesButton_Click); 196 // 186 197 // QuadraticAssignmentProblemView 187 198 // … … 192 203 this.Controls.Add(this.importInstanceButton); 193 204 this.Controls.Add(this.loadInstanceButton); 205 this.Controls.Add(this.reloadInstancesButton); 194 206 this.Controls.Add(this.QAPLIBInstancesLabel); 195 207 this.Name = "QuadraticAssignmentProblemView"; 196 208 this.Size = new System.Drawing.Size(647, 492); 197 209 this.Controls.SetChildIndex(this.QAPLIBInstancesLabel, 0); 210 this.Controls.SetChildIndex(this.reloadInstancesButton, 0); 198 211 this.Controls.SetChildIndex(this.loadInstanceButton, 0); 199 212 this.Controls.SetChildIndex(this.importInstanceButton, 0); … … 223 236 private System.Windows.Forms.TabPage visualizationTabPage; 224 237 private QAPVisualizationControl qapView; 238 private System.Windows.Forms.Button reloadInstancesButton; 225 239 } 226 240 } -
branches/GeneralizedQAP/HeuristicLab.Problems.QuadraticAssignment.Views/3.3/QuadraticAssignmentProblemView.cs
r6342 r6659 25 25 using HeuristicLab.Common.Resources; 26 26 using HeuristicLab.Core.Views; 27 using HeuristicLab.Data; 27 28 using HeuristicLab.MainForm; 28 29 using HeuristicLab.MainForm.WindowsForms; … … 40 41 InitializeComponent(); 41 42 importInstanceButton.Image = VSImageLibrary.Open; 43 reloadInstancesButton.Text = String.Empty; 44 reloadInstancesButton.Image = VSImageLibrary.Refresh; 45 loadInstanceButton.Image = VSImageLibrary.Internet; 42 46 Controls.Remove(parameterCollectionView); 43 47 parameterCollectionView.Dock = DockStyle.Fill; … … 102 106 string instance = instancesComboBox.SelectedItem as string; 103 107 try { 104 Content.LoadEmbeddedInstance(instance); 108 //Content.LoadEmbeddedInstance(instance); 109 using (QAPServiceReference.QAPClient client = new QAPServiceReference.QAPClient()) { 110 var data = client.GetProblemInstanceData(instance); 111 DoubleMatrix weights = new DoubleMatrix(data.Weights.Length, data.Weights.Length); 112 DoubleMatrix distances = new DoubleMatrix(data.Weights.Length, data.Weights.Length); 113 try { 114 for (int i = 0; i < data.Weights.Length; i++) 115 for (int j = 0; j < data.Weights.Length; j++) { 116 weights[i, j] = data.Weights[i][j]; 117 distances[i, j] = data.Distances[i][j]; 118 } 119 } catch (IndexOutOfRangeException) { 120 MessageBox.Show("The problem data is malformed, the problem could not be loaded.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); 121 } 122 Content.Name = data.Name; 123 Content.Description = data.Description; 124 Content.Maximization.Value = data.Maximization; 125 Content.Weights = weights; 126 Content.Distances = distances; 127 } 105 128 } catch (Exception ex) { 106 129 PluginInfrastructure.ErrorHandling.ShowErrorDialog(ex); … … 133 156 toolTip.SetToolTip(QAPLIBInstancesLabel, String.Empty); 134 157 } 158 159 private void reloadInstancesButton_Click(object sender, EventArgs e) { 160 try { 161 using (QAPServiceReference.QAPClient client = new QAPServiceReference.QAPClient()) { 162 instancesComboBox.Items.Clear(); 163 foreach (string name in client.GetProblemInstances()) 164 instancesComboBox.Items.Add(name); 165 } 166 } catch (Exception ex) { 167 PluginInfrastructure.ErrorHandling.ShowErrorDialog(ex); 168 } 169 } 135 170 } 136 171 } -
branches/GeneralizedQAP/HeuristicLab.Services.Deployment/3.3/HeuristicLab.Services.Deployment-3.3.csproj
r5163 r6659 14 14 <StartArguments>/client:"WcfTestClient.exe"</StartArguments> 15 15 <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> 16 <TargetFrameworkProfile></TargetFrameworkProfile> 16 <TargetFrameworkProfile> 17 </TargetFrameworkProfile> 17 18 <SignAssembly>true</SignAssembly> 18 19 <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile> … … 114 115 </ItemGroup> 115 116 <ItemGroup> 116 <None Include="App.config" /> 117 <None Include="App.config"> 118 <SubType>Designer</SubType> 119 </None> 117 120 </ItemGroup> 118 121 <ItemGroup> -
branches/GeneralizedQAP/HeuristicLab/3.3/MergeConfigs.cmd
r4387 r6659 3 3 ConfigMerger "%SolutionDir%\HeuristicLab.Optimizer\3.3\%Outdir%\HeuristicLab.Optimizer-3.3.dll.config" "HeuristicLab 3.3.exe.config" 4 4 ConfigMerger "%SolutionDir%\HeuristicLab.Persistence\3.3\%Outdir%\HeuristicLab.Persistence-3.3.dll.config" "HeuristicLab 3.3.exe.config" 5 ConfigMerger "%SolutionDir%\HeuristicLab.Problems.QuadraticAssignment.Views\3.3\%Outdir%\HeuristicLab.Problems.QuadraticAssignment.Views-3.3.dll.config" "HeuristicLab 3.3.exe.config" 5 6 ConfigMerger "%SolutionDir%\HeuristicLab.Tracing\3.3\%Outdir%\HeuristicLab.Tracing-3.3.dll.config" "HeuristicLab 3.3.exe.config"
Note: See TracChangeset
for help on using the changeset viewer.