Patent attributes
System and method for controlling the drilling of a second wellbore in close proximity to a first well bore. A computer system obtains information regarding a previously drilled wellbore, as well as information regarding a second wellbore being drilled. Using information obtained from one or more magnetic sensors, the computer system determines an optimal target path for continued drilling of the second wellbore and may issue one or more control signals to one or more control systems coupled to a drilling rig to automatically drill in accordance with the selected path. The computer system can generate a plurality of potential paths using one or more cost curves and/or value curves to determine the optimal path for the second wellbore.