Decision Optimization

Decision Optimization

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

 View Only
  • 1.  NetOpt, NetFind, Network

    Posted Sun February 09, 2025 08:26 AM

    Recently, I migrated to a new version of CPLEX, which I use alongside AMPL. However, my older code is not running correctly. After investigating, I suspect the issue may be related to the netopt 2 and netfind 2 options. My code attempts to solve an electric dispatch problem with a grid, but it seems these options are no longer available in the new version of CPLEX.

    Do you know if there is a different command to activate these options?

    Thank you and best regards.



    ------------------------------
    Sergio Godinez
    ------------------------------


  • 2.  RE: NetOpt, NetFind, Network

    Posted Mon February 10, 2025 02:05 AM

    Hi

    In OPL I write

    execute
    {
      cplex.lpmethod=3;
    }
    

    But most of the time that does not help much as far as performances are concerned  so I would remove your settings and check if it works.

    regards



    ------------------------------
    [Alex] [Fleischer]
    [Data and AI Technical Sales]
    [IBM]
    ------------------------------



  • 3.  RE: NetOpt, NetFind, Network
    Best Answer

    Posted Mon February 10, 2025 12:19 PM

    The "CPLEX for AMPL" binaries were recently switched from the "ASL" library to the new, more powerful "MP" library, which provides significantly extended modeling support for logical and nonlinear operators -- both through support of built-in solver features and through linearizations. However, it appears that MP is lacking support for "netopt 2" and for "netfind" entirely. This omission has been reported and will be fixed in the next release.

    In the mean time, you can switch back to an ASL version that is included with the latest CPLEX release. To use the ASL version, change the solver option to cplexasl (for example by executing the command "option solver cplexasl;").

    For more help using CPLEX with AMPL, post a question in the AMPL support forum.



    ------------------------------
    Bob Fourer
    ------------------------------



  • 4.  RE: NetOpt, NetFind, Network

    Posted Tue February 11, 2025 10:46 PM
    Thank you very much for the response and help. The recommendation worked perfectly, and I truly appreciate the attention given to this inquiry.

    Best regards.

    Sergio Godínez