# Support

**URL:** https://discuss.ampl.com/c/support/38.md?page=1

[Latest](https://discuss.ampl.com/latest.md) · [Categories](https://discuss.ampl.com/categories.md) · [Tags](https://discuss.ampl.com/tags.md)

**Page:** 2

---

## [Re-structuring data in a model before reading data](https://discuss.ampl.com/t/re-structuring-data-in-a-model-before-reading-data/2142)

<div class="topic-metadata">

**Author:** [@Lothar\_Lower](https://discuss.ampl.com/u/Lothar_Lower)\
**Replies:** 1\
**Last updated:** [May 30, 2025, 8:46pm UTC](https://discuss.ampl.com/t/re-structuring-data-in-a-model-before-reading-data/2142 "2025-05-30T20:46:25Z")

</div>

Hi, I am reading data of several transformers from excel. Now, I want to re-structure the data in order to handle each transformer “individually” using a piecewise-linear function at the end. To do so, I am copying the…

---

## [Creating/Using a set dealing about a topological connection](https://discuss.ampl.com/t/creating-using-a-set-dealing-about-a-topological-connection/2133)

<div class="topic-metadata">

**Author:** [@Lothar\_Lower](https://discuss.ampl.com/u/Lothar_Lower)\
**Replies:** 2\
**Last updated:** [May 27, 2025, 8:57am UTC](https://discuss.ampl.com/t/creating-using-a-set-dealing-about-a-topological-connection/2133 "2025-05-27T08:57:15Z")

</div>

Performing an electrical calculation, there are data dealing about “nodes” and “branches” like node (id): 1, 2, 3, 4 (four nodes in the network) branch data (three branches in the network, connecting the four nodes - “…

---

## [Baron solver Python API](https://discuss.ampl.com/t/baron-solver-python-api/2136)

<div class="topic-metadata">

**Author:** [@corspa](https://discuss.ampl.com/u/corspa)\
**Replies:** 2\
**Last updated:** [May 23, 2025, 8:45am UTC](https://discuss.ampl.com/t/baron-solver-python-api/2136 "2025-05-23T08:45:54Z")

</div>

I cannot use the baron solver in Pyhton API. I get the error message: Sorry, a demo license is limited to 10 variables and 10 constraints and objectives. You have 11631 variables, 78 constraints, and 1 objective. Con…

---

## [ASL: Hessian-vector products in trust-region SQP method](https://discuss.ampl.com/t/asl-hessian-vector-products-in-trust-region-sqp-method/2128)

<div class="topic-metadata">

**Author:** [@cvanaret](https://discuss.ampl.com/u/cvanaret)\
**Replies:** 2\
**Last updated:** [May 10, 2025, 9:31pm UTC](https://discuss.ampl.com/t/asl-hessian-vector-products-in-trust-region-sqp-method/2128 "2025-05-10T21:31:19Z")

</div>

Hi all, I’m using the ASL library in a trust-region SQP method and I encountered a major issue. Here’s what basically happens: we start from a primal-dual iterate at which we evaluate the functions. we define the QP a…

---

## [Infeasibility after finding an optimal solution](https://discuss.ampl.com/t/infeasibility-after-finding-an-optimal-solution/2131)

<div class="topic-metadata">

**Author:** [@Lothar\_Lower](https://discuss.ampl.com/u/Lothar_Lower)\
**Replies:** 2\
**Last updated:** [May 9, 2025, 6:14am UTC](https://discuss.ampl.com/t/infeasibility-after-finding-an-optimal-solution/2131 "2025-05-09T06:14:11Z")

</div>

Hello, I detected that after solving a problem (optimal solution with solver knitro) and “restarting” the solving process once again (same problem, no additional AMPL commands), the solving process runs into an infeasib…

---

## [Implementing nested sets](https://discuss.ampl.com/t/implementing-nested-sets/2126)

<div class="topic-metadata">

**Author:** [@nickgessner\_9](https://discuss.ampl.com/u/nickgessner_9)\
**Replies:** 1\
**Last updated:** [May 5, 2025, 8:30pm UTC](https://discuss.ampl.com/t/implementing-nested-sets/2126 "2025-05-05T20:30:52Z")

</div>

Hello all together. I’m trying to implement the set Mik and Mjk, as you can see in the picture attached. I already implemented the other sets as follows: param N; set mathN := 1..N; param K; set mathK := 1..K; i…

---

## [Strange results from trigonometric functions](https://discuss.ampl.com/t/strange-results-from-trigonometric-functions/2124)

<div class="topic-metadata">

**Author:** [@Hossein](https://discuss.ampl.com/u/Hossein)\
**Replies:** 1\
**Last updated:** [May 3, 2025, 4:38pm UTC](https://discuss.ampl.com/t/strange-results-from-trigonometric-functions/2124 "2025-05-03T16:38:40Z")

</div>

hello, I use trigonometric functions “tan” and “cos” in my code. The result of AMPL is strange, as shown below. thet tan(the) cos(the) 30.97 -0.48 0.90 23.96 -2.35 0.39 33.69 …

---

## [Anyone knows if there is any change recently on neos-server?](https://discuss.ampl.com/t/anyone-knows-if-there-is-any-change-recently-on-neos-server/2123)

<div class="topic-metadata">

**Author:** [@jerron](https://discuss.ampl.com/u/jerron)\
**Replies:** 1\
**Last updated:** [May 2, 2025, 1:59am UTC](https://discuss.ampl.com/t/anyone-knows-if-there-is-any-change-recently-on-neos-server/2123 "2025-05-02T01:59:34Z")

</div>

In the job queue page, many jobs are waiting in the waiting list while only a few jobs are running. In the past the running list could be much longer and we rarely saw jobs in the waiting queue. BTW, is here the right p…

---

## [Issue with BARON licence AMPLpy + Pyomo](https://discuss.ampl.com/t/issue-with-baron-licence-amplpy-pyomo/2120)

<div class="topic-metadata">

**Author:** [@Ghosty](https://discuss.ampl.com/u/Ghosty)\
**Replies:** 5\
**Last updated:** [April 21, 2025, 9:29pm UTC](https://discuss.ampl.com/t/issue-with-baron-licence-amplpy-pyomo/2120 "2025-04-21T21:29:27Z")

</div>

Hi everyone, I am working with pyomo and using AMPL solvers, here’s the code + error. I have activated the trial for BARON, but unabel to use, It’s working fine with other free solvers. from amplpy import modules solv…

---

## [Request for MPS File Export in AMPL Community Edition](https://discuss.ampl.com/t/request-for-mps-file-export-in-ampl-community-edition/2112)

<div class="topic-metadata">

**Author:** [@jbendiner](https://discuss.ampl.com/u/jbendiner)\
**Replies:** 1\
**Last updated:** [April 3, 2025, 12:30pm UTC](https://discuss.ampl.com/t/request-for-mps-file-export-in-ampl-community-edition/2112 "2025-04-03T12:30:03Z")

</div>

Hi AMPL Team, I’m currently using the AMPL Community Edition (version 20241203) and need to export my model to an .mps file for debugging and solver compatibility purposes. However, the write and write gproblem commands…

---

## [Problems with ranges of shadow cost](https://discuss.ampl.com/t/problems-with-ranges-of-shadow-cost/2090)

<div class="topic-metadata">

**Author:** [@dmorill](https://discuss.ampl.com/u/dmorill)\
**Replies:** 5\
**Last updated:** [April 2, 2025, 2:42am UTC](https://discuss.ampl.com/t/problems-with-ranges-of-shadow-cost/2090 "2025-04-02T02:42:10Z")

</div>

Hello, I have been trying to find the ranges in which the dual prices (shadow prices) are valid. According to the official AMPL manual, the command \[constraint\].dual; can be used, and it works fine. The problem arises wh…

---

## [How can i solve this error?](https://discuss.ampl.com/t/how-can-i-solve-this-error/2108)

<div class="topic-metadata">

**Author:** [@edy\_munguambe](https://discuss.ampl.com/u/edy_munguambe)\
**Replies:** 1\
**Last updated:** [April 2, 2025, 1:18am UTC](https://discuss.ampl.com/t/how-can-i-solve-this-error/2108 "2025-04-02T01:18:58Z")

</div>

Trabalho.mod, line 36 (offset 1790): syntax error context: var \>\>\> z1:sum{ \<\<\< i in I} E\[i\] \* Z\[i\] + sum{l in L} F\[l\] \* W\[l\] + sum{i in I,k in K,j in J} (A\[j\] + B\[j\] \* t\_ik\[i,k\]) \* X\[i,k,j\] + sum{k in K,l in L,j in J}…

---

## [Good day. I”m trying to solve this problem but it gives an error on AMPl](https://discuss.ampl.com/t/good-day-i-m-trying-to-solve-this-problem-but-it-gives-an-error-on-ampl/2100)

<div class="topic-metadata">

**Author:** [@edy\_munguambe](https://discuss.ampl.com/u/edy_munguambe)\
**Replies:** 3\
**Last updated:** [April 1, 2025, 8:41am UTC](https://discuss.ampl.com/t/good-day-i-m-trying-to-solve-this-problem-but-it-gives-an-error-on-ampl/2100 "2025-04-01T08:41:31Z")

</div>

\# ======================== # Modelo de Otimização - Técnica dos Pontos de Referência # ======================== # 1. Conjuntos set I := i1, i2, i3, i4; # Conjunto de Plantas set J := j1, j2, j3; # Conjunto…

---

## [Converting Gurobipy Code for Use with AMPL](https://discuss.ampl.com/t/converting-gurobipy-code-for-use-with-ampl/2105)

<div class="topic-metadata">

**Author:** [@hssharadga](https://discuss.ampl.com/u/hssharadga)\
**Replies:** 1\
**Last updated:** [March 31, 2025, 3:17am UTC](https://discuss.ampl.com/t/converting-gurobipy-code-for-use-with-ampl/2105 "2025-03-31T03:17:30Z")

</div>

I wrote a long Python code using gurobipy and solved it with the Gurobi solver. I want to use another solver with AMPL. Do I need to manually rewrite the Python code written with gurobipy, or is there a way to convert it…

---

## [Automatic iteration](https://discuss.ampl.com/t/automatic-iteration/2099)

<div class="topic-metadata">

**Author:** [@Laura\_Rodriguez](https://discuss.ampl.com/u/Laura_Rodriguez)\
**Replies:** 1\
**Last updated:** [March 28, 2025, 8:13pm UTC](https://discuss.ampl.com/t/automatic-iteration/2099 "2025-03-28T20:13:37Z")

</div>

hello everyone, I’m trying to implement a Monte Carlo simulation. I use gsl\_ran\_gaussian to generate the variance. this is my obj funtion plus constraints minimize Costo\_Total: sum {v in V, t in T} Co\[v, t\]; s.t. Cost…

---

## [How use bounding restrictions in Baron](https://discuss.ampl.com/t/how-use-bounding-restrictions-in-baron/2096)

<div class="topic-metadata">

**Author:** [@Gustavo\_Martinez](https://discuss.ampl.com/u/Gustavo_Martinez)\
**Replies:** 1\
**Last updated:** [March 25, 2025, 10:00pm UTC](https://discuss.ampl.com/t/how-use-bounding-restrictions-in-baron/2096 "2025-03-25T22:00:47Z")

</div>

Hello, I’m trying to solve a nonlinear problem with Baron in NEOS. Without an optional bounding restriction, I get solutions. However, when I try to use it, I don’t get any solution. Any idea why this might happen? The …

---

## [Update IPOPT executable](https://discuss.ampl.com/t/update-ipopt-executable/2095)

<div class="topic-metadata">

**Author:** [@Walton](https://discuss.ampl.com/u/Walton)\
**Replies:** 2\
**Last updated:** [March 24, 2025, 4:59pm UTC](https://discuss.ampl.com/t/update-ipopt-executable/2095 "2025-03-24T16:59:36Z")

</div>

I’m not sure this is the correct place for such a request, but would it be possible to update the provided IPOPT 3.12.13 (2019-04-08) executable to a newer version 3.14.17 (2024-12-14)?

---

## [License Installation Issue in Mac](https://discuss.ampl.com/t/license-installation-issue-in-mac/2094)

<div class="topic-metadata">

**Author:** [@adnan](https://discuss.ampl.com/u/adnan)\
**Replies:** 1\
**Last updated:** [March 20, 2025, 9:57pm UTC](https://discuss.ampl.com/t/license-installation-issue-in-mac/2094 "2025-03-20T21:57:32Z")

</div>

Hi, I received an AMPL license from my teacher, and it is working perfectly fine on Windows. However, when I try to use the same license on my Mac, I encounter an error. I am using the AMPL license within MATLAB, and th…

---

## [Unexpected changes in Gurobi settings when using amplpy](https://discuss.ampl.com/t/unexpected-changes-in-gurobi-settings-when-using-amplpy/2092)

<div class="topic-metadata">

**Author:** [@salvapinedam](https://discuss.ampl.com/u/salvapinedam)\
**Replies:** 1\
**Last updated:** [March 20, 2025, 12:52pm UTC](https://discuss.ampl.com/t/unexpected-changes-in-gurobi-settings-when-using-amplpy/2092 "2025-03-20T12:52:54Z")

</div>

I have noticed that when I use amplpy with Gurobi, some of Gurobi’s default settings seem to change. For example, the default feasibility tolerance in Gurobi is 1e-6, but when using amplpy, this tolerance appears to be m…

---

## [No cplex license for this machine](https://discuss.ampl.com/t/no-cplex-license-for-this-machine/2083)

<div class="topic-metadata">

**Author:** [@hello123](https://discuss.ampl.com/u/hello123)\
**Replies:** 1\
**Last updated:** [March 15, 2025, 2:37am UTC](https://discuss.ampl.com/t/no-cplex-license-for-this-machine/2083 "2025-03-15T02:37:44Z")

</div>

Hi! Everytime I try to run my AMPL code the program says displays my license followed by “No cplex license for this machine”. The license was given to me by my university, anyone know how to solve this? I would apprecia…

---

## [Issue with exportData() with amplpy==0.14.0](https://discuss.ampl.com/t/issue-with-exportdata-with-amplpy-0-14-0/2085)

<div class="topic-metadata">

**Author:** [@marina.santarelli](https://discuss.ampl.com/u/marina.santarelli)\
**Replies:** 2\
**Last updated:** [March 14, 2025, 11:17am UTC](https://discuss.ampl.com/t/issue-with-exportdata-with-amplpy-0-14-0/2085 "2025-03-14T11:17:25Z")

</div>

Hi! I recently updated amplpy version to the latest 0.14.0 and now I get the following error when I call the ampl.exportData(): File “C:\\Users\\MS3118\\Repos\\optimization-module\\OPT-12\\Lib\\site-packages\\amplpy\\ampl.py”, …

---

## [Model creation time of AMPL vs Gurobipy, Jump, Pyomo](https://discuss.ampl.com/t/model-creation-time-of-ampl-vs-gurobipy-jump-pyomo/2076)

<div class="topic-metadata">

**Author:** [@salvapinedam](https://discuss.ampl.com/u/salvapinedam)\
**Replies:** 1\
**Last updated:** [March 10, 2025, 12:06pm UTC](https://discuss.ampl.com/t/model-creation-time-of-ampl-vs-gurobipy-jump-pyomo/2076 "2025-03-10T12:06:27Z")

</div>

I came across an interesting comparison of GAMS with Pyomo, JuMP, and Gurobipy (Performance in Optimization Models: A Comparative Analysis of GAMS, Pyomo, GurobiPy, and JuMP). Do you know if a similar analysis exists for…

---

## [Maxtime option doesn't always work?](https://discuss.ampl.com/t/maxtime-option-doesnt-always-work/2068)

<div class="topic-metadata">

**Author:** [@jerron](https://discuss.ampl.com/u/jerron)\
**Replies:** 9\
**Last updated:** [March 9, 2025, 7:08pm UTC](https://discuss.ampl.com/t/maxtime-option-doesnt-always-work/2068 "2025-03-09T19:08:28Z")

</div>

In my code I put something like following. Most time they worked. The job did return at about the set time. But quite often they didn’t. They seem to hang in the server after 8 hours and got killed. And quite often resub…

---

## [How to debug AMPL?](https://discuss.ampl.com/t/how-to-debug-ampl/2075)

<div class="topic-metadata">

**Author:** [@jerron](https://discuss.ampl.com/u/jerron)\
**Replies:** 0\
**Last updated:** [March 6, 2025, 10:09pm UTC](https://discuss.ampl.com/t/how-to-debug-ampl/2075 "2025-03-06T22:09:30Z")

</div>

I found there seems a better solution than the one given by the solver. Is there any easy way I can verify if this solution indeed meets all the constraints and yield higher maxgoal? Thanks.

---

## [Problem with the installation of amplpy in PyCharm](https://discuss.ampl.com/t/problem-with-the-installation-of-amplpy-in-pycharm/2065)

<div class="topic-metadata">

**Author:** [@jairo.yumbla](https://discuss.ampl.com/u/jairo.yumbla)\
**Replies:** 2\
**Last updated:** [February 21, 2025, 10:41pm UTC](https://discuss.ampl.com/t/problem-with-the-installation-of-amplpy-in-pycharm/2065 "2025-02-21T22:41:25Z")

</div>

Hello everyone, I hope you all peace and love. Currently, I’m having some troubles with the installation of amplpy package on my IDE PyCharm. It is not related to pip update. the message I get is as following: C:\\Users\\…

---

## [rAMPL does not work properly with R 4.4.2](https://discuss.ampl.com/t/rampl-does-not-work-properly-with-r-4-4-2/2056)

<div class="topic-metadata">

**Author:** [@angelmanuel.rueda](https://discuss.ampl.com/u/angelmanuel.rueda)\
**Replies:** 14\
**Last updated:** [February 20, 2025, 11:53am UTC](https://discuss.ampl.com/t/rampl-does-not-work-properly-with-r-4-4-2/2056 "2025-02-20T11:53:08Z")

</div>

Hello! I have installed the rAMPL library in R 4.4.2 on Windows (with Rtools 44). Although the installation seemed successful, some methods of the library do not work properly. For example, when I try to call “ampl$solv…

---

## [Request for Support in Fixing the Errors](https://discuss.ampl.com/t/request-for-support-in-fixing-the-errors/2062)

<div class="topic-metadata">

**Author:** [@Davids\_David2](https://discuss.ampl.com/u/Davids_David2)\
**Replies:** 1\
**Last updated:** [February 19, 2025, 8:45pm UTC](https://discuss.ampl.com/t/request-for-support-in-fixing-the-errors/2062 "2025-02-19T20:45:40Z")

</div>

Dear Team, I am writing to request support with my model. I am trying to simulate a small system for a public call center, where multiple phone rooms are available, and people arrive to make calls. When a person arrives…

---

## [Relaxing integrality on specific index values of a variable](https://discuss.ampl.com/t/relaxing-integrality-on-specific-index-values-of-a-variable/1959)

<div class="topic-metadata">

**Author:** [@jkilb](https://discuss.ampl.com/u/jkilb)\
**Replies:** 6\
**Last updated:** [February 13, 2025, 11:31pm UTC](https://discuss.ampl.com/t/relaxing-integrality-on-specific-index-values-of-a-variable/1959 "2025-02-13T23:31:02Z")

</div>

Hi, I have the following variable in my .mod: var X {CKLLT} \>= 0; Which is defined in the .dat file as: set CKLLT := (commodity1, vehicle, location1, location2, time) (commodity2, vehicle, location1, location2, ti…

---

## [Command let and .val](https://discuss.ampl.com/t/command-let-and-val/2054)

<div class="topic-metadata">

**Author:** [@Natalia](https://discuss.ampl.com/u/Natalia)\
**Replies:** 4\
**Last updated:** [February 11, 2025, 4:52pm UTC](https://discuss.ampl.com/t/command-let-and-val/2054 "2025-02-11T16:52:48Z")

</div>

Hello, I would like to know how to directly call a parameter from Model A in Model B. Both of my models have a similar structure, so many parameters share the same name. I would also like to know if it is mandatory to …

---

## [Setting up piecewise linear variables reading excel data](https://discuss.ampl.com/t/setting-up-piecewise-linear-variables-reading-excel-data/2047)

<div class="topic-metadata">

**Author:** [@Lothar\_Lower](https://discuss.ampl.com/u/Lothar_Lower)\
**Replies:** 2\
**Last updated:** [February 10, 2025, 9:16pm UTC](https://discuss.ampl.com/t/setting-up-piecewise-linear-variables-reading-excel-data/2047 "2025-02-10T21:16:51Z")

</div>

Hello, I am reading excel data using “amplxl.dll” and want to use it to setup several piecewise linear functions in AMPL. Is there a common procedure (best practice) to do this? My excel data contains data like: |id|t…

[Previous page](https://discuss.ampl.com/c/support/38.md)

[Next page](https://discuss.ampl.com/c/support/38.md?page=2)
