Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.

 View Only
Expand all | Collapse all

Error when solving LP and MIP in parallel

  • 1.  Error when solving LP and MIP in parallel

    Posted Tue October 24, 2017 09:29 AM

    Originally posted by: suji248


     

    Hello 

    Am getting this below error when solving CPLEX both LP and MIP in parallel.  Once I get this error even after making new CPLEX environment am getting same error again. 

     

    System.AccessViolationException was unhandled
      HResult=-2147467261
      Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
      Source=ILOG.CPLEX
      StackTrace:
           at ILOG.CPLEX.CplexStubs.CPXmipopt(IntPtr env_, IntPtr lp_)
           at ILOG.CPLEX.CplexI.Solve()
           at ILOG.CPLEX.Cplex.Solve()
           ....................................................
           at System.Threading.Tasks.Task.Execute()
           at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
           at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
           at System.Threading.ThreadPoolWorkQueue.Dispatch()
      InnerException: 

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Error when solving LP and MIP in parallel

    Posted Tue October 24, 2017 10:05 AM

    What objects do you share between threads? Do you have a separate Cplex instance for each thread?


    #CPLEXOptimizers
    #DecisionOptimization