Package org.xilaew.jampl

Examples of org.xilaew.jampl.JAMPL.loadData()


  public static void main(String[] args) throws IOException {
    JAMPL jampl = AmplFactory.createJAMPL();
    jampl.setSolver("cplex");
    jampl.loadModel("output/assignment.mod");
    jampl.loadData("output/assignment0.dat");
    SolveResult result = jampl.solve();
    printResult(result);
    jampl.setSolver("couenne");
    printResult(jampl.solve());
    System.out.println("found a result!");
View Full Code Here


    ampl.getCli().sendCommand(amplModel);
    // Create one Testcase per Path
    for (Path p : paths) {
      // Generate AMPL Data for each Path
      String data = Path2AMPLData.transform(p);
      ampl.loadData(data);
      if (solver == null) {
        InputDialog d = new InputDialog(null, "W�hlen sie den Solver",
            "Welchen Solver m�chten sie verwenden", "couenne", null);
        d.create();
        d.open();
View Full Code Here

      } catch (IOException e) {
        ampl = AmplFactory.createJAMPL();
        ampl.setSolver(solver);
        ampl.loadModel(ActTCG2AMPLModel.transform(tcgActivity));
        System.out.println("RESET!!!");
        ampl.loadData(Path2AMPLData.transform(p));
        try {
          solved = ampl.solve();
        } catch (IOException e1) {
          e1.printStackTrace();
          break;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.