--
You received this message because you are subscribed to a topic in the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ampl/7i99ZhBk4h8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at http://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.
In the AMPL version, the linear solver used by BARON cannot currently be set to a different solver such as CPLEX. As you see, trying to set LPSol = 3 has no effect.
I am wondering if in the new version of BARON that is released recenlty (17.1.2) one can add cplex or it is still not possible.
Thank you,
Maziar
BARON 19.7.13 (2019.07.13): lsolver=conopt lpsolver=cplex outlev=1 =========================================================================== BARON version 19.7.13. Built: WIN-64 Sat Jul 13 12:11:46 EDT 2019 . . . . . . . =========================================================================== This BARON run may utilize the following subsolver(s) For LP/MIP/QP: ILOG CPLEX For NLP: AMPL external NLP, IPOPT, FILTERSD, FILTERSQP ===========================================================================

On Thu, Jul 23, 2020 at 5:40 PM UTC, AMPL Google Group <am...@googlegroups.com> wrote:
We have not been able to reproduce this error. There is a newer version of BARON (19.12.7) but we tried running with the version you currently have (19.7.13), and these options:
option baron_options 'lsolver=conopt lpsolver=cplex outlev=1';
The output from BARON showed CPLEX being used:BARON 19.7.13 (2019.07.13): lsolver=conopt lpsolver=cplex outlev=1 =========================================================================== BARON version 19.7.13. Built: WIN-64 Sat Jul 13 12:11:46 EDT 2019 . . . . . . . =========================================================================== This BARON run may utilize the following subsolver(s) For LP/MIP/QP: ILOG CPLEX For NLP: AMPL external NLP, IPOPT, FILTERSD, FILTERSQP ===========================================================================
The versions of the subsolvers were as follows:
AMPL/CPLEX 12.10.0.0 (MS VC++ 10.0, 64-bit), driver(20200412), ASL2(20200404)
AMPL/CONOPT 3.17A (MS cl 16.0, Intel Fortran 12.1 for x86_64), driver(20180314), ASL2(20180503)
Can you post a screenshot of your AMPL folder listing? Maybe that will suggest some reason for the "library not found" error.
--
Robert Fourer
am...@googlegroups.com
I used diet.mod and diet.dat. It worked just fine when using CPLEX directly and this is the output:
===================================================
CPLEX 12.10.0.0: display 2
No LP presolve or aggregator reductions.
Initializing dual steep norms . . .
Iteration Dual Objective In Variable Out Variable
1 88.200000 x5 c3 range
CPLEX 12.10.0.0: optimal solution; objective 88.2
1 dual simplex iterations (0 in phase I)
===================================================
I am quite confused and hope this problem can be fixed. Thank you for your help.
AMPL Google Group 在 2020年7月24日 星期五上午6:53:39 [UTC-7] 的信中寫道:
We should test to see whether the CPLEX in your package is working all at. You could pick a linear model and data from our Example Files page, and then try to solve directly using "option solver cplex;". Reply with whatever output you see from CPLEX, and then I'll refer you to someone who can get you an updated BARON and an updated CPLEX if necessary.
--
Robert Fourer
On Fri, Jul 24, 2020 at 1:53 PM UTC, AMPL Google Group <am...@googlegroups.com> wrote:
We should test to see whether the CPLEX in your package is working all at. You could pick a linear model and data from our Example Files page, and then try to solve directly using "option solver cplex;". Reply with whatever output you see from CPLEX, and then I'll refer you to someone who can get you an updated BARON and an updated CPLEX if necessary.
--
Robert Fourer
am...@googlegroups.com