Package hu.u_szeged.nbo.server.jni

Examples of hu.u_szeged.nbo.server.jni.JLPClass


    NBOServer.log("The server began to compute the "+
        user.getUserName()+"'s "+ task+" with SimpleMPSSolver ...", 1);
   
    String result = "";
    String log = "";
    JLPClass lp = new JLPClass();
    lp.initCppSide();

    lp.setLogLevel(4);
    lp.setInputSource(1);
    lp.setInputMPSFileName(task);

    lp.solve();

      log += lp.getMessages();
     
      for (int i = 0; i < lp.getNumberColumns(); i++) {
        result += i + ". variable: " + lp.getSolution(i) + "\n";
      }
    System.out.println("Result: "+result);
      lp.cleanUpCppSide();
  /*  try {
      user.getNewResults().put(this.problemName+".mps", result);
      user.getLogs().put(this.problemName+".mps", log);
     
      PrintWriter pw = new PrintWriter(new FileWriter(this.pathOfTask+"/"+problemName+".out"));
View Full Code Here

TOP

Related Classes of hu.u_szeged.nbo.server.jni.JLPClass

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.