Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/24/15 18:22:29 (9 years ago)
Author:
abeham
Message:

#2521: fixed plugin dependencies and updated samples

Location:
branches/ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/MultiObjectiveProgrammableProblem.cs

    r13382 r13385  
    9090      var multiEnc = ProblemScript.Encoding as CombinedEncoding;
    9191      if (multiEnc != null) multiEnc.Clear();
    92       ProblemScript.Initialize();
    9392      Encoding = (TEncoding)ProblemScript.Encoding.Clone();
    9493
  • branches/ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/Plugin.cs.frame

    r13321 r13385  
    3131  [PluginDependency("HeuristicLab.Core", "3.3")]
    3232  [PluginDependency("HeuristicLab.Data", "3.3")]
     33  [PluginDependency("HeuristicLab.Encodings.BinaryVectorEncoding", "3.3")]
     34  [PluginDependency("HeuristicLab.Encodings.IntegerVectorEncoding", "3.3")]
     35  [PluginDependency("HeuristicLab.Encodings.RealVectorEncoding", "3.3")]
     36  [PluginDependency("HeuristicLab.Encodings.PermutationEncoding", "3.3")]
     37  [PluginDependency("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding", "3.3")]
     38  [PluginDependency("HeuristicLab.Encodings.LinearLinkageEncoding", "3.3")]
    3339  [PluginDependency("HeuristicLab.Optimization", "3.3")]
    3440  [PluginDependency("HeuristicLab.Parameters", "3.3")]
  • branches/ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/ProblemDefinitionScript.cs

    r13348 r13385  
    124124      try {
    125125        inst = (CompiledProblemDefinition<TEncoding, TSolution>)Activator.CreateInstance(types.Single(x => typeof(CompiledProblemDefinition<TEncoding, TSolution>).IsAssignableFrom(x)));
    126       }
    127       catch (Exception e) {
     126      } catch (Exception e) {
    128127        compiledProblemDefinition = null;
    129128        throw new ProblemDefinitionScriptException("Instantiating the problem definition failed." + Environment.NewLine + "Check your default constructor.", e);
     
    133132        inst.vars = new Variables(VariableStore);
    134133        inst.Encoding = encoding;
    135       }
    136       catch (Exception e) {
     134        inst.Initialize();
     135      } catch (Exception e) {
    137136        compiledProblemDefinition = null;
    138137        throw new ProblemDefinitionScriptException("Initializing the problem definition failed." + Environment.NewLine + "Check your Initialize() method.", e);
     
    142141        compiledProblemDefinition = inst;
    143142        if (fireChanged) OnProblemDefinitionChanged();
    144       }
    145       catch (Exception e) {
     143      } catch (Exception e) {
    146144        compiledProblemDefinition = null;
    147145        throw new ProblemDefinitionScriptException("Using the problem definition in the problem failed." + Environment.NewLine + "Examine this error message carefully (often there is an issue with the defined encoding).", e);
  • branches/ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/SingleObjectiveProgrammableProblem.cs

    r13382 r13385  
    9393      var multiEnc = ProblemScript.Encoding as CombinedEncoding;
    9494      if (multiEnc != null) multiEnc.Clear();
    95       ProblemScript.Initialize();
    9695      Encoding = (TEncoding)ProblemScript.Encoding.Clone();
    9796
Note: See TracChangeset for help on using the changeset viewer.