help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Getting null object when using read_model()


From: glpk xypron
Subject: Re: [Help-glpk] Getting null object when using read_model()
Date: Fri, 16 Apr 2010 21:13:18 +0200

Hello Jordan,

in glpk-java 1.0.13 there is no method
read_model(.modFile, data, output)

Method GLPK._lpx_read_model() is deprecated.

Please, have a look at examples/java/Gmpl.java
which uses method GLPK.glp_mpl_read_model()

Best regards

Xypron

-------- Original-Nachricht --------

> Hello all,
> 
> I am an intermediate Java programmer and am using glpk-java too import a
> model written in MathProg and run it inside of a Java GUI application. The
> model runs just fine if tested in GUSEK, but when I try to create an object
> of the model in java using the read_model(.modFile, data, output) method, I
> get a nullpointer exception because the object being created is null.
> 
> The model imports multiple .csv files to use as data sources, but no .dat
> files, thus the second parameter in the read_model method is null. Is there
> an issue with glpk-java creating an object from a model that imports .csv
> files? How can I work around this? Thanks so much for all of your help.
> 
> Jordan Stone

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01




reply via email to

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