Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/11/12 17:47:04 (13 years ago)
Author:
abeham
Message:

#1614: worked on GQAP (added operators, assignment view)

Location:
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3
Files:
15 added
8 edited

Legend:

Unmodified
Added
Removed
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Analyzers/BestGQAPSolutionAnalyzer.cs

    r7311 r7319  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Evaluators/GQAPEvaluator.cs

    r7311 r7319  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/GQAPAssignment.cs

    r7311 r7319  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/GeneralizedQuadraticAssignmentProblem.cs

    r7311 r7319  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    146146      Capacities[0] = 4; Capacities[1] = 1; Capacities[2] = 4;
    147147
     148      SolutionCreator.IntegerVectorParameter.ActualName = "Assignment";
    148149      Parameterize();
    149150
     
    200201    private void InitializeOperators() {
    201202      Operators.AddRange(ApplicationManager.Manager.GetInstances<IIntegerVectorOperator>());
     203      Operators.AddRange(ApplicationManager.Manager.GetInstances<IGQAPOperator>());
    202204      Operators.RemoveAll(x => x is ISingleObjectiveMoveEvaluator);
    203205      Operators.Add(new BestGQAPSolutionAnalyzer());
     
    212214      Evaluator.DemandsParameter.ActualName = DemandsParameter.Name;
    213215      Evaluator.CapacitiesParameter.ActualName = CapacitiesParameter.Name;
    214       Evaluator.AssignmentParameter.ActualName = "Assignment";
     216      Evaluator.AssignmentParameter.ActualName = SolutionCreator.IntegerVectorParameter.ActualName;
    215217
    216218      SolutionCreator.LengthParameter.Value = new IntValue(Demands.Length);
    217219      SolutionCreator.MinimumParameter.Value = new IntValue(0);
    218220      SolutionCreator.MaximumParameter.Value = new IntValue(Capacities.Length);
    219       SolutionCreator.IntegerVectorParameter.ActualName = "Assignment";
    220 
    221       foreach (IIntegerVectorCrossover op in Operators.OfType<IIntegerVectorCrossover>()) {
     221
     222      foreach (var op in Operators.OfType<IIntegerVectorCrossover>()) {
    222223        op.ParentsParameter.ActualName = SolutionCreator.IntegerVectorParameter.ActualName;
    223224        op.ChildParameter.ActualName = SolutionCreator.IntegerVectorParameter.ActualName;
    224225      }
    225       foreach (IIntegerVectorManipulator op in Operators.OfType<IIntegerVectorManipulator>()) {
     226      foreach (var op in Operators.OfType<IIntegerVectorManipulator>()) {
    226227        op.IntegerVectorParameter.ActualName = SolutionCreator.IntegerVectorParameter.ActualName;
     228      }
     229      foreach (var op in Operators.OfType<IGQAPCrossover>()) {
     230        op.ParentsParameter.ActualName = SolutionCreator.IntegerVectorParameter.ActualName;
     231        op.ChildParameter.ActualName = SolutionCreator.IntegerVectorParameter.ActualName;
     232      }
     233      foreach (var op in Operators.OfType<IGQAPManipulator>()) {
     234        op.IntegerVectorParameter.ActualName = SolutionCreator.IntegerVectorParameter.ActualName;
     235      }
     236      foreach (var op in Operators.OfType<ILocationAwareGQAPOperator>()) {
     237        op.CapacitiesParameter.ActualName = CapacitiesParameter.Name;
     238      }
     239      foreach (var op in Operators.OfType<IEquipmentAwareGQAPManipulator>()) {
     240        op.DemandsParameter.ActualName = DemandsParameter.Name;
    227241      }
    228242
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/HeuristicLab.Problems.GeneralizedQuadraticAssignment-3.3.csproj

    r6956 r7319  
    3636  <PropertyGroup>
    3737    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
    38   </PropertyGroup>
    39   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
    40     <DebugSymbols>true</DebugSymbols>
    41     <OutputPath>bin\x86\Debug\</OutputPath>
    42     <DefineConstants>DEBUG;TRACE</DefineConstants>
    43     <DebugType>full</DebugType>
    44     <PlatformTarget>x86</PlatformTarget>
    45     <CodeAnalysisLogFile>bin\Debug\Plugin.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
    46     <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
    47     <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
    48     <ErrorReport>prompt</ErrorReport>
    49     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    50     <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
    51     <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
    52     <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
    53     <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
    54   </PropertyGroup>
    55   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
    56     <OutputPath>bin\x86\Release\</OutputPath>
    57     <DefineConstants>TRACE</DefineConstants>
    58     <Optimize>true</Optimize>
    59     <DebugType>pdbonly</DebugType>
    60     <PlatformTarget>x86</PlatformTarget>
    61     <CodeAnalysisLogFile>bin\Release\Plugin.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
    62     <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
    63     <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
    64     <ErrorReport>prompt</ErrorReport>
    65     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    66     <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
    67     <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
    68     <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
    69   </PropertyGroup>
    70   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
    71     <DebugSymbols>true</DebugSymbols>
    72     <OutputPath>bin\x64\Debug\</OutputPath>
    73     <DefineConstants>DEBUG;TRACE</DefineConstants>
    74     <DebugType>full</DebugType>
    75     <PlatformTarget>x64</PlatformTarget>
    76     <CodeAnalysisLogFile>bin\Debug\Plugin.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
    77     <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
    78     <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
    79     <ErrorReport>prompt</ErrorReport>
    80     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    81     <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
    82     <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
    83     <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
    84     <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
    85   </PropertyGroup>
    86   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
    87     <OutputPath>bin\x64\Release\</OutputPath>
    88     <DefineConstants>TRACE</DefineConstants>
    89     <Optimize>true</Optimize>
    90     <DebugType>pdbonly</DebugType>
    91     <PlatformTarget>x64</PlatformTarget>
    92     <CodeAnalysisLogFile>bin\Release\Plugin.dll.CodeAnalysisLog.xml</CodeAnalysisLogFile>
    93     <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
    94     <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
    95     <ErrorReport>prompt</ErrorReport>
    96     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
    97     <CodeAnalysisRuleSetDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
    98     <CodeAnalysisIgnoreBuiltInRuleSets>true</CodeAnalysisIgnoreBuiltInRuleSets>
    99     <CodeAnalysisRuleDirectories>;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
    100     <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
    101     <CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
    10238  </PropertyGroup>
    10339  <ItemGroup>
     
    15389  <ItemGroup>
    15490    <Compile Include="Analyzers\BestGQAPSolutionAnalyzer.cs" />
     91    <Compile Include="ExtensionMethods.cs" />
    15592    <Compile Include="GQAPAssignment.cs" />
    15693    <None Include="Plugin.cs.frame" />
    15794    <Compile Include="Evaluators\GQAPEvaluator.cs" />
    15895    <Compile Include="GeneralizedQuadraticAssignmentProblem.cs" />
     96    <Compile Include="Interfaces\IEquipmentAwareGQAPOperator.cs" />
     97    <Compile Include="Interfaces\IGQAPCrossover.cs" />
    15998    <Compile Include="Interfaces\IGQAPEvaluator.cs" />
     99    <Compile Include="Interfaces\IGQAPManipulator.cs" />
     100    <Compile Include="Interfaces\IGQAPOperator.cs" />
     101    <Compile Include="Interfaces\ILocationAwareGQAPOperator.cs" />
     102    <Compile Include="Operators\DemandEquivalentSwapEquipmentManipluator.cs" />
     103    <Compile Include="Operators\GQAPCrossover.cs" />
     104    <Compile Include="Operators\DiscreteLocationCrossover.cs" />
     105    <Compile Include="Operators\RelocateEquipmentManipluator.cs" />
     106    <Compile Include="Operators\GQAPManipulator.cs" />
     107    <Compile Include="Operators\SwapEquipmentManipluator.cs" />
     108    <Compile Include="Operators\SwapLocationManipulator.cs" />
    160109    <Compile Include="Plugin.cs" />
    161110    <Compile Include="Properties\AssemblyInfo.cs" />
    162     <None Include="Properties\AssemblyInfo.frame" />
     111    <None Include="Properties\AssemblyInfo.cs.frame" />
    163112  </ItemGroup>
    164113  <ItemGroup>
     
    172121set Outdir=$(Outdir)
    173122
    174 call PreBuildEvent.cmd
    175 SubWCRev "%25ProjectDir%25\" "%25ProjectDir%25\Plugin.cs.frame" "%25ProjectDir%25\Plugin.cs"</PreBuildEvent>
     123call PreBuildEvent.cmd</PreBuildEvent>
    176124  </PropertyGroup>
    177125  <PropertyGroup>
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Interfaces/IGQAPEvaluator.cs

    r6956 r7319  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Plugin.cs.frame

    r6956 r7319  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Properties/AssemblyInfo.cs.frame

    r6956 r7319  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
Note: See TracChangeset for help on using the changeset viewer.