1. A non-transitory computer readable medium comprising: instructions for causing a computer to compose a plurality of ensembles each comprising products of inputs with product prices for calculation of costs; instructions for causing a computer to determine a Lagrangian function for each ensemble from said plurality of ensembles; instructions for causing a computer to minimize each said Lagrangian function subject to constraints of a supply function and solving for values of inputs for each ensemble; instructions for causing a computer to compute a first utility score for ranking ensembles based on solved values of inputs; instructions for causing a computer to weigh ensembles according to a first set of criteria; instructions for causing a computer to compute a second utility score for ranking ensembles weighted according to the first set of criteria; instructions for causing a computer to weigh each utility score according to predefined values; instructions for causing a computer to calculate a sum of weighted utility scores associated with a particular ensemble; and instructions for causing a computer to select an ensemble according to the highest weighted utility score sum.