Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
2 replies Latest Post - ‏2012-11-09T23:15:28Z by SystemAdmin
SystemAdmin
SystemAdmin
378 Posts
ACCEPTED ANSWER

Pinned topic Why does my Program run infinitely?

‏2012-11-09T12:40:09Z |
Hello!

I am very new at ILOG CPLEX and OPL, I am doing a project that needs to get the optimized solution plus number of solutions.

It generates the number of solutions but runs forever and therefore will not generate the optimal solution. what could be causing this (running infinitely)?

Thank you.
Updated on 2012-11-09T23:15:28Z at 2012-11-09T23:15:28Z by SystemAdmin
  • GGR
    GGR
    34 Posts
    ACCEPTED ANSWER

    Re: Why does my Program run infinitely?

    ‏2012-11-09T16:51:11Z  in response to SystemAdmin
    Hi

    Proving optimality can take a very long time using CP for the whole search tree must be traversed. have you try to put a limit in your model. You can do it by adding a parameter files to your run configuration and set a limit in the CP solver tab.

    Hope that helps
    • SystemAdmin
      SystemAdmin
      378 Posts
      ACCEPTED ANSWER

      Re: Why does my Program run infinitely?

      ‏2012-11-09T23:15:28Z  in response to GGR
      I put a cp time limit, the problem is with the time limit, it does not generate the optimal solution.