Re: [Fwd: Help for GLPK Java program]
Heinrich Schuchardt <[email protected]>
| Newsgroups | gmane.comp.gnu.glpk |
|---|---|
| Message-ID | <[email protected]> |
Dear Titouan, the library functions are described in detail in file doc/glpk.pdf of the GLPK source distribution. Have a look at the chapter "Problem retrieving routines". See for instance glp_get_mat_row() and glp_get_mat_col(). Best regards Heinrich On 04/12/2018 12:12 PM, Andrew Makhorin wrote: > -------- Forwarded Message -------- > From: SORANGE DELIEGE Titouan > To: [email protected] <[email protected]> > Subject: Help for GLPF java program > Date: Thu, 12 Apr 2018 10:32:40 +0200 > > Good morning, > > > > I am currently working on a linear programming project using GLPK and > Java. > > > > I have built the matrix that I need to give to GLPK (with the three > arguments ia, ja and ar with the glp_load_matrix method) and I have set > all the coefficients for each constraint of my problem. > > > > I would like to print all the coefficients from the ar array to have an > overview of the matrix from GLPK (before the solving) but I don’t know > which function I should use for that. I tried to use > GLPK.glp_get_row_prim for each line and each column of that same line > (with a loop) but the values are all set at 0 and it seems fair as this > function is used for LP relaxation… > > Thank you for your help. > > > > Regards, > > > > Titouan > > > > > > _______________________________________________ > Help-glpk mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/help-glpk > _______________________________________________ Help-glpk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-glpk