[Top][All Lists]

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

Re: [Help-glpk] CPLEX API - missing routines

From: xypron
Subject: Re: [Help-glpk] CPLEX API - missing routines
Date: Sun, 8 Nov 2009 22:46:24 -0800 (PST)

Hello Chris,

the documentation in file doc/glpk.pdf of the source distribution available

To update existing coefficients you can use the following routines:
glp set mat row—set (replace) row of the constraint matrix
glp set mat col—set (replace) column of the constraint matrix

To incrementally build the matrix you can use
glp add rows—add new rows to problem object
glp add cols—add new columns to problem object

Currently a function like CPXchgcoeflist does not exist in GLPK.
The description can be found at:

To change a coefficient in GLPK you first have to read the row,
column, or matrix and then replace it.

Best regards


Chris Alford wrote:
> Hi,
> I want to use the CPLEX API interface code supplied with the distribution
> to
> link an existing application with GLPK.  The notes supplied indicate that
> the API roughly matches CPLEX 9.0.
> Going through the list of unresolved external symbols, I have identified a
> small number of routines that are not currently available in the API.
> The routine of greatest concern is CPXchgcoeflist.  From the GLPK manual
> the
> only routine I can find to load up coefficients is glp_load_matrix, which
> assumes all coefficients are supplied in one call.
> Has anyone else found a workaround to implement CPXchgcoeflist?  My
> existing
> application relies heavily on CPXchgcoeflist to incrementally build up the
> matrix, and would prefer to not have to rework the original application.
> Thanks for your assistance.
> Chris 
> _______________________________________________
> Help-glpk mailing list
> address@hidden

View this message in context:
Sent from the Gnu - GLPK - Help mailing list archive at

reply via email to

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