Changeset 6936
- Timestamp:
- 10/24/11 18:50:26 (13 years ago)
- Location:
- branches/GeneralizedQAP
- Files:
-
- 2 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP/HeuristicLab.MainForm.WindowsForms/3.3/HeuristicLab.MainForm.WindowsForms-3.3.csproj
r6878 r6936 140 140 <None Include="Plugin.cs.frame" /> 141 141 <Compile Include="Controls\ControlExtensions.cs" /> 142 <Compile Include="MainForms\DockForm.cs"> 143 <SubType>Form</SubType> 144 </Compile> 142 <Compile Include="MainForms\DockForm.cs" /> 145 143 <Compile Include="MainForms\DockForm.Designer.cs"> 146 144 <DependentUpon>DockForm.cs</DependentUpon> -
branches/GeneralizedQAP/HeuristicLab.Problems.QuadraticAssignment.Algorithms/3.3/RobustTabooSearch.cs
r6628 r6936 51 51 52 52 #region Parameter Properties 53 p rivateFixedValueParameter<MultiAnalyzer> AnalyzerParameter {53 public FixedValueParameter<MultiAnalyzer> AnalyzerParameter { 54 54 get { return (FixedValueParameter<MultiAnalyzer>)Parameters["Analyzer"]; } 55 55 } 56 p rivateFixedValueParameter<IntValue> SeedParameter {56 public FixedValueParameter<IntValue> SeedParameter { 57 57 get { return (FixedValueParameter<IntValue>)Parameters["Seed"]; } 58 58 } 59 p rivateFixedValueParameter<BoolValue> SetSeedRandomlyParameter {59 public FixedValueParameter<BoolValue> SetSeedRandomlyParameter { 60 60 get { return (FixedValueParameter<BoolValue>)Parameters["SetSeedRandomly"]; } 61 61 } 62 p rivateFixedValueParameter<IntValue> MaximumIterationsParameter {62 public FixedValueParameter<IntValue> MaximumIterationsParameter { 63 63 get { return (FixedValueParameter<IntValue>)Parameters["MaximumIterations"]; } 64 64 } 65 p rivateFixedValueParameter<IntValue> MinimumTabuTenureParameter {65 public FixedValueParameter<IntValue> MinimumTabuTenureParameter { 66 66 get { return (FixedValueParameter<IntValue>)Parameters["MinimumTabuTenure"]; } 67 67 } 68 p rivateFixedValueParameter<IntValue> MaximumTabuTenureParameter {68 public FixedValueParameter<IntValue> MaximumTabuTenureParameter { 69 69 get { return (FixedValueParameter<IntValue>)Parameters["MaximumTabuTenure"]; } 70 70 } 71 p rivateFixedValueParameter<BoolValue> UseAlternativeAspirationParameter {71 public FixedValueParameter<BoolValue> UseAlternativeAspirationParameter { 72 72 get { return (FixedValueParameter<BoolValue>)Parameters["UseAlternativeAspiration"]; } 73 73 } 74 p rivateFixedValueParameter<IntValue> AlternativeAspirationTenureParameter {74 public FixedValueParameter<IntValue> AlternativeAspirationTenureParameter { 75 75 get { return (FixedValueParameter<IntValue>)Parameters["AlternativeAspirationTenure"]; } 76 76 } 77 p rivateFixedValueParameter<BoolValue> UseNewTabuTenureAdaptionSchemeParameter {77 public FixedValueParameter<BoolValue> UseNewTabuTenureAdaptionSchemeParameter { 78 78 get { return (FixedValueParameter<BoolValue>)Parameters["UseNewTabuTenureAdaptionScheme"]; } 79 79 } -
branches/GeneralizedQAP/HeuristicLab.Problems.QuadraticAssignment.Views/3.3/QuadraticAssignmentProblemView.cs
r6875 r6936 23 23 using System.ComponentModel; 24 24 using System.Drawing; 25 using System.Linq;26 25 using System.Windows.Forms; 27 26 using HeuristicLab.Common.Resources; 28 using HeuristicLab.Core;29 27 using HeuristicLab.Core.Views; 30 using HeuristicLab.Data;31 using HeuristicLab.Encodings.PermutationEncoding;32 28 using HeuristicLab.MainForm; 33 29 using HeuristicLab.MainForm.WindowsForms; … … 38 34 [Content(typeof(QuadraticAssignmentProblem), IsDefaultView = true)] 39 35 public sealed partial class QuadraticAssignmentProblemView : ParameterizedNamedItemView { 36 private QAPService qapService; 37 40 38 public new QuadraticAssignmentProblem Content { 41 39 get { return (QuadraticAssignmentProblem)base.Content; } … … 52 50 parameterCollectionView.Dock = DockStyle.Fill; 53 51 problemTabPage.Controls.Add(parameterCollectionView); 52 qapService = new QAPService(); 54 53 } 55 54 … … 150 149 if (String.IsNullOrEmpty(instance)) return; 151 150 using (var client = new QAPClient()) { 152 loadInstanceWorker.ReportProgress(10); 153 var data = client.GetProblemInstanceData(instance); 154 loadInstanceWorker.ReportProgress(60); 155 DoubleMatrix weights = new DoubleMatrix(data.Weights.Length, data.Weights.Length); 156 DoubleMatrix distances = new DoubleMatrix(data.Weights.Length, data.Weights.Length); 157 try { 158 for (int i = 0; i < data.Weights.Length; i++) 159 for (int j = 0; j < data.Weights.Length; j++) { 160 weights[i, j] = data.Weights[i][j]; 161 distances[i, j] = data.Distances[i][j]; 162 } 163 } catch (IndexOutOfRangeException) { 164 MessageBox.Show("The problem data is malformed, the problem could not be loaded.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); 165 } 166 loadInstanceWorker.ReportProgress(65); 167 Content.Name = data.Name; 168 Content.Description = data.Description; 169 Content.Maximization.Value = data.Maximization; 170 Content.Weights = weights; 171 Content.Distances = distances; 172 173 Content.BestKnownQualityParameter.Value = null; 174 Content.BestKnownSolution = null; 175 Content.BestKnownSolutions = new ItemSet<Permutation>(); 176 var solutions = client.GetBestSolutionsData(instance); 177 loadInstanceWorker.ReportProgress(90); 178 if (solutions.Any()) { 179 Content.BestKnownQualityParameter.Value = new DoubleValue(solutions.First().Quality); 180 Content.BestKnownSolution = new Permutation(PermutationTypes.Absolute, solutions.First().Assignment); 181 foreach (var solution in solutions) { 182 Content.BestKnownSolutions.Add(new Permutation(PermutationTypes.Absolute, solution.Assignment)); 183 } 184 } 185 loadInstanceWorker.ReportProgress(100); 151 qapService.Configure(Content, client, instance, (x) => { if (!Disposing && !IsDisposed) loadInstanceWorker.ReportProgress(x); }); 186 152 } 187 153 } -
branches/GeneralizedQAP/HeuristicLab.Problems.QuadraticAssignment/3.3/HeuristicLab.Problems.QuadraticAssignment-3.3.csproj
r6878 r6936 140 140 <DependentUpon>Reference.svcmap</DependentUpon> 141 141 </Compile> 142 <Compile Include="Services\QAPService.cs" /> 142 143 <None Include="app.config" /> 143 144 <None Include="Plugin.cs.frame" /> … … 251 252 </None> 252 253 </ItemGroup> 254 <ItemGroup /> 253 255 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 254 256 <PropertyGroup> -
branches/GeneralizedQAP/HeuristicLab.Problems.QuadraticAssignment/3.3/Service References/QAPInstanceService/QAP.wsdl
r6875 r6936 14 14 <wsdl:message name="IQAP_GetProblemInstances_OutputMessage"> 15 15 <wsdl:part name="parameters" element="tns:GetProblemInstancesResponse" /> 16 </wsdl:message> 17 <wsdl:message name="IQAP_GetProblemInstancesOfSize_InputMessage"> 18 <wsdl:part name="parameters" element="tns:GetProblemInstancesOfSize" /> 19 </wsdl:message> 20 <wsdl:message name="IQAP_GetProblemInstancesOfSize_OutputMessage"> 21 <wsdl:part name="parameters" element="tns:GetProblemInstancesOfSizeResponse" /> 16 22 </wsdl:message> 17 23 <wsdl:message name="IQAP_GetProblemInstanceData_InputMessage"> … … 32 38 <wsdl:output wsaw:Action="http://tempuri.org/IQAP/GetProblemInstancesResponse" message="tns:IQAP_GetProblemInstances_OutputMessage" /> 33 39 </wsdl:operation> 40 <wsdl:operation name="GetProblemInstancesOfSize"> 41 <wsdl:input wsaw:Action="http://tempuri.org/IQAP/GetProblemInstancesOfSize" message="tns:IQAP_GetProblemInstancesOfSize_InputMessage" /> 42 <wsdl:output wsaw:Action="http://tempuri.org/IQAP/GetProblemInstancesOfSizeResponse" message="tns:IQAP_GetProblemInstancesOfSize_OutputMessage" /> 43 </wsdl:operation> 34 44 <wsdl:operation name="GetProblemInstanceData"> 35 45 <wsdl:input wsaw:Action="http://tempuri.org/IQAP/GetProblemInstanceData" message="tns:IQAP_GetProblemInstanceData_InputMessage" /> … … 45 55 <wsdl:operation name="GetProblemInstances"> 46 56 <soap:operation soapAction="http://tempuri.org/IQAP/GetProblemInstances" style="document" /> 57 <wsdl:input> 58 <soap:body use="literal" /> 59 </wsdl:input> 60 <wsdl:output> 61 <soap:body use="literal" /> 62 </wsdl:output> 63 </wsdl:operation> 64 <wsdl:operation name="GetProblemInstancesOfSize"> 65 <soap:operation soapAction="http://tempuri.org/IQAP/GetProblemInstancesOfSize" style="document" /> 47 66 <wsdl:input> 48 67 <soap:body use="literal" /> -
branches/GeneralizedQAP/HeuristicLab.Problems.QuadraticAssignment/3.3/Service References/QAPInstanceService/QAP1.xsd
r6875 r6936 15 15 </xs:complexType> 16 16 </xs:element> 17 <xs:element name="GetProblemInstancesOfSize"> 18 <xs:complexType> 19 <xs:sequence> 20 <xs:element minOccurs="0" name="minSize" type="xs:int" /> 21 <xs:element minOccurs="0" name="maxSize" type="xs:int" /> 22 </xs:sequence> 23 </xs:complexType> 24 </xs:element> 25 <xs:element name="GetProblemInstancesOfSizeResponse"> 26 <xs:complexType> 27 <xs:sequence> 28 <xs:element xmlns:q2="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="GetProblemInstancesOfSizeResult" nillable="true" type="q2:ArrayOfstring" /> 29 </xs:sequence> 30 </xs:complexType> 31 </xs:element> 17 32 <xs:element name="GetProblemInstanceData"> 18 33 <xs:complexType> … … 25 40 <xs:complexType> 26 41 <xs:sequence> 27 <xs:element xmlns:q 2="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.ProblemInstances" minOccurs="0" name="GetProblemInstanceDataResult" nillable="true" type="q2:QAPInstanceDto" />42 <xs:element xmlns:q3="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.ProblemInstances" minOccurs="0" name="GetProblemInstanceDataResult" nillable="true" type="q3:QAPInstanceDto" /> 28 43 </xs:sequence> 29 44 </xs:complexType> … … 39 54 <xs:complexType> 40 55 <xs:sequence> 41 <xs:element xmlns:q 3="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.ProblemInstances" minOccurs="0" name="GetBestSolutionsDataResult" nillable="true" type="q3:ArrayOfQAPSolutionDto" />56 <xs:element xmlns:q4="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.ProblemInstances" minOccurs="0" name="GetBestSolutionsDataResult" nillable="true" type="q4:ArrayOfQAPSolutionDto" /> 42 57 </xs:sequence> 43 58 </xs:complexType> -
branches/GeneralizedQAP/HeuristicLab.Problems.QuadraticAssignment/3.3/Service References/QAPInstanceService/Reference.cs
r6875 r6936 2 2 // <auto-generated> 3 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319. 4314 // Runtime Version:4.0.30319.237 5 5 // 6 6 // Changes to this file may cause incorrect behavior and will be lost if … … 239 239 string[] GetProblemInstances(); 240 240 241 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IQAP/GetProblemInstancesOfSize", ReplyAction="http://tempuri.org/IQAP/GetProblemInstancesOfSizeResponse")] 242 string[] GetProblemInstancesOfSize(int minSize, int maxSize); 243 241 244 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IQAP/GetProblemInstanceData", ReplyAction="http://tempuri.org/IQAP/GetProblemInstanceDataResponse")] 242 245 HeuristicLab.Problems.QuadraticAssignment.QAPInstanceService.QAPInstanceDto GetProblemInstanceData(string instance); … … 277 280 } 278 281 282 public string[] GetProblemInstancesOfSize(int minSize, int maxSize) { 283 return base.Channel.GetProblemInstancesOfSize(minSize, maxSize); 284 } 285 279 286 public HeuristicLab.Problems.QuadraticAssignment.QAPInstanceService.QAPInstanceDto GetProblemInstanceData(string instance) { 280 287 return base.Channel.GetProblemInstanceData(instance); -
branches/GeneralizedQAP/HeuristicLab.Problems.QuadraticAssignment/3.3/Service References/QAPInstanceService/configuration.svcinfo
r6875 r6936 3 3 <behaviors /> 4 4 <bindings> 5 <binding digest="System.ServiceModel.Configuration.BasicHttpBindingElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:<?xml version="1.0" encoding="utf-16"?><Data hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" messageEncoding="Text" name="BasicHttpBinding_IQAP " textEncoding="utf-8" transferMode="Buffered"><readerQuotas maxArrayLength="16384" maxBytesPerRead="4096" maxDepth="32" maxNameTableCharCount="16384" maxStringContentLength="8192" /><security mode="None"><message algorithmSuite="Default" clientCredentialType="UserName" /><transport clientCredentialType="None" proxyCredentialType="None" realm="" /></security></Data>" bindingType="basicHttpBinding" name="BasicHttpBinding_IQAP" />5 <binding digest="System.ServiceModel.Configuration.BasicHttpBindingElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:<?xml version="1.0" encoding="utf-16"?><Data hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" messageEncoding="Text" name="BasicHttpBinding_IQAP1" textEncoding="utf-8" transferMode="Buffered"><readerQuotas maxArrayLength="16384" maxBytesPerRead="4096" maxDepth="32" maxNameTableCharCount="16384" maxStringContentLength="8192" /><security mode="None"><message algorithmSuite="Default" clientCredentialType="UserName" /><transport clientCredentialType="None" proxyCredentialType="None" realm="" /></security></Data>" bindingType="basicHttpBinding" name="BasicHttpBinding_IQAP1" /> 6 6 </bindings> 7 7 <endpoints> 8 <endpoint normalizedDigest="<?xml version="1.0" encoding="utf-16"?><Data address="http://services.heuristiclab.com/ProblemInstances-3.3/QAP/QAP.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IQAP " contract="QAPInstanceService.IQAP" name="BasicHttpBinding_IQAP" />" digest="<?xml version="1.0" encoding="utf-16"?><Data address="http://services.heuristiclab.com/ProblemInstances-3.3/QAP/QAP.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IQAP" contract="QAPInstanceService.IQAP" name="BasicHttpBinding_IQAP" />" contractName="QAPInstanceService.IQAP" name="BasicHttpBinding_IQAP" />8 <endpoint normalizedDigest="<?xml version="1.0" encoding="utf-16"?><Data address="http://services.heuristiclab.com/ProblemInstances-3.3/QAP/QAP.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IQAP1" contract="QAPInstanceService.IQAP" name="BasicHttpBinding_IQAP1" />" digest="<?xml version="1.0" encoding="utf-16"?><Data address="http://services.heuristiclab.com/ProblemInstances-3.3/QAP/QAP.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IQAP1" contract="QAPInstanceService.IQAP" name="BasicHttpBinding_IQAP1" />" contractName="QAPInstanceService.IQAP" name="BasicHttpBinding_IQAP1" /> 9 9 </endpoints> 10 10 </configurationSnapshot> -
branches/GeneralizedQAP/HeuristicLab.Problems.QuadraticAssignment/3.3/Service References/QAPInstanceService/configuration91.svcinfo
r6875 r6936 1 1 <?xml version="1.0" encoding="utf-8"?> 2 <SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum=" QeiWFCVcLTWEHWNKCNg2gVsn4EY=">2 <SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum="skUfyVwhB3jeStxrxUEPaRKKcK8="> 3 3 <bindingConfigurations> 4 <bindingConfiguration bindingType="basicHttpBinding" name="BasicHttpBinding_IQAP ">4 <bindingConfiguration bindingType="basicHttpBinding" name="BasicHttpBinding_IQAP1"> 5 5 <properties> 6 6 <property path="/name" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 7 <serializedValue>BasicHttpBinding_IQAP </serializedValue>7 <serializedValue>BasicHttpBinding_IQAP1</serializedValue> 8 8 </property> 9 9 <property path="/closeTimeout" isComplexType="false" isExplicitlyDefined="true" clrType="System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> … … 113 113 </bindingConfigurations> 114 114 <endpoints> 115 <endpoint name="BasicHttpBinding_IQAP " contract="QAPInstanceService.IQAP" bindingType="basicHttpBinding" address="http://services.heuristiclab.com/ProblemInstances-3.3/QAP/QAP.svc" bindingConfiguration="BasicHttpBinding_IQAP">115 <endpoint name="BasicHttpBinding_IQAP1" contract="QAPInstanceService.IQAP" bindingType="basicHttpBinding" address="http://services.heuristiclab.com/ProblemInstances-3.3/QAP/QAP.svc" bindingConfiguration="BasicHttpBinding_IQAP1"> 116 116 <properties> 117 117 <property path="/address" isComplexType="false" isExplicitlyDefined="true" clrType="System.Uri, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> … … 125 125 </property> 126 126 <property path="/bindingConfiguration" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 127 <serializedValue>BasicHttpBinding_IQAP </serializedValue>127 <serializedValue>BasicHttpBinding_IQAP1</serializedValue> 128 128 </property> 129 129 <property path="/contract" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> … … 188 188 </property> 189 189 <property path="/name" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 190 <serializedValue>BasicHttpBinding_IQAP </serializedValue>190 <serializedValue>BasicHttpBinding_IQAP1</serializedValue> 191 191 </property> 192 192 <property path="/kind" isComplexType="false" isExplicitlyDefined="false" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
Note: See TracChangeset
for help on using the changeset viewer.