Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  CPLEX 12.7.1 Visual Studio plug in

    Posted 06/15/17 12:50 PM

    Originally posted by: stef44


    Hi all,

     

    I've installed CPLEX 17.1 on my Windows operating system, as well as Visual Studio Community and Visual Studio Professional, both 2017. I was wondering if I could link the newest version of CPLEX (12.7.1) with VS 2017 even though I specify 2015? I've followed the steps on this following link: http://www.leandro-coelho.com/how-to-configure-ms-visual-studio-to-use-ibm-cplex-concert/. However I still cannot recognize ilcplex/ilocplex.h and I get the known fatal error. Do you know perhaps why?

    Let me know as soon as possible,

    Thank you!


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: CPLEX 12.7.1 Visual Studio plug in

    Posted 06/15/17 01:02 PM

    If it cannot find ilcplex/ilocplex.h then you probably made an error or typo when specifying the full paths to the include directories. Did you type these paths by hand or did you use the little folder icon to select them? It is better to do the latter since that avoids any typos. Can you show a screenshot of your include file path configuration (the equivalent of the 3rd picture in the instructions you mentioned)?

    What is the known fatal error you mention?


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: CPLEX 12.7.1 Visual Studio plug in

    Posted 06/15/17 02:06 PM

    Originally posted by: stef44


    I used to folder icon to select them of course. You can see the directories included on the following picture:

    I was just curious if I could use both the newest versions of CPLEX and Visual Studio.

    On this last picture you can see the error I am getting :


    #DecisionOptimization


  • 4.  Re: CPLEX 12.7.1 Visual Studio plug in

    Posted 06/15/17 02:23 PM

    Ah, you went one step too far down in the directories you specified. Remove the last element (i.e., 'ilcplex' from the first two, 'ilconcert' from the third, 'iclp' from the last). The last element in each path should be 'include'.


    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: CPLEX 12.7.1 Visual Studio plug in

    Posted 06/15/17 06:09 PM

    I was wondering if I could link the newest version of CPLEX (12.7.1) with VS 2017 even though I specify 2015?

    I'm not sure if I understand your question exactly, but you can use a VS 2015 project from within VS 2017. You'll need to have VS 2015 installed, though. See this MSDN blog post.

     

    EDIT: It looks like you can also install the VS 2015.3 toolset directly from the VS 2017 installer, so you could do that instead of installing VS 2015 separately. The link I provided above provides more info on that option too.

     


    #CPLEXOptimizers
    #DecisionOptimization