Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  CPLEX error: Excel range unkown

    Posted 12/01/15 03:24 AM

    Originally posted by: bilbeisi9


    Hello,

     

    I'm working on a production scheduling project for a company called "Dairy Foods". I seem to have only a couple of errors left, all concerning the link to the Microsoft Excel sheet. I keep getting the same error over and over again: Exception from IBM ILOG Concert: Excel range is unknown.  Im going to attach the excel worksheet and the CPLEXcode on a word document.  I also know that there are some spelling mistakes but I matched/was consistent in those mistakes, so I doubt they are the cause of the errors.I am in desperate need of help for my project is due in two days. Someone help, thanks!


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: CPLEX error: Excel range unkown

    Posted 12/02/15 06:47 AM

    Hi,

    there seems to be a space in the name "Budget" and if you type it again in excel your error will go away.

    I attached the correct excel file.

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: CPLEX error: Excel range unkown

    Posted 12/02/15 02:54 PM

    Originally posted by: bilbeisi9


    Thanks for the reply, but I really doubt that is the problem. Did you try running it on your cplex?


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: CPLEX error: Excel range unkown

    Posted 12/02/15 03:19 PM

    Hi,

    yes I tried and at least this is a fix for

    Exception from IBM ILOG Concert: Excel range is unknown.

    There are many other issues that you should fix.

    Regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: CPLEX error: Excel range unkown

    Posted 12/02/15 03:23 PM

    Originally posted by: bilbeisi9


    Thank you, I fixed the excel sheet problems but now we have other existing errors, im very sure its a very stupid mistake somewhere in the code. If you have some time can you possibly explain the other existing errors? IS it a problem with the linearization or other?


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 6.  Re: CPLEX error: Excel range unkown

    Posted 12/03/15 02:47 AM

    Hi,

    there are many issues.

    For example, in the .mod you have

    int d[F][N][O]=...;

    and then in the .dat

    dData from SheetRead(sheet,"Demand!A5:D274");

    1) in the .dat you should have d

    2) d is a 3d array so you cannot read it so easily. You need to go through a 2D array (See https://www.ibm.com/developerworks/community/forums/html/topic?id=bcaea400-c839-4f12-85bc-4750c48d68f3&ps=25 )

    You should try to fix all your errors one by one

    Regards

     


    #DecisionOptimization
    #OPLusingCPLEXOptimizer