A pump for dosing a liquid , with (a) a cylinder that has a cylinder interior , (b) an armature which - extends in the cylinder interior and - is at least partially ferromagnetic, and (c) a first electromagnet , (d) a pump chamber , which - can be made larger and smaller by activating the armature , - is connected to a feed line for filling with the liquid to be pumped and - a discharge opening for discharging the pumped liquid , (e) the feed line comprising a switchable valve and (f) the pump featuring a position sensor for contactless determination of an armature position of the armature relative to the cylinder , characterised by (g) a second electromagnet that forms a linear reluctance motor with the first electromagnet and the armature , by means of which the armature can be moved in the cylinder , and (h) a control unit that is configured to automatically carry out a method featuring the steps: (i) detecting a target stroke (H Soll ) of the armature , (ii) continuously measuring an actual stroke, (iii) energising the first electromagnet in such a way that the actual stroke approaches the target stroke (H Soll ) and liquid flows into the pump chamber , and (iv) subsequently energising the second electromagnet so that the liquid is pumped from the pump chamber through the discharge opening . (a) a cylinder that has a cylinder interior , (b) an armature which - extends in the cylinder interior and - is at least partially ferromagnetic, and - extends in the cylinder interior and - is at least partially ferromagnetic, and (c) a first electromagnet , (d) a pump chamber , which - can be made larger and smaller by activating the armature , - is connected to a feed line for filling with the liquid to be pumped and - a discharge opening for discharging the pumped liquid , - can be made larger and smaller by activating the armature , - is connected to a feed line for filling with the liquid to be pumped and - a discharge opening for discharging the pumped liquid , (e) the feed line comprising a switchable valve and (f) the pump featuring a position sensor for contactless determination of an armature position of the armature relative to the cylinder , (g) a second electromagnet that forms a linear reluctance motor with the first electromagnet and the armature , by means of which the armature can be moved in the cylinder , and (h) a control unit that is configured to automatically carry out a method featuring the steps: (i) detecting a target stroke (H Soll ) of the armature , (ii) continuously measuring an actual stroke, (iii) energising the first electromagnet in such a way that the actual stroke approaches the target stroke (H Soll ) and liquid flows into the pump chamber , and (iv) subsequently energising the second electromagnet so that the liquid is pumped from the pump chamber through the discharge opening . (i) detecting a target stroke (H Soll ) of the armature , (ii) continuously measuring an actual stroke, (iii) energising the first electromagnet in such a way that the actual stroke approaches the target stroke (H Soll ) and liquid flows into the pump chamber , and (iv) subsequently energising the second electromagnet so that the liquid is pumped from the pump chamber through the discharge opening . <EOS>