Decision Optimization

Decision Optimization

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

 View Only
  • 1.  .dat file

    Posted Sat May 12, 2012 05:27 PM

    Originally posted by: FANS_Nader_Al_Theeb


    Hi,
    Using CPLEX in C++:

    I'm importing my data from (.dat file), I have a parameter with three indices (i,j, and k), where i=1, j=4, k=3

    I use the following matrix to define the values

    [ [ 2, 3, 4,
    1, 2, 3,
    3, 4, 8,
    7, 4, 3] ]

    I used this types of definitions for a long time with no errors, but now some thing goes wrong, when I try to print [0][1][0] or any value with j>0, I received segmentation fault error

    Any help please where is the error?
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: .dat file

    Posted Sat May 12, 2012 05:29 PM

    Originally posted by: FANS_Nader_Al_Theeb


    Sorry the matrix is not clear, here is it

    [ [ [ 2, 3, 4],
        [1, 2, 3],
        [3, 4, 8],
        [7, 4, 3] ] ]
    

    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: .dat file

    Posted Sun May 13, 2012 09:52 AM

    Originally posted by: SystemAdmin


    Could you also show us the code that actually reads the data? Without that it is hard to tell what might be going wrong.
    #CPLEXOptimizers
    #DecisionOptimization