I want to minimize my objective function in loop, but I cant.
I receive this, and I don’t know why, because all of the variable and parameters are specific.
Error using cvxprob/newobj (line 24)
An objective has already been supplied for this problem.
Error in minimize (line 21)
newobj( prob, ‘minimize’, x );
Error in Untitled (line 10)