As a quasi sidenote, most gyms already implement this on a smaller scale on their elliptical and spinning machines as they're usually self powered and you can regulate the resistance the machine offers, which I assume must increase or decrease the number of magnets around the flywheel.