Browsing by Keywords optimization of energy costs