There are a few reasons why this could be happening.
Please read Please read: make it easier to help you and provide a working example of the code you are trying to improve. It is impossible to offer advice without knowing what you’ve tried!
Make sure to include what versions of Julia/JuMP you are using.