Python

Good Books for Learning Python
After some hesitation, I finally decided to start with learning Python. I had some hesitations because I am used to R and that is a different kind of cookie. The decision was made easier because I am working on a project with models developed by other colleagues in Python (and Matlab). Furthermore, although Shiny in R is a great way for visualization of results, I got stuck building a combination of results and information. Python offers Dash (some nice examples can be found in the Dash Galley). Another reason is that nowadays you can use Python in your Gams … Read the rest “Good Books for Learning Python”

Starting your Jupyter Notebook with a doubleclick
Jupyter Notebooks are a great way of working with Python and R. You can add your notes in Markdown and write code in a cell that can be evaluated over and over again.
However, one thing I didn’t like is that you have to start (on Windows) the Jupyter Notebook server in the directory where you have your notebook saved. Doubleclicking a Jupyter notebook (with the extension ipynb) doesn’t work if you don’t install an additional package. Luckily, there is an easy way to get this working found on Axel’s blog.
I used the following code to enable doubleclick … Read the rest “Starting your Jupyter Notebook with a doubleclick”

Looking for infeasibilities in Gams
A good CGE modelers always checks the calibration of a CGE model using a simple trick: If you set the iteration limit of the model to zero and you try to solve the model, GAMS should find a solution if you correctly initialized and wrote down your model equations with the use of the benchmark data. Often, the calibration is not done properly and this can be seen (using the iteration set to zero) by looking at the infeasibilities of the equations and the variables.
If you use MPSGE to write down your model, the infeasibilities are easily interpreted. If … Read the rest “Looking for infeasibilities in Gams”
Categories
Recent Posts
 Tables with footnotes in LaTeX 10 views
 Elasticities in estimated linear models 10 views
 Gams code in LaTeX documents 6 views
 ExcelAddin for converting Excel tables to LaTeX tables 4 views
 Gams code snippet for checking consistency of a matrix 3 views
 How to generate nice nomenclatures in LaTeX 3 views
 Efficient desktop environment under Windows 10 using virtual desktops and Vdesk 2 views
 Viewing all the objects in R in a buffer in Emacs 2 views
 Showing a beamer presentation with preview of next slide 2 views
 Using OrgMode for Project Management 2 views