CPLEX API - missing routines

View: New views
3 Messages — Rating Filter:   Alert me  

CPLEX API - missing routines

by Chris Alford :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

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
Help-glpk@...
http://lists.gnu.org/mailman/listinfo/help-glpk

Re: CPLEX API - missing routines

by xypron :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Chris,

the documentation in file doc/glpk.pdf of the source distribution available at
ftp://ftp.gnu.org/gnu/glpk/glpk-4.30.tar.gz.

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:
http://www.uni-koeln.de/rrzk/software/fachuebergreifend/or/cplex_doku/refcallablelibrary/html/functions/CPXchgcoeflist.html

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

Best regards

Xypron

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
Help-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-glpk

Re: CPLEX API - missing routines

by Andrew Makhorin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Going through the list of unresolved external symbols, I have
> identified a small number of routines that are not currently available
> in the API.

Please note that some routines are present but not implemented,
for example, CPXbinvrow.

> 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.

I can implement this routine.


Andrew Makhorin



_______________________________________________
Help-glpk mailing list
Help-glpk@...
http://lists.gnu.org/mailman/listinfo/help-glpk