In any action brought under the provisions of this article, the attorney general is entitled to recover costs, which in the discretion of the court may include a sum representing reasonable attorney’s fees for the services rendered, for the use of the state.