I am a full-time consultant and provide services related to the design, implementation and deployment of mathematical programming, optimization and data-science applications. I also teach courses and workshops. Usually I cannot blog about projects I am doing, but there are many technical notes I'd like to share. Not in the least so I have an easy way to search and find them again myself. You can reach me at email@example.com.
Saturday, August 9, 2008
GAMS bug in ifthen
1 set k /k1,k2/; 2 3 parameter p(k); 4 5 p(k) = ifthen(sameas(k,'k1'),1,2); **** $201 **** 201 Invalid argument for function 6 7 display p;
Work-around: use 1$sameas(k,'k1'). Note that if() allows a condition like this.