A Java simulator/optimizer for rankine cycle power systems