3
$\begingroup$

I am currently attempting to code a model using the Python API.

However, the IBM Site seems to not have one that is similar in formating and content depth such as those for C++ or Java (examples and quick starter chapters).

I am hazarding a guess that it might have been taken down for various reasons.

Thus, may I ask if anyone possesses and is able to share a copy of it which is in PDF format?

Thank you!

$\endgroup$

1 Answer 1

5
$\begingroup$

Do you want the matrix oriented python API or docplex API ?

For docplex, some very simple examples at https://www.linkedin.com/pulse/making-optimization-simple-python-alex-fleischer/

$\endgroup$
7
  • 2
    $\begingroup$ This information can also be found in README.md in the python subdirectory of the CPLEX installation folder. Official docplex examples can be found here. $\endgroup$ Jul 21, 2020 at 12:19
  • $\begingroup$ Dear Dr Fleischer and Dalmeijer, thank you for your replies, I last used CPLEX alongside its Java API around a decade ago. Thus, I guess I am outdated. Please correct me if I am wrong: tbe old manual seems to have broken up into both the matrix oriented and docplex format. The former being a detailed indexed repository of commands while the latter comprises examples to get one up to speed via using various data types alongside methods to extract them for creation of objectives and constraints. $\endgroup$
    – Mike
    Jul 21, 2020 at 13:06
  • 1
    $\begingroup$ Hi, you may still use java to call cplex. You may also use OPL, C++ and many other ways. In python I recommend the high level API docplex. Many links in medium.com/@AlainChabrier/… $\endgroup$ Jul 21, 2020 at 13:19
  • $\begingroup$ Dear Dr Fleischer, I have previously used OPL only for prototyping purposes as it was previously unable to handle large sized problems. I understand that things have improved dramatically since then. Thus, I wouid like to enquire if it is able to handle problem sizes that are similar to those of the API. i am.comsidering Python as it is not strongly typed like Java, which is verbose in nature, alongside other programming decorum which mist be strictly adhered. $\endgroup$
    – Mike
    Jul 21, 2020 at 13:44
  • $\begingroup$ Hi, indeed you have many options linkedin.com/pulse/… I tend to prefer OPL. And then you may call OPL from Java, C++, .NET or python $\endgroup$ Jul 21, 2020 at 13:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.