Changeset 7466 for branches/GeneralizedQAP/HeuristicLab.Problems.Instances
- Timestamp:
- 02/13/12 16:35:13 (13 years ago)
- Location:
- branches/GeneralizedQAP/HeuristicLab.Problems.Instances/3.3
- Files:
-
- 2 added
- 1 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP/HeuristicLab.Problems.Instances/3.3
- Property svn:ignore
-
old new 1 1 obj 2 2 bin 3 Plugin.cs
-
- Property svn:ignore
-
branches/GeneralizedQAP/HeuristicLab.Problems.Instances/3.3/HeuristicLab.Problems.Instances-3.3.csproj
r7465 r7466 52 52 <ItemGroup> 53 53 <None Include="Plugin.cs.frame" /> 54 <Compile Include="Instances\IATSPInstance.cs" /> 54 55 <Compile Include="Instances\ICTAPInstance.cs" /> 55 56 <Compile Include="IInstanceDescriptor.cs" /> 57 <Compile Include="Instances\ICVRPInstance.cs" /> 56 58 <Compile Include="Instances\IQAPInstance.cs" /> 57 59 <Compile Include="Instances\ITSPInstance.cs" /> -
branches/GeneralizedQAP/HeuristicLab.Problems.Instances/3.3/IProblemInstanceConsumer.cs
r7448 r7466 24 24 25 25 public interface IProblemInstanceConsumer<TInstance> : IProblemInstanceConsumer { 26 voidLoadFrom(TInstance instance);26 bool LoadFrom(TInstance instance); 27 27 } 28 28 } -
branches/GeneralizedQAP/HeuristicLab.Problems.Instances/3.3/IProblemInstanceProvider.cs
r7448 r7466 33 33 34 34 void SetConsumer(IProblemInstanceConsumer consumer); 35 voidFeedConsumer(IInstanceDescriptor descriptor);35 bool FeedConsumer(IInstanceDescriptor descriptor); 36 36 37 37 IEnumerable<IInstanceDescriptor> GetInstanceDescriptors(); -
branches/GeneralizedQAP/HeuristicLab.Problems.Instances/3.3/Instances/ICTAPInstance.cs
r7445 r7466 21 21 22 22 namespace HeuristicLab.Problems.Instances { 23 /// <summary> 24 /// Describes instances of the Capacitated Task Assignment Problem (CTAP). 25 /// </summary> 23 26 public interface ICTAPInstance { 24 27 /// <summary> … … 31 34 string Description { get; } 32 35 36 /// <summary> 37 /// The number M of processors 38 /// </summary> 39 int Processors { get; } 40 /// <summary> 41 /// The number N of tasks 42 /// </summary> 43 int Tasks { get; } 33 44 /// <summary> 34 45 /// An MxN Matrix with M = |Processors| and N = |Tasks| -
branches/GeneralizedQAP/HeuristicLab.Problems.Instances/3.3/Instances/IQAPInstance.cs
r7445 r7466 21 21 22 22 namespace HeuristicLab.Problems.Instances { 23 /// <summary> 24 /// Describes instances of the Quadratic Assignment Problem (QAP). 25 /// </summary> 23 26 public interface IQAPInstance { 24 27 /// <summary> … … 31 34 string Description { get; } 32 35 36 /// <summary> 37 /// The number of facilities (and also the number of locations) 38 /// </summary> 39 int Dimension { get; } 33 40 /// <summary> 34 41 /// An NxN Matrix with N = |Faciliies| -
branches/GeneralizedQAP/HeuristicLab.Problems.Instances/3.3/Instances/ITSPInstance.cs
r7465 r7466 22 22 23 23 namespace HeuristicLab.Problems.Instances { 24 public enum TSPDistanceMeasure { Direct, Euclidean, RoundedEuclidean, Geo};24 public enum TSPDistanceMeasure { Direct, Euclidean, RoundedEuclidean, UpperEuclidean, Geo, Manhattan, Maximum, Att }; 25 25 26 /// <summary> 27 /// Describes instances of the Traveling Salesman Problem (TSP). 28 /// </summary> 26 29 public interface ITSPInstance { 27 30 /// <summary> … … 35 38 36 39 /// <summary> 40 /// The number of cities. 41 /// </summary> 42 int Dimension { get; } 43 /// <summary> 37 44 /// Specifies the distance measure that is to be used. 38 ///39 /// Direct = The distances are given in form of the distance matrix.40 /// Euclidean = The distances are calculated as euclidean distance.41 /// RoundedEuclidean = Each individual euclidean distance is rounded before42 /// being summed.43 /// Geo = The coordinates specify points on the surface of the44 /// earth and the distances are arc distances.45 45 /// </summary> 46 46 TSPDistanceMeasure DistanceMeasure { get; } … … 53 53 double[,] Distances { get; } 54 54 /// <summary> 55 /// Optional! A a matrix of dimension [N, 2] where each row is one of the cities55 /// Optional! A a matrix of dimension [N, 2] matrix where each row is one of the cities 56 56 /// and the colmns represent x and y coordinates respectively. 57 57 /// </summary> … … 74 74 /// </summary> 75 75 double? BestKnownQuality { get; } 76 77 /// <summary> 78 /// If only the coordinates are given, can calculate the distance matrix. 79 /// </summary> 80 /// <returns>A full distance matrix between all cities.</returns> 81 double[,] GetDistanceMatrix(); 76 82 } 77 83 } -
branches/GeneralizedQAP/HeuristicLab.Problems.Instances/3.3/ProblemInstanceProvider.cs
r7465 r7466 41 41 } 42 42 43 public voidFeedConsumer(IInstanceDescriptor descriptor) {44 Consumer.LoadFrom(GetInstance(descriptor));43 public bool FeedConsumer(IInstanceDescriptor descriptor) { 44 return Consumer.LoadFrom(GetInstance(descriptor)); 45 45 } 46 46
Note: See TracChangeset
for help on using the changeset viewer.