Replies: 14 comments 54 replies
-
We only have the raw (computer-readable) and pretty (human-readable) formats at present, but it's not too much trouble to write out in a different format. I can guess what some of the above refers to, but where is this MathProg format defined? |
Beta Was this translation helpful? Give feedback.
-
I have not found a reference documentation, but the GLPK / GNU Mathprog source code has a file that does the output. I'm attaching it here. This would give a pathway to start using HiGHS with GLPK / Mathprog model files that typically use GLPSOL as the solver. I believe there are quite a lot of those models lying around.
|
Beta Was this translation helpful? Give feedback.
-
Thanks. This helps me work out the format of the solution file, but it sounds as if this system involves an input file format (see [http://manpages.ubuntu.com/manpages/trusty/man1/glpsol.1.html]) that we can't read |
Beta Was this translation helpful? Give feedback.
-
Thanks. I thought you were aiming to eliminate the need to call glpsol, and just have HiGHS read the Mathprog model. The only other thing we'd have to do is communicate to HiGHS what format of solution file is required as, by default, the '.sol' extension yields a native solution file format being used by other people. |
Beta Was this translation helpful? Give feedback.
-
HiGHS will now write out the solution in glpsol format if the following options are set - either within code that calls HiGHS, or on the command line if they are included in an options file
It works if HiGHS reads an MPS file, but not (properly) if it reads a The only thing that I can't match is where/if the objective is written out as one of the model rows. It appears that glpsol does this when working from a I've tested on @jkiviluo 's for_HiGHS_testing.zip, but would welcome other experiments being done The new code is currently the subject of #863 Views? bugs? Thanks |
Beta Was this translation helpful? Give feedback.
-
HiGHS (mathprog-sol branch) is now writing out in the raw format, but there is still an issue relating to empty cost rows, and it's a product of glpsol, not HiGHS Running
Hence
Since HiGHS is reading
When glpsol is run from a '.mod' file, if it always reports an empty cost row in a When HiGHS is run from an MPS file, it can also report an empty cost row in a Of course this makes HiGHS inconsistent with glpsol run from an I should observe, in passing that HiGHS solves |
Beta Was this translation helpful? Give feedback.
-
I've been looking at
So this way we could pass the data step by step without As it is right now if the data we have doesn't match the format expected by Example: With a function like the one I proposed above, we'll tell |
Beta Was this translation helpful? Give feedback.
-
There is a way to build a model step-by-step, and it's what you'd have to do in order to avoid having a full copy of the model both locally and in HiGHS. You call What you propose would be better called |
Beta Was this translation helpful? Give feedback.
-
My work on creating glpsol By setting the HiGHS option |
Beta Was this translation helpful? Give feedback.
-
I'm still getting the same error when trying to solve the
|
Beta Was this translation helpful? Give feedback.
-
I wasn't using hashi.mod for testing, sorry, because I thought qfit.mod was equivalent (and Glpsol takes ages to solve hashi) I get the behaviour you observe, and it's due to a Glpsol quirk that I'd not anticipated. Compare the following
Both put an "N" row into the MPS file
Glpsol has a cost row in the HiGHS doesn't have the information from the MPS file on whether to include a cost row, or not. Unless HiGHS interprets a cost row name of "minimize R0000000: 0" in the The latter seems unlikely, so I'll try interpreting |
Beta Was this translation helpful? Give feedback.
-
I've seen HiGHS totally freeze after getting a solve. Seems to happen only sometimes but more frequently with larger models. I was using a version I compiled Sunday morning - I will do further tests with the latest version. Here is it what it looks like: |
Beta Was this translation helpful? Give feedback.
-
In other programs that behave like it's on an endless loop I usually execute it with |
Beta Was this translation helpful? Give feedback.
-
I've created the branch Solving the original LP from the solution after postsolve |
Beta Was this translation helpful? Give feedback.
-
This should probably be a discussion topic rather than an issue, but I'd like to know if there are other solution file formats available or planned?
For my part, I'd like to read the solution to MathProg in order to use the code that writes out results, but the solution file format in MathProg is different:
s bas 17169 14089 f f 1.06684e+11
i 1 b 1.06684e+11 0
i 2 s 947.477 1579.87
i 3 s 864.792 1579.87
i 4 s 814.937 1579.87
...
Beta Was this translation helpful? Give feedback.
All reactions