Renewable energy for offshore platforms energy optimization