Alan, Thanks so much for helping me port the stochastic programming solver to the Mac. It was great that this worked easily. I have tried to run a few examples I have in my files but the all have the ADD function - I was wondering if you could add that to the code or help me with a work around. Thanks so much Sandra