Hello Nigel, the proposed iajaar.h looks promising.
Unfortunately the referenced download site http://www.geocities.com/nigel_galloway/IAJAAR.zip no longer exists. Is there an alternative site? > Do you rely on Java's garbage collector to dispose of these or do > you call glpk's delete function (glp_delete_prob)? Glp_delete_prob() only deletes objecst created by GLPK. GLPK-Java relies on garbage collection for other objects like instances of SWIGTYPE_p_double. Best regards Xypron -------- Original-Nachricht -------- > Datum: Thu, 17 Jun 2010 15:56:56 +0100 > Betreff: Re: [Help-glpk] glpk and R (using SWIG) > > I assume you are creating objects in GLPK, like say a constraint matrix. > Do you rely on Java's garbage collector to dispose of these or do you call > glpk's delete function (glp_delete_prob)? I do the latter. I don't recall > ever noticing R's garbage collector. > > So don't use carrays. I use iajaar or sparse matrix from coin. See: > http://www.mail-archive.com/[email protected]/msg02581.html > > I always think that writing ia[x] = etc; ja[x] = etc; ar[x] = etc; is > tedious. GLPK should have an add triplet function. Until then use iajaar. > > > ----- Original Message ----- > > From: Xypron <[email protected]> > > To: Nigel Galloway <[email protected]> > > Cc: "Eagle, Ken" <[email protected]>, [email protected] > > Subject: Re: [Help-glpk] glpk and R (using SWIG) > > Date: Wed, 16 Jun 2010 00:36:54 +0200 > > > > > > Hello Nigel, > > > > the SWIG documentation on > > http://www.swig.org/Doc1.3/R.html > > says: > > > > Currently the following features are not implemented or broken: > > * Garbage collection of created objects > > * C Array wrappings > > > > Some sort of array wrapping is needed for using GLPK. > > > > Best regards > > > > Xypron > > > > Nigel Galloway wrote: > > > The benefits (and drawbacks of SWIG) have been widely discussed. > > > Using the swig interface files discussed it is possible to > > > produce wrappers for all glpk api in R, and add a few usful > > > features. > > > > > > > > > -- > _______________________________________________ > Surf the Web in a faster, safer and easier way: > Download Opera 9 at http://www.opera.com -- GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl. Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl _______________________________________________ Help-glpk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-glpk
