Feature/102 5 wire up api for optimization analyses

[Trello card](https://trello.com/c/lT6brwuV/102-5-wire-up-api-for-optimization-analyses)