Search found 263 matches

by Renger
1 month ago
Forum: API
Topic: Python Embedded in Gams - Import Python Package
Replies: 13
Views: 2419

Re: Python Embedded in Gams - Import Python Package

Hi Clemens Here are my steps on my Windows machine to get the embedded code working with: Install the python distribution of your liking (as long as it is version 3.6.x; not one of the versions 3.7 or 3.5) Adjust your path by adding the path to the python3.dll (in my case: C:\Python36\python-3.6.8.a...
by Renger
1 month ago
Forum: Modeling
Topic: Help in Modelling Equations Related to EVs
Replies: 5
Views: 147

Re: Help in Modelling Equations Related to EVs

It is still not clear to me what you want:
A name of somebody to help? Somebody just saying: yes I can help?
We gladly help you. That is the purpose of the forum.
Cheers
Renger
by Renger
1 month ago
Forum: Modeling
Topic: Help in Modelling Equations Related to EVs
Replies: 5
Views: 147

Re: Help in Modelling Equations Related to EVs

Hi
You could start by reading the "Rules" in this forum as none of us is clairvoyant :-)
Cheers
Renger
by Renger
1 month ago
Forum: API
Topic: Python Embedded in Gams - Import Python Package
Replies: 13
Views: 2419

Re: Python Embedded in Gams - Import Python Package

Hi Clemens I gave up as I wasn't able to get it running (Python in GAMS yes, but plotting no). Even if I set the python path to GMSPython I run into lots of problems and did not manage to install wxpython. My wishes: - It would be great if the information on how to do this would be clear even for Li...
by Renger
1 month ago
Forum: API
Topic: Python Embedded in Gams - Import Python Package
Replies: 13
Views: 2419

Re: Python Embedded in Gams - Import Python Package

Hi Clemens The story continues: I now have Gams on my Ubuntu 18 notebook installed and run in the same kind of problems. I use Anaconda and the following Gams-code: embeddedCode Python: import matplotlib import matplotlib.pyplot as plt matplotlib.use('WXagg') plt.plot([1,2,3,4]) plt.show() endEmbedd...
by Renger
1 month ago
Forum: API
Topic: Python Embedded in Gams - Import Python Package
Replies: 13
Views: 2419

Re: Python Embedded in Gams - Import Python Package

Hi Clemens After installing wxPython, I can call the plot, so that is fine. However, even after renaming the python3.6.dll in the Gams root directory, I still can't use my ananconda installation. For whatever reason, gams seems to still have problems with a missing tkinter. Anyway, I can now work wi...
by Renger
1 month ago
Forum: API
Topic: Python Embedded in Gams - Import Python Package
Replies: 13
Views: 2419

Re: Python Embedded in Gams - Import Python Package

Hi Clemens Thanks, but I don't manage to get it running (the wxAgg doesn't do the job either as I want to have a plot showing up). Could you help me out (all on Windows 10 x64): - I ran the setup.py script in the 3.6 directory - I have my Python 3.6 in c:\users\renger\anaconda (there is also the 3.6...
by Renger
1 month ago
Forum: Syntax
Topic: Why should I use system.empty in a set
Replies: 1
Views: 112

Why should I use system.empty in a set

Hi In the first example of the embedded code documentation, the following code is shown: Set cc / "France - Paris", "France - Lille", "France - Toulouse" "Spain - Madrid", "Spain - Cordoba", "Spain - Seville", "Spain - Bilbao" "USA - Washington DC", "USA - Houston", "USA - New York", "Germany - Berl...
by Renger
1 month ago
Forum: API
Topic: Python Embedded in Gams - Import Python Package
Replies: 13
Views: 2419

Re: Python Embedded in Gams - Import Python Package

That worked. However, is it possible to use anaconda instead of Python coming with GAMS? I ask because I can't use matplotlib on Windows because of the missing module tkinter. It looks like Gams python is a scaled down version.
Cheers
Renger
by Renger
1 month ago
Forum: API
Topic: Python Embedded in Gams - Import Python Package
Replies: 13
Views: 2419

Re: Python Embedded in Gams - Import Python Package

Hi I had the facility for running embedded code with python up and running, but now I am on my new computer and my short term memory was also cleared: I haven't a clue how I got it working. Embedded code runs fine, but if I add "import pandas as pd", I get the error that pandas is not installed. ---...