help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] variable object and deletions


From: Yingjie Lan
Subject: Re: [Help-glpk] variable object and deletions
Date: Wed, 20 Jan 2010 16:44:16 -0800 (PST)

> At any rate it appears that GLPK (at least when using the
> pre-solvers) uses indexes as row and column identifiers and
> not as absolute addresses.
> 

Exactly. when you delete a variable, the variables that comes after this 
variable will have their index reduced by one. For example:

you have four variables: 1, 2, 3, 4.
after you delete variable 2, you have: 1, 3, 4
but at this moment, index 2 should be assigned to var 3, 
and index 3 to var 4.


      




reply via email to

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