[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-glpk] Basic Question JNI and LP

From: Mandar
Subject: [Help-glpk] Basic Question JNI and LP
Date: Sun, 22 Feb 2004 15:06:16 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 (VAUSSU03)

Hi ,
I have the following problem . How do i translate it into glpk style JNI?
i mean where to add rows and where to add coloumns? How does the b vector come into picture?

[X,FVAL] = linprog(f,A,b,Aeq,beq,VLB,VUB);
I have done the conversion as follows correct me if i am wrong
the problem is of form
f -- coloumn vector either maximize it or minimize
   use setColCoef( ) for objective variable number of times
b the bounding vector
       //set the b matrix
       for (int c = 0; c < ncol; c++) {
           solver.setRowBnds( row, GlpkSolver.LPX_UP, b[c],b[c] );
A  constraint matrix // this is easy
       solver.loadMat3(   );

Where and how Aeq beq should be used?

I know we have mex interface and it can be directly feed but can somebody give a breif overview?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]