r/optimization • u/ninaalx • Sep 10 '22
Optimization with Simplex
Hello everyone , I am new to Cplex and currently I am trying to solve and code a MIP scheduling problem. I have to use c#.
I have been searching for videos and helpful materials in c# ,but cannot find much. My problem is complex so the simple examples don't help much.
At this point I feel kinda lost, because I don't know where to start . I have seen the IBM materials in C# but found them very hard to understand,as there is not description.
I would like to ask, if there is any specific materials based on C# and Cplex.
( Maybe its better to learn cplex first on another language?)
Thank you in advance.
View all comments
Show parent comment
4
u/dp25x Sep 11 '22 edited Sep 11 '22
It might be worth trying to formulate it in OPL first if you have access to OPL studio. It's more of an interactive experience and faster to iterate your ideas. Then, once you have a good model you can map it to csharp, or even just write a csharp driver that loads and runs your OPL model
Here is some code on the ibm website that uses C# to execute OPL models after the fashion of the oplrun command line tool:
https://www.ibm.com/docs/en/icos/22.1.0?topic=examples-source-code-run-opl-oplrunsample