Package hu.u_szeged.nbo.res_alloc.algorithm

Examples of hu.u_szeged.nbo.res_alloc.algorithm.GreedyAlgorithm


    }
   
    try {
      ResAllocModel model = loader.getModel();
 
      GreedyAlgorithm a = null;
      if (algType.equals("greedy1_delta1") ||
        algType.equals("greedy1_delta2") ||
        algType.equals("greedy1_delta3") ||
        algType.equals("greedy4") ||
        algType.equals("reschedule")) {
        nativeSolve(inputDir);
        log = propertiesData + "\n\n" + log;
        return;
      }
      else if (algType.equals("greedy2")) {
        a = new GreedyAlgorithm2(model);
      }
      else if (algType.equals("greedy3_delta1")) {
        a = new GreedyAlgorithm3(model, 1);
      }
      else if (algType.equals("greedy3_delta2")) {
        a = new GreedyAlgorithm3(model, 2);
      }
      else if (algType.equals("greedy3_delta3")) {
        a = new GreedyAlgorithm3(model, 3);
      }
      if (a == null) {
        log += "no such algorithm\n";
        return;
      }
      a.solve();
      log += a.getLog();
      log = propertiesData + "\n\n" + log;
      //model.computeC();
      output = model.output();
      model.outputTables(inputDir);
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of hu.u_szeged.nbo.res_alloc.algorithm.GreedyAlgorithm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.