Text this: Planning of optimal power systems