Back in the 70s, the Department of Energy was tasked with allocating gas to the gas stations. A gas station had to apply for an allocation, and the DoE doled out the gas. The DoE doled out gas based on the previous year's usage patterns.
Sounds smart, right?
What happened is that gas consumption varies year to year due to a number of factors, like weather patterns, population changes, etc. The result was massive misallocation by the DoE - Californian had shortages of gas, Florida had gluts. That sort of situation has never happened before.
All that nonsense disappeared literally overnight when Reagan repealed all gas price and allocation controls with his very first Executive Order. I remember than wonderful day very well - at last I could drive right up to the pump and get gas, rather than wait in line. The gas lines never returned.
What you're suggesting is called "central economic planning". It is constantly tried again and again, and it never ever works. (The failures of it are always classified as "unintended side effects", though they are entirely predictable.)