Dear Jean. My name is Juan, I'm student in Brazil. I would like to know if there is any difference in the CPLEX performance for a large scale model using OPL AMPL or C++.

asked 02 Nov '17, 20:40

Juan_Home_UNESP's gravatar image

Juan_Home_UNESP
111
accept rate: 0%


The bulk of the time will typically be in the solution phase. Regardless of how you create the model, solution is done in the CPLEX solver (written, AFAIK, in C), and so solution time should be largely unaffected. Using a modeling language (OPL, GAMS, AMPL, MPL, ...) may take a little longer generating the problem instance than tightly written C++ code would. On the other hand, they may be faster than poorly written C++ code. Either way, the time difference will likely be a small portion of the overall solution time, and modeling languages tend to make the models more readable (and make it easier to find mistakes in the models).

One consideration for advanced users is that the CPLEX programming APIs (C++, Java, etc.) provide features such as callbacks that can be used to modify how CPLEX solves problems. At least some of those features are not available (as far as I know) through modeling languages. You can, however, set CPLEX parameters while using modeling languages.

link

answered 03 Nov '17, 09:49

Paul%20Rubin's gravatar image

Paul Rubin ♦♦
14.6k412
accept rate: 19%

Dear Paul. thank you.

(04 Nov '17, 17:22) Juan_Home_UNESP
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

Asked: 02 Nov '17, 20:40

Seen: 316 times

Last updated: 04 Nov '17, 17:22

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