Importing LP from MPS file
Gipals32 can import linear program specified as a text file in MPS format:
int LoadFromMPS(char[] AFile)
Function clears existing LP and loads a new one from the specified text file. Text file must be in MPS format. The function returns the following result:
1 if succeeded.
0 if the file is in wrong format
-1 if the maximum allowed number of variables or constraint reached.
After the LP was successfully imported from the MPS file it can be changed by any routines specified above or calculated right away.
|