none
Parallel Threads using CPLEX Studio Trial for 90 days RRS feed

  • Question

  • I am using the community edition of CPLEX Studio for 90 days. I am calling CPLEX from Python using the PULP tool.

    In my python code, I used a parallel for loop to accelerate the execution. When I increase the number of workers in the for loop I get the error message : CplexSolverErrorCPLEX Error  1234: Failed to create parallel thread.

     

    My question is the following: Is there a limitations on the number of parallel threads that CPLEX can run ? If yes, how many I can use to prevent the error ? If no, where this error come from ?

     

    I am thankful to you.

     

    Best Regards.

    • Moved by CoolDadTx Thursday, December 19, 2019 2:46 PM Third party product
    Wednesday, December 18, 2019 2:42 PM

All replies

  • Hi mariamay90,

    Thank you for posting.

    Since this thread is related to CPLEX Studio, it is a third-party product.

    We only provide support for Microsoft related products.

    So I suggest that you can ask this question their forum or stackoverflow.

    The Visual C# forum discusses and asks questions about the C# programming language, IDE, libraries, samples, and tools.

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Best Regards,

    Timon


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Thursday, December 19, 2019 1:30 AM
  • Is the "parallel for loop" a concept that CPLEX handles directly?  Python doesn't do actual multithreading.  Python has a "global interpreter lock" that means only one thread at a time can be running in the interpreter at any one time.  If the CPLEX library creates and manages the threads, that's fine.

    Tim Roberts | Driver MVP Emeritus | Providenza & Boekelheide, Inc.

    Thursday, December 19, 2019 7:09 AM