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"));