thermostat or not or what?

how do you determine what to do with the thermostat when racing? is there a science here? use one, restricter or none at all> help, please and thanx