Completed trajopt