removed test of negative capacity, should be reintegrated when demand capacity vs. supply capacity support is added