I want to write an optimization problem with equality constraint but the result is "Error using *
Inner matrix dimensions must agree."
I do not why there is such an error. Could you please tell me where is the cause?
Can you show us a complete reproducible example, complete with input data?