DC industrial microgrids can assure uninterrupted and free-of-perturbations power supply to industrial units. Besides the solution of the related optimal control problem can result in minimisation of electric power consumption by such units. In this article, the problem of nonlinear optimal (H-infinity) control for industrial microgrids is treated. The dynamic model of an indicative microgrid that comprises photovoltaic units, batteries and supercapacitors is considered. This model undergoes approximate linearisation around a temporary operating point that is recomputed at each time-step of the control method. The linearisation relies on Taylor series expansion and on the computation of the associated Jacobian matrices. For the linearised s...