To save power and reduce temperature rise, a solenoid or relay coil is often initially energized with full power to rapidly complete the solenoid stroke and then the current is reduced to just what's required to hold the solenoid in.
The most efficient method to lower the current is with a PWM (Pulse Width Modulated) signal with duty-cycle selected to give the desired hold current.
This can also be used to apply an initial overvoltage to the solenoid for more rapid operation, and then drop...