Optimization problem with integration

I don’t know the details of your problem, so I can’t say. But not CVX.

Perhaps post on https://or.stackexchange.com/ or https://scicomp.stackexchange.com/ , When you do so, provide as many details as you can on the problem formulation. otherwise no one will be able to help you.