If you have COIN installed it has a class called Sparse Matrix
which provides the ability to enter, and many functions to
manipulate  a matrix. It has a function to extract that matrix as
pointers to arrays of ia ja ar triplets suitable for use in
glp_load_matrix. If you don't want to install COIN, the Sparse
Matrix class is seperate code which compiles and functions
independantlly of COIN.

--
Nigel Galloway
[1][email protected]

On Fri, 22 Apr 2011 19:49 +0200, "Pierre Parent"
<[email protected]> wrote:

Thank you for answering.


I do agree that we could think of a lot of ways to represent data
and that all of them would not be useful. Though I think the
first thing you expect for initilizing a table (such as simplex
table), is actually a usual matrix, ie a 2 dimentional table, ie
a double pointer ('double **matrix' in my exemple), containing
only values, no indices. I think it is not actually a
representation of the data among others, it is the most intuitive
one.


On the other hand, having three 1-dimentional table (2 for
indices one for values), as curently done, may be very useful if
the matrix has only few values differant from zero; but quite
tedious to use in general case. Anyway, in my case adding the
other method saved me time.
_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

References

1. mailto:[email protected]

-- 
http://www.fastmail.fm - Accessible with your email software
                          or over the web

_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to