Help with optimization

It’s on github but I haven’t added the changes that I’ve discussed here. (git@github.com:lancejnelson/MatSim.jl.git)