Hello
I am new with glpk and I try to write a program in C++ using glpk.
But I get the following problem
I write in the code: (LPX* prob with direction min)
s = lpx_simplex(prob);
if (s != LPX_E_OK)
{
std::string name = "********";
lpx_write_mps(prob, (char*)name.c_str());
exit(s);
}
and I get an error with 204(Unable to start the search), but the mps file can
be resolved by glpsol.exe in console.
I have looked for the reason in the help-glpk archive, but I find nothing.
So I look forward of any help from you.
You can find the mps file with this email.
Thanks a lot.
* Problem: UNKNOWN
* Class: LP
* Rows: 7
* Columns: 16
* Non-zeros: 25
* Format: Fixed MPS
*
NAME
ROWS
N R0000000
E R0000001
E R0000002
E R0000003
E R0000004
E R0000005
E R0000006
G R0000007
COLUMNS
C0000001 R0000000 3 R0000004 1
C0000001 R0000001 1
C0000002 R0000000 6 R0000005 1
C0000002 R0000001 1
C0000003 R0000000 9 R0000006 1
C0000003 R0000001 1
C0000004 R0000000 4 R0000004 1
C0000004 R0000002 1
C0000005 R0000000 7 R0000005 1
C0000005 R0000002 1
C0000006 R0000000 7 R0000006 1
C0000006 R0000002 1
C0000007 R0000000 4.5 R0000004 1
C0000007 R0000003 1
C0000008 R0000000 7.5 R0000005 1
C0000008 R0000003 1
C0000009 R0000000 6 R0000006 1
C0000009 R0000003 1
C0000010 R0000001 1
C0000011 R0000002 1
C0000012 R0000003 1
C0000013 R0000004 1
C0000014 R0000005 1
C0000015 R0000006 1
C0000016 R0000000 1 R0000007 1
RHS
RHS1 R0000001 100 R0000002 150
RHS1 R0000003 200 R0000004 120
RHS1 R0000005 180 R0000006 150
RHS1 R0000007 -30000
BOUNDS
FR BND1 C0000016
ENDATA
_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk