flexiblepower / powermatcher

PowerMatcher - The Java implementation of the PowerMatcher, including the API, the core, a couple of examples, a remote implementation using websockets and a visualisation of the configuration.
http://www.powermatcher.org
Apache License 2.0
41 stars 23 forks source link

Bid.flatdemand(...) fails when 0 is not a valid price in the marketbasis #200

Closed wilcowijbrandi closed 9 years ago

wilcowijbrandi commented 9 years ago

"found the issues...it is a core thing... public static Bid flatDemand(MarketBasis marketBasis, double demand) { return new PointBid.Builder(marketBasis).add(0, demand).build(); } when we send a flat bid it fails if the market basis is not minimum zero need to change 0 -> minPricebasis"