Topic
  • 1 reply
  • Latest Post - ‏2013-01-07T13:39:44Z by SystemAdmin
SystemAdmin
SystemAdmin
1883 Posts

Pinned topic Set the maximum search time

‏2013-01-07T13:20:42Z |
Hi All,

I am using Java interface. Is there any function that I can use to ask CPLEX to search a problem space for at most 10 seconds? After that 10 seconds, it can give me a feasible solution or tell me that it can not find it.

Thanks
Updated on 2013-01-07T13:39:44Z at 2013-01-07T13:39:44Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    1883 Posts

    Re: Set the maximum search time

    ‏2013-01-07T13:39:44Z  
    I have found the parameters to set it.

    cplex.setParam(IloCplex.DoubleParam.TiLim, x);

    x is the maximal time in second.

    Can anyone recommend a good introduction book about using Java interface of CPLEX?