Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  cplex and c++

    Posted 02/28/14 01:35 AM

    Originally posted by: omsb


    Now, I coded my MIP problem in C++ with using concert technology with CPLEX.
    I have a serious problem and I could not find the reason of my error.
    The error is "stack over flow". When I solved my problem with some constraints, I have the results, but when I added another constraints, I saw this error. Another weird point about this error is when I comment one constraint and add another one, the code worked properly. It is really strange.

    can anybody help me?


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: cplex and c++

    Posted 02/28/14 07:55 AM

    I don't think that CPLEX is likely to be the culprit for a stack overflow. A stack overflow usually only happens if you use recursive functions or allocate very big data on the stack. Do you do any of this?

    Could you provide a backtrace for that stack overflow exception/error? What is the function that triggers it?


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: cplex and c++

    Posted 02/28/14 02:44 PM

    Originally posted by: omsb


    the problem was in c++, and the error was "stack overflow". I checked several times my code, and it was ok. I found the problem was the stack size in visual studio.

     I increased it and now it works properly.

    I changed the stack reverse size in the "linker" setting of visual studio, and change it by entering the stack size in byte.


    #CPLEXOptimizers
    #DecisionOptimization