Code accompanying the paper Convex formulation of the maritime fleet size and mix problem considering battery electric ships is available at https://github.com/ajritari/cvxfleet.