Making Decision Optimization Simple

Making Decision Optimization Simple

Optimization (Prescriptive analytics, Operations Research, Decision Optimization) is doing more with less. Which is why most of the time, this makes sense. In a few posts I tried to show the way:

Then I gave some tricks and examples but nothing happened, well not much. Then came 2018 and I tried a very simple story.

No alt text provided for this image

This got some impact and got translated into 23 languages (English included) because this was very simple. In Freakonomics, Nobel Prize 2017 Richard Thaler said : "If you want to get people to do something, make it easy. Remove the barriers."

OPL makes decision optimization very simple and let me share very simple examples with those buses and that zoo.

No alt text provided for this image

No alt text provided for this image

No alt text provided for this image

No alt text provided for this image

No alt text provided for this image

No alt text provided for this image

No alt text provided for this image


No alt text provided for this image


What's next ? Once you wrote your model in OPL you may run it from the CPLEX Integrated Developemnt Environment (IDE) and the model will either run on your machine, on a CPLEX server or in the CPLEX cloud.

No alt text provided for this image

You can also run in command line (oplrun)

No alt text provided for this image

And also use oplrun like command line to call OPL CPLEX model in the WML Cloud

From OPL you may call external programs like Python code.

You may also call your OPL model from C++, Java and .NET through rich APIs that let you see OPL objects as native C++, Java and .NET Objects.

You may call your model in the cloud through all APIs : Java, Node.js, Python, R, Rest

You may do external calls from R, Matlab and so on as explained in the tricks. Or use doopl or ticdat to call OPL from Python. Or directly call OPL from R.

You may also call OPL from Planning Analytics or SPSS Modeler or within Decision Optimization Centre

Let's not forget Cloud Pak for Data and Watson Studio. See example.



And OPL is easy but you have many other APIs if you do not want to use OPL!

Hi Alex, I am struggling with the famous ERROR: syntax error, unexpected =, expecting ';'

回复
Cesar Guzman

Supply Chain Network Design | Supply Chain Strategic Planning | Mathematical Modeling | Data Science

4 年

Excellent compendium of relevant topics for OPL. Very useful indeed.

回复
Vitor Aquino, M.Sc

Power and Control Engineering Team lead at Rockwell Automation

5 年

Alex, is there a way into cplex to import data from an excel spreadsheet with variable range? Each time I need run Excel has different size. Could you please help me? [email protected]

回复

要查看或添加评论,请登录

社区洞察

其他会员也浏览了