|
From: | Sana Jawad |
Subject: | Re: [Help-glpk] Problem importing gnulpk-java files in java project |
Date: | Thu, 21 Jan 2010 17:22:56 -0800 |
Hi,
I think you only need to importor the following: import org.gnu.glpk.*;
Example:
import org.gnu.glpk.*;
import java.io.FileInputStream;
import java.util.Properties;
public class glpkjava {
public static void main(String[] args) {
GlpkSolver solver = new GlpkSolver();
GlpkSolver solver2 = solver.readModel("SING1.mod","SING1.dat","SING1.sol");
solver2.simplex();
solver2.printSol("solucion sing1.txt");
}
}
Bye, Carlos2010/1/20 Sana Jawad <address@hidden>
Hi,
I have written a model in MathProg. Now I want to integrate it in my java application. I have followed the tutorial for java binding given in the doc folder of glpk-java-1.08. The problem is that in my java application I can only import these three files
import org.gnu.glpk.GlpkSolver;
import org.gnu.glpk.GlpkHookIFC;
import org.gnu.glpk.GlpkSolverKktConditions;
I am unable to import the following files:
import org.gnu.glpk.GLPK;
import org.gnu.glpk.GLPKConstants;
import org.gnu.glpk.SWIGTYPE_p_double;
import org.gnu.glpk.SWIGTYPE_p_int;
import org.gnu.glpk.glp_prob;
import org.gnu.glpk.glp_smcp;
Can anyone please tell me that what could be wrong.
Thanx.
_______________________________________________
Help-glpk mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-glpk
[Prev in Thread] | Current Thread | [Next in Thread] |