[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] LPX_E_FAULT
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] LPX_E_FAULT |
Date: |
Thu, 10 Jun 2010 17:22:40 +0400 |
> I have constructed an LPX object and loaded my model/data in it successfully.
> However, a call to lpx_simplex returns LPX_E_FAULT.
> Now, this is particularly strange because I get the correct
> objective value if I call lpx_write_cpxlp in this main program
> and lpx_read_cpxlp and lpx_simplex from a different test program.
> Can somebody elaborate on this error. The manual says that the
> initial basis may be invalid
Probably yes. Could you provide the terminal output from glp_simplex?
> does this mean that I have to manually
> add slack and artificial variables in my main program but this is not
> required when the model is read from a file?
No. You can call glp_std_basis or glp_adv_basis to construct a valid initial
basis.
FYI: You are using obsolete API routines and perhaps an old version of glpk.
The most recent version is 4.44.