You can read the source code here. This is an abridged edition, with most of the options hard coded to make the algorithm easier to follow.
The code is provided to illustrate that I have been able to optimize the Earth to Mars trajectory using just 50 pages of Fortan code. (The windows version is about twice as long as the above "longer version," but the working part is unchanged.) No third party optimization routine is required to find a solution - the code you find here is all you need to solve the problem. This code finds a solution in 30 seconds on a 333 MHz PC; other routines that solve this problem take much longer, on a more powerful machine, and with fewer variables. The significance of this routine is not necessarily that I have found a safer, faster, or better trajectory - but that I have done so with a shorter, more efficient, and simpler body of computer code.