Software Environment for Market Balancing Mechanisms Development, and Its Application to Solving More General Problems in Parallel Way