Since it is unlikely that I will ever be able to code this myself, I did some more searching for an existing solution. I found the GPOPS software, which is a Matlab program for solving these sort of optimal control problems. Although there is still a lot to learn, one of the examples is a rocket launch with multiple stages. My aim is to learn this example and then create a clone of it with the DH-1 details. The input details will be determined by running CADAC4 and getting the velocity and position at stage separation. These will then be the inputs for the GPOPS run to determine the optimal path. It will be interesting to see how close the figures are to the book numbers! I will post some diagrams when I have gotten this done.
Running GPOPS
- GPOPS can be downloaded from Sourceforge. I am running it under Matlab R2009b under Ubuntu.
- Ensure that you have a large amount of swap space. I have had to increase mine to 16Gb.
- Run the 'gpopsSetup' command from the unzipped directory.
- Change to the 'examples/launch' directory and run 'launchMain' to start the run.
No comments:
Post a Comment