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.
1 reply Latest Post - ‏2013-01-07T13:39:44Z by SystemAdmin
SystemAdmin
SystemAdmin
1883 Posts
ACCEPTED ANSWER

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
    ACCEPTED ANSWER

    Re: Set the maximum search time

    ‏2013-01-07T13:39:44Z  in response to SystemAdmin
    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?