Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Import excel data in Cplex

    Posted 10/07/14 10:07 AM

    Originally posted by: giannil


    Hello,

    How can you import data from an excel-sheet to cplex? What is the easiest way?

    Thanks

     


    #ConstraintProgramming-General
    #DecisionOptimization


  • 2.  Re: Import excel data in Cplex

    Posted 10/07/14 12:06 PM

    Originally posted by: GGR


    Hi Gianni

    You can load the data for an OPL Studio model from an Excell spreadhit.

     

    If You think specifically to the CPlex solver, please send tour request to the  Mathematical Programming\Cplex Optimizer forum

     

    Hope that helps

     

     


    #ConstraintProgramming-General
    #DecisionOptimization


  • 3.  Re: Import excel data in Cplex

    Posted 10/08/14 08:57 AM

    Originally posted by: giannil


    Is it possible to give a link where they give an example. An example where they show how to load things from excel into cplex?

    Thanks for your answer already!


    #ConstraintProgramming-General
    #DecisionOptimization


  • 4.  Re: Import excel data in Cplex

    Posted 10/08/14 10:16 AM

    Originally posted by: GGR


    Hi Gianni

    For OPL studio, there is some samples in this entry

     

    Hope that helps

     

     


    #ConstraintProgramming-General
    #DecisionOptimization


  • 5.  Re: Import excel data in Cplex

    Posted 11/04/14 10:04 AM

    Originally posted by: giannil


    Hello,

    We tried to connect to an excel file but Cplex doesn't find the excel file. 

    This is our datafile : 

    SheetConnection sheet("Bewerkte Data.xlsx");

    AantalFG = 84;
    AantalPodia = 2;
    AantalTijdsblokken = 3;
    AantalArtiesten = 6;

    Voorkeuren from SheetRead(sheet,"Tomorrowland!B2:G85");

    Why doesn't cplex find the file?

    In attachments you will find the excelfile

    Thanks‹


    #ConstraintProgramming-General
    #DecisionOptimization


  • 6.  Re: Import excel data in Cplex

    Posted 11/06/14 03:40 AM

    Originally posted by: ArnaudS


    Hello,

    I made a try and it works for me.
    Can you send us your OPL project such that we will try to see what happen. 
    Maybe you can also try using the project attached (it uses your excel file and reads some cells from it).

    Hope this helps,

    Arnaud


    #ConstraintProgramming-General
    #DecisionOptimization


  • 7.  Re: Import excel data in Cplex

    Posted 11/06/14 06:02 AM

    Originally posted by: giannil


    Hello,

    in attachment you can find our project file

    Thanks


    #ConstraintProgramming-General
    #DecisionOptimization


  • 8.  Re: Import excel data in Cplex

    Posted 11/08/14 05:03 AM

    Originally posted by: giannil


    We managed to do it. Thank you for your help!


    #ConstraintProgramming-General
    #DecisionOptimization