Is there a way to create and return lp files in memory?
Dear all,
I am searching for a way to creat lp-files in memory and decide later which files (or which parts of a file) to store somewhere.
Something like model.toString() giving me the same result as the lp-file would be great. Any hints on how I could achieve this?
Thanks
Christopher
-
正式なコメント
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Hi Christopher,
Have you tried saving each model itself and later call model.write() on the relevant models, or is the (memory) overhead too big for this approach?
Can you elaborate a bit more why would you like to save only parts of a model?
0 -
Dear Jakob,
For one optimization run, hundreds of models (model modifications) are being created. For debugging purposes I would like to trace some constraints. Of course I can do that manually, but debugging would be much faster if I simply keep the model as string in memory and only export subparts of the model as needed.
Besides, all my data is being stored in an sql database. Storing the models as strings in the same database would make it easier to analyse results and models later on.
Thanks
Christopher0
投稿コメントは受け付けていません。
コメント
3件のコメント