Originally posted by: PhilippeLaborie
Hello,
For question 1: It is not possible in .NET but you could do a write a small C++ code that does this translation, see https://www.ibm.com/developerworks/community/forums/html/topic?id=d2416a5b-5729-47a5-a2e7-65fb65d19a77&ps=25.
This being said, and this will answer your second question, if you are solving a scheduling problem (where important decision variables of the problem are the start/end time of some activities) , you should try to leverage the concepts of CP Optimizer dedicated to scheduling problems, in particular the notion of interval variable and the related expressions/constraints. Solving with CP Optimizer the very same CPLEX model, especially for a scheduling problem, does not really make sense. If you are familiar with CPLEX, reformulating the problem in CP Optimizer should not be a very big conceptual change but you will have to learn the additional types of decision variables and constraints available in CP Optimizer. There are a number of classical scheduling problems (like jobshop, RCPSP) modeled with CP Optimizer available in the distribution (CPLEX_Studio/cpoptimizer/examples/src/csharp). For a very introductory description you could look at: https://www.slideshare.net/PhilippeLaborie/an-introduction-to-cp-optimizer.
You can also shortly describe your problem in this forum if needed.
Philippe
#CPOptimizer#DecisionOptimization