Adding preliminary working implementation of resource allocation optimization that uses the stochastic solver