I am generating .mod models which I need to solve in batch mode. If I use oplrun then I cannot get intermediate (i.e., feasible but not optimal) results. So I thought of using oplrun -e model.mod which exports it to a .lp file, and then I can use cplex, which does support printing intermediate results. The problem I have is that when running oplrun -e model.mod it does not exports and quits, rather it exports and continues to solve the model. Is there any way to only translate .mod to .lp (or some other format that cplex supports) ?

asked 20 Aug '17, 00:32

ofer's gravatar image

ofer
112
accept rate: 0%


You could add a main function after your model in the .mod file who's only task is to export the model to the .lp format. Take a look at this link https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014530815

link

answered 21 Aug '17, 02:58

Sune's gravatar image

Sune
958413
accept rate: 20%

edited 21 Aug '17, 03:00

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×191
×1

Asked: 20 Aug '17, 00:32

Seen: 393 times

Last updated: 23 Aug '17, 04:07

OR-Exchange! Your site for questions, answers, and announcements about operations research.