These files are for the Water Resources problem. The relevant paper is G. W. Characklis, B. R. Kirsch, J. Ramsey, K. E. M. Dillard, and C. T. Kelley, Developing Portfolios of Water Supply Transfers, Water Resources Research, (42) 2006, pp W05403-1 -- W05403-14. To get this to work you must 0) Get a copy of the implicit filtering book (SIAM 2011) to understand how this mess is assembled. The story is in Chapter 1) Get randsample from the MATLAB Statistics Toolbox