Decision Optimization

Decision Optimization

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

 View Only
  • 1.  'IloCplex::Param::SolutionTarget' was declared deprecated

    Posted Wed July 15, 2015 01:54 PM

    Originally posted by: Roni.Mohammad


    Hi,

    I just switched from CPLEX 1261 to CPLEX 1262.  I am solving a MILP using C++ concert technology.  I am getting this error  " Error C4996 : IloCplex::Param::SolutionTarget' was declared deprecated" . When I was solving the same problem using CPLEX 1261, I did not have error message. Any idea what could be the reason?

    Thanks

    Roni

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: 'IloCplex::Param::SolutionTarget' was declared deprecated

    Posted Wed July 15, 2015 04:28 PM

    This is expected.  You can find a note about this in the release notes here.  If you google "Error C4996", you'll find ways of disabling it, if you choose to do so.  However, you're encouraged to use the new optimality target parameter instead.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: 'IloCplex::Param::SolutionTarget' was declared deprecated

    Posted Tue September 15, 2015 03:13 PM

    Originally posted by: RafaelMartinelli


    Hello,

    I am getting the same issue on all my projects, however none of them uses the parameter SolutionTarget.

    Is there any way to turn the warning off besides disabling warning C4996?

    Thank you.

    Rafael


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: 'IloCplex::Param::SolutionTarget' was declared deprecated

    Posted Thu September 17, 2015 12:10 PM

    Hi Rafael,

     

    I'll try to reproduce the behavior you describe.  In the meantime, which version of Visual Studio are you using?  Do you get the warning even when running one of the examples shipped with CPLEX?

     

    Ryan

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: 'IloCplex::Param::SolutionTarget' was declared deprecated

    Posted Thu September 17, 2015 05:55 PM

    Rafael,

    You are correct.  :-(  I was able to reproduce this behavior.  Besides disabling the warning (e.g., adding "#pragma warning(disable : 4996)" to your program), you can do the following:

    Edit the <COS_INSTALL>/cplex/include/ilcplex/iloparam.h file and comment out the following line, like so:

    //CPXDEPRECATED(12060200)

     

    That's annoying, sorry about that.  We'll certainly address this as soon as we can.

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: 'IloCplex::Param::SolutionTarget' was declared deprecated

    Posted Thu September 17, 2015 09:38 PM

    Originally posted by: RafaelMartinelli


    Hello Ryan,

    That's what I had done. So far, it looks ok. Thank you.

    Rafael


    #CPLEXOptimizers
    #DecisionOptimization


  • 7.  Re: 'IloCplex::Param::SolutionTarget' was declared deprecated

    Posted Wed October 21, 2015 07:41 AM

    Originally posted by: Eddie Breeveld


    Hi Ryan,

    I'm getting this problem too!  I can edit the header file to remove the error, but when can we expect it to be fixed?

    All the best,
    Eddie
     


    #CPLEXOptimizers
    #DecisionOptimization


  • 8.  Re: 'IloCplex::Param::SolutionTarget' was declared deprecated

    Posted Wed October 21, 2015 11:55 AM

    This should be fixed in the next version.


    #CPLEXOptimizers
    #DecisionOptimization