Implementing the trade study resume function in user created optimization algorithms