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 54 views
 Tables with footnotes in LaTeX 21 views
 Producing standalone figures with TikZ in LaTeX 10 views
 ExcelAddin for converting Excel tables to LaTeX tables 6 views
 Starting your Jupyter Notebook with a doubleclick 6 views
 Elasticities in estimated linear models 5 views
 Following up on Outlook EMails in OrgMode 4 views
 Gams code in LaTeX documents 4 views
 How to generate nice nomenclatures in LaTeX 4 views
 Matrix inversion in Excel 3 views