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
------------------------------
Original Message:
Sent: Sat February 08, 2025 11:53 PM
From: Sergio Godinez
Subject: NetOpt, NetFind, Network
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
------------------------------