A few of those cases are variants of Lambert's Problem, various kinds of ODE BVPs (boundary value problems). An earth-comet intercept is almost certainly going to be found as either a single BVP or a large set of segmented BVPs. A good introductory text on this is "Spacecraft Trajectory Optimization" and "Modern Astrodnamics" by Wiesel will get you into the appropriate spirit of orbital motion. You can plug the equations into a CAS and likely get a fairly good solution for a single transfer or intercept (for example, an Earth-Jupiter transfer here:
https://youtu.be/apnDxaDOQrw ).
The problem is that the vast majority (and I am by no means an expert on it) of the techniques to perform these calculations are based on things coasting. Setting their orbit, riding it out, and correcting it at the end. i.e. transfer orbits. Specifically designed to minimize energy and delta V use. To be energy efficient orbits.
M-Drives don't care. They are point and shoot. M-Drives say "I see your Hohmann Transfer Orbit and raise you 2G's of acceleration for as long and I blinking want." "You think I have time for 'low energy'? Heck, Son, I have a business to run -- I'm not going out in to space to float around. Turn and burn, baby, turn and burn. Light those suckers up, Scotty. Find the Turbo button and hold it down!"
So, like I said, I haven't seen anyone (and I've asked on physics and math forums every now and then) that has come up with a technique to solve the equations involved to burn a rocket half way, turn around, burn it again to decel, and arrive where you want to be.
Consider.
Earth to Jupiter: 588MKm. We will assume that Jupiter is at 0 degrees when oriented to the earth for this experiment. And we'll assume a 10m/s^2 acceleration drive ("1G"), for assorted values of "1" and "G".
d = 1/2 at^2 thus t = sqrt(2d/a).
We need to burn to 294MKm, then turn, and decel another 294Mkm.
t = sqrt(294,000,000,000m * 2 / 10m/s^2) = 242487s = 67.35hrs
That gets us to the halfway point. double it for the full trip: 134.7hrs. This puts us at Jupiters orbit, due "west" of Earth (at least where Earth was when we started). But, of course, Jupiter, being rude, has moved on and is not waiting for us.
Jupiters orbit: 778Mkm, which we will crassly assume is a perfect circle.
Jupiter's orbital velocity: 13.1km/s.
Jupiter's complete orbit is pi*r^2 = 3.14159 * 778Mkm^2 = 1901544Mkm
Velocity * trip time: 13.1km/s * 242487s = 3176578km.
So, by the time you show up, following this naive course, Jupiter has moved 3.2MKm away from where your ship is at, which stands now parked, with a velocity of 0.
Now, honestly for a 1G drive, 3Mkm is nothing. Doing the same math, we'd end up with a trip of 35776s, or, basically, 10 hours. So, fly for 134.7hrs, when you get there, correct and fly for another 10. This is silly of course.
Now, if at the start of the show, the ship turned 0.00006(!!) deg counter clockwise, leading Jupiter a wee bit, they would more or less end up on top of Jupiter with much less than a 10 hour catch up at the end.
Planets move a lot, they're fast. Ships are faster.
But none of this accounts for either the Sun's gravity slowing the ships initial progress, or Jupiters gravity pulling it in at the end. I have no idea how much impact they have on the trip.
You can see that if you solve the base problem, use that to get an initial time estimate. Then bracket it on the other end "well, if I want to go where it's going to be, how long would THAT take". A couple of rounds of estimating and correction, and you can almost figure it out. But I'd like the math to be more deterministic that continual, informed guess until it's close.
Ideally, I'd want 4 results. Heading, duration of acceleration (I don't know if this needs to a fraction of maximum acceleration) for boost phase, duration of a coast phase, and duration of deceleration for the arrival phase. (that way the math can be used for TNE where burning the motor for 140 hours solid isn't practical).
I have tried different techniques for this. I did a genetic algorithm once, taking in to account Earth, Sun, and Jupiter. And, I got it the point that I was arriving at Jupiter, but I couldn't get the velocity down, and the course, well, let's just say it wasn't the most efficient. Had a few more bends and turns than I liked.
What do you mean that you achieve orbit but that it isn't stable?
Well, the way the simulation was written, it wasn't designed to actually stabilize the orbit. But the simulation effective "flew" the ship around the planet (and by flew, I mean is was actively accelerating and decelerating constantly to keep the ship in place).
But getting there, it was pretty good. It was constantly adjusting it's heading and burn. Burned pretty solid heading up, got a bit before halfway before it turned around and started the decel burn. You could see it lighting the motor and coasting. It was basically constantly flying, figuring out where it was, and correcting over and over.