Hi,
In mixed integer programming problem, the shadow price doesn’t work in AMPL version 20180123 using solver CPLEX 12.7.1. I tried to display constraints to get shadow price, but it returns all zero. In the same problem, I can get some constraints nonzero shadow price in AMPL Version 20140124 using solver 12.6.0. Any advice? Thanks.
Best Regards,
Chia-Chun
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.
ampl: model multmip3.mod; ampl: data multmip3.dat; ampl: option solver cplex1271; ampl: solve; CPLEX 12.7.1.0: optimal integer solution; objective 235625 107 MIP simplex iterations 0 branch-and-bound nodes ampl: display {i in 1.._ncons: _con[i].dual != 0} ampl? (_conname[i],_con[i].dual); : _conname[i] _con[i].dual := 1 "Supply['GARY','bands']" 7 2 "Supply['GARY','coils']" 12 3 "Supply['GARY','plate']" 13
You are comparing two different version of CPLEX. The CPLEX only guarantees reproducible results when run with the same version and the same options on the same computing platform. You can set the mipdisplay option and look at the log to see the search paths of two CPLEX. It's likely that they take different search paths and assign different values to the variables.
Thanks,
Paras
--
Paras Tiwari
am...@googlegroups.com
On Mon, May 14, 2018 at 6:36 PM UTC, Ampl Modeling Language <am...@googlegroups.com> wrote:
Hi Bob,
Thanks for your advice.
Our CPLEX option file doesn’t set mipbasis to 1. And we do observe “No basis” at the end of CPLEX run and no shadow price is returned.
Here is our investigation in AMPL 20180123 along with CPLEX 12.7.1.0.
As you mentioned, mipbasis default setting is 1 but CPLEX behavior might be changed under certain circumstances. We will include CPLEX options setting mipbasis equals 1 in our problem to get shadow price.
Best Regards,
Chia-Chun
On Mon, May 14, 2018 at 10:07 PM UTC, AMPL Google Group <am...@googlegroups.com> wrote:
You are comparing two different version of CPLEX. The CPLEX only guarantees reproducible results when run with the same version and the same options on the same computing platform. You can set the mipdisplay option and look at the log to see the search paths of two CPLEX. It's likely that they take different search paths and assign different values to the variables.
Thanks,
Paras
--
Dr. Paras Tiwari