Initial commit of simulation and solver code.  Currently supports local and global (through DEsolve) optimization, and integerization by sampling.