Using phages as antibacterials is becoming a customary practice in Western countries. Nonetheless, successful treatments must consider the growth rate of the bacterial host and the degradation of the virions. Therefore, successful treatments require administering the right amount of phage (viral load, Vφ) at the right moment (administration time, Tφ). The present protocols implement a machine learning approach to determine the best combination of Vφ and Tφ to obtain the elimination of the target bacterium from a system. © 2024 The Authors. Current Protocols published by Wiley Periodicals LLC.Basic Protocol 1: One bacterium, one phageAlternate Protocol 1: One bacterium, one phage (wrapping function)Alternate Protocol 2: One bacterium, one phage (wrapping function, alternative growing model)Basic Protocol 2: Two bacteria, one phageAlternate Protocol 3: Two bacteria, one phage (launch from terminal)