The error message is telling you that ModeloDeterministico
should be an instance of type JuMP.Model
, but you actually have a type. If you can create a reproducible example of the problem, it will be easier for us to figure out what went wrong.
Most likely, you have something like:
# This makes `ModeloDeterministico` just another name for the *type* Model
ModeloDerministico = Model
instead of:
# This actually creates a new *instance* of a `Model`
ModeloDerministico = Model()