# License with Baron MP

**URL:** <https://discuss.ampl.com/t/license-with-baron-mp/2002>\
**Category:** Support\
**Created:** [December 10, 2024, 10:47am UTC](https://discuss.ampl.com/t/license-with-baron-mp/2002 "2024-12-10T10:47:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julkin](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/julkin/32/195_2.png) [@Julkin](https://discuss.ampl.com/u/Julkin)\
**Post date:** [December 10, 2024, 10:47am UTC](https://discuss.ampl.com/t/license-with-baron-mp/2002/1 "2024-12-10T10:47:06Z")

</div>

Hello,

I am using AMPL for teaching via the windows bundle with the IDE (not the community edition).

In the latest bundle I downloaded, I see that I can call Baron both as baron and as baronmp. Yet, the later does not seem to recognize the bundle’s licence.

Using “option solver baron;” I get “BARON 24.5.8 (2024.05.08)” running and everything goes well.

On the other hand, using “option solver baronmp;” I get “BaronMP 24.10.10” and the message

“Sorry, a demo license is limited to 10 variables and 10 constraints and objectives for non-linear problems.”

Is there a way to fix this and run the more recent baronMP?  
Thanks in advance.  
Best regards,  
Julio.

---

<div class="post-metadata">

**Author:** ![fdabrandao](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/fdabrandao/32/63_2.png) [@fdabrandao](https://discuss.ampl.com/u/fdabrandao)\
**Post date:** [December 10, 2024, 11:49am UTC](https://discuss.ampl.com/t/license-with-baron-mp/2002/2 "2024-12-10T11:49:50Z")

</div>

Hi @Julkin,

Thank you for reporting this issue. We have just adjusted the bundle generation to also add the license to baronmp. You need to rebuild your course bundle or, alternatively, use the course license via the Option 1 shown on the bundle download page using the license UUID and the regular installers.

---

<div class="post-metadata">

**Author:** ![Julkin](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/julkin/32/195_2.png) [@Julkin](https://discuss.ampl.com/u/Julkin)\
**Post date:** [December 10, 2024, 12:29pm UTC](https://discuss.ampl.com/t/license-with-baron-mp/2002/3 "2024-12-10T12:29:23Z")

</div>

Thanks @fdabrandao for the quick reply.

I have tried to regenerate and download the bundles but I get the following error “Failed to generate bundle for Windows 64-bit. Please try again and report the issue if the problem persists”.

I tried a couple of times with no success (and I had regenerated them with no problem earlier today).

Best,  
Julio.

---

<div class="post-metadata">

**Author:** ![fdabrandao](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/fdabrandao/32/63_2.png) [@fdabrandao](https://discuss.ampl.com/u/fdabrandao)\
**Post date:** [December 10, 2024, 12:34pm UTC](https://discuss.ampl.com/t/license-with-baron-mp/2002/4 "2024-12-10T12:34:19Z")

</div>

Hi @Julkin,

We have just fixed one small issue that was causing that problem. Could you please try again now?

---

<div class="post-metadata">

**Author:** ![Julkin](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/julkin/32/195_2.png) [@Julkin](https://discuss.ampl.com/u/Julkin)\
**Post date:** [December 10, 2024, 1:22pm UTC](https://discuss.ampl.com/t/license-with-baron-mp/2002/5 "2024-12-10T13:22:20Z")

</div>

Hi again @fdabrandao,

Now I have been able to regenerate the bundle with no problems and, moreover, I do not get the licensing error for baronmp anymore.

Yet, I have run into a new error (maybe unrelated). After solving some toy examples with baronmp as a solver, I gave to it a much more challenging one (the one I am interested to have Baron working on). If I set the solver to baron everything is fine but, if I set the solver to baronmp, I get:

##########################  
BARON version 24.10.10. Built: WIN-64 Thu Oct 10 23:02:44 EDT 2024  
Running on machine JULKIN

BARON is a product of The Optimization Firm.  
For information on BARON, see [About BARON | The Optimization Firm](https://minlp.com/about-baron)  
baronin.exe: syntax error on line 113603  
BARON: Syntax error  
BaronMP 24.10.10: not solved, could not call Baron process  
##########################

Not sure if this issue will have such an easy fix as the previous one…  
Thanks anyway for our time.  
Best,  
Julio.

---

<div class="post-metadata">

**Author:** ![fdabrandao](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/fdabrandao/32/63_2.png) [@fdabrandao](https://discuss.ampl.com/u/fdabrandao)\
**Post date:** [December 10, 2024, 2:24pm UTC](https://discuss.ampl.com/t/license-with-baron-mp/2002/6 "2024-12-10T14:24:17Z")

</div>

Thanks for reporting this issue! Could you please send us the nl file so that we can reproduce the issue? You can export it with following command:

```auto
ampl: write bmod;

```

It will create a file called mod.nl in the current working directory.

---

<div class="post-metadata">

**Author:** ![fdabrandao](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/fdabrandao/32/63_2.png) [@fdabrandao](https://discuss.ampl.com/u/fdabrandao)\
**Post date:** [January 3, 2025, 6:15pm UTC](https://discuss.ampl.com/t/license-with-baron-mp/2002/7 "2025-01-03T18:15:54Z")

</div>

Hi @Julkin,

This should have been fixed in Baron 20241227 ([BARON Changelog — AMPL Resources](https://dev.ampl.com/solvers/baron/changes.html)). Could you please upgrade and try again?
