Optimal acquisition, inventory and production decisions for a closed-loop manufacturing system with legislation constraint