The Matlab codes related to the SPE paper are on Sigurd Skogestad's homepage, and they are cited in the paper. http://www.nt.ntnu.no/users/skoge/software/slug-models-jahanshahi/