Baron solver Python API

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.

Contact us at licensing@ampl.com or https://discuss.ampl.com/
for more information.
exit value 1

I have tried to put my license file in different folders in order for the program to be able to open it but it does not seem to work. Can you please advice me on what might be wrong?

Thank you in advance!

Hi @corspa,

Thank you for reaching out. Could you please send us the output of print(ampl.option["version"])?

Hi,

Thank you for your quick response. Turns out it was my fault, I hadn’t updated my license to include Baron.