Algorithms, Models, and Methods for SDSS-V Wide-field Robotic Fiber Spectroscopy