The optimal cooling of a stack of heat generating boards with fixed pressure drop, flowrate or pumping power