Feature/102 5 wire up api for optimization analyses

https://trello.com/c/lT6brwuV/102-5-wire-up-api-for-optimization-analyses