A maximum entropy joint demand estimation and capacity control policy