Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.Manufacture/Program.cs @ 17275

Last change on this file since 17275 was 17275, checked in by dpiringe, 5 years ago


  • deleted Util.cs
  • BaseTransformer merges now the component with its reference (if a reference exists) -> easier handling for transformers with parameterizedItems
  • MultiCheckedOperatorTransformer now sets the type name as default value
  • added a type list at the end of the template file -> is needed to instantiate objects
  • changed JCGenerator and JCInstantiator to test a format where FreeParameters and StaticParameters are saved as single Parameter array
File size: 1.4 KB
1using System;
2using System.Collections;
3using System.Collections.Generic;
4using System.IO;
5using System.Linq;
6using System.Reflection;
7using System.Text;
8using System.Threading.Tasks;
9using HeuristicLab.Algorithms.ALPS;
10using HeuristicLab.Algorithms.GeneticAlgorithm;
11using HeuristicLab.Algorithms.LocalSearch;
12using HeuristicLab.Algorithms.TabuSearch;
13using HeuristicLab.Analysis;
14using HeuristicLab.Core;
15using HeuristicLab.Data;
16using HeuristicLab.Encodings.PermutationEncoding;
17using HeuristicLab.Optimization;
18using HeuristicLab.Parameters;
19using HeuristicLab.PluginInfrastructure;
20using HeuristicLab.Problems.Knapsack;
21using HeuristicLab.Problems.TravelingSalesman;
22using HeuristicLab.Problems.VehicleRouting;
23using HeuristicLab.SequentialEngine;
24using Newtonsoft.Json;
25using Newtonsoft.Json.Linq;
26using Newtonsoft.Json.Serialization;
29namespace HeuristicLab.Manufacture {
31  public class Program {
32    static void Main(string[] args) {
33      GeneticAlgorithm alg = new GeneticAlgorithm();
34      TravelingSalesmanProblem tsp = new TravelingSalesmanProblem();
36      JCGenerator gen = new JCGenerator();
37      File.WriteAllText(@"C:\Workspace\TemplateProto10.json", gen.GenerateTemplate(alg, tsp));
39      JCInstantiator configurator = new JCInstantiator();
40      configurator.Instantiate(@"C:\Workspace\TemplateProto10.json");
42      //Console.ReadLine();
43    }
44  }
Note: See TracBrowser for help on using the repository browser.