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

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.


answered 03 Nov '17, 09:49

Paul%20Rubin's gravatar image

Paul Rubin ♦♦
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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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



Asked: 02 Nov '17, 20:40

Seen: 557 times

Last updated: 04 Nov '17, 17:22

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