This work considers an industrial production site partially powered by a decentralised energy system based on intermittent renewable energy sources. Our objective is to simultaneous plan the industrial production and the energy supply in this site so as to minimise the total cost. A new way of modelling this combinatorial optimisation problem is proposed: it relies on the extension of a multi-product single-resource small-bucket lot-sizing model called the proportional lot-sizing and scheduling problem. This extension involves among others sequence-dependent changeover times overlapping multiple periods and energy-related constraints. Our numerical results show that the resulting mixed-integer linear programming model enables to obtain good-quality production and energy supply plans with a computational effort much smaller than the one required by a previously published large-bucket lot-sizing model.