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
 Automatic line breaks in LaTeX tables 35 views
 Tables with footnotes in LaTeX 9 views
 How to generate nice nomenclatures in LaTeX 5 views
 Starting your Jupyter Notebook with a doubleclick 4 views
 ExcelAddin for converting Excel tables to LaTeX tables 3 views
 Presentation, Article and Notes in one run using Beamer 3 views
 GAMS and Excel: writing and checking results with automatic closing and opening 2 views
 Producing standalone figures with TikZ in LaTeX 2 views
 Following up on Outlook EMails in OrgMode 2 views
 Emacs and Stata 1 view