See Please read: make it easier to help you
I cant copy and paste your code so i cant run it to find the problem.
Whats the full text of the error message?
Try simplifying the problem. Does it solve without the objective? Do you get the same error if you delete all constraints?
Try to narrow down whats causing the issue and then post an example that someone can copy paste and trigger the same issue.