Reason for TPS and solenoid on a yz250 dirt bike?

I recently got an 02 yz250 2t, and I noticed that it had a throttle position sensor and a solenoid valve on the carburetor. What do they do? I know it has a power valve assembly, so does it have something to do with that?
2 answers 2