Changeset 7311 for branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Evaluators
- Timestamp:
- 01/11/12 09:16:27 (13 years ago)
- Location:
- branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3
- Property svn:ignore
-
old new 1 1 Plugin.cs 2 2 obj 3 bin
-
- Property svn:ignore
-
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Evaluators/GQAPEvaluator.cs
r6956 r7311 20 20 #endregion 21 21 22 using System; 22 23 using System.Linq; 23 24 using HeuristicLab.Common; … … 98 99 double infeasibility = 0; 99 100 101 if (weights.Rows != weights.Columns || distances.Rows != distances.Columns 102 || weights.Rows != installCosts.Rows || distances.Rows != installCosts.Columns 103 || demands.Length != weights.Rows || capacities.Length != distances.Rows) 104 throw new InvalidOperationException("ERROR: The problem configuration is not valid! Check the sizes of the weights (NxN), distances (MxM) and installation costs (NxM) matrices as well as the length of the demand (N) and capacities (M) vectors."); 105 100 106 int len = assignment.Length; 101 107 for (int i = 0; i < len; i++) {
Note: See TracChangeset
for help on using the changeset viewer.