See the CARB Regulation section here: https://en.m.wikipedia.org/wiki/Range_extender
Why not instead set a carbon price and otherwise let the market and owners decide what mix of gasoline and grid electricity to use?
reply