Free cookie consent management tool by TermsFeed Policy Generator

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

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

#3026:

  • added first prototype for:
    • creating templates
    • initialize a optimizer out of a template
  • first attempts to create the option to extend the template generation and initialisation (with Transformers -> json To IItem, IItem to json) without serializing/deserializing the whole IItem
File size: 1.5 KB
Line 
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;
27
28
29namespace ParameterTest {
30 
31  public class Program {
32    static void Main(string[] args) {
33      //GeneticAlgorithm ga = new GeneticAlgorithm();
34      GeneticAlgorithm alg = new GeneticAlgorithm();
35      TravelingSalesmanProblem tsp = new TravelingSalesmanProblem();
36
37      JCGenerator gen = new JCGenerator();
38      File.WriteAllText(@"C:\Workspace\TemplateProto9.json", gen.GenerateTemplate(alg, tsp));
39     
40      JCInstantiator configurator = new JCInstantiator();
41      //configurator.Instantiate(@"C:\Workspace\TemplateProto9.json");
42      //Configure(@"C:\Workspace\TemplateProto9.json");
43      //Console.WriteLine(Optimizer);
44
45      Console.ReadLine();
46    }
47  }
48}
Note: See TracBrowser for help on using the repository browser.