# Variables declaration in JuliaPro 1.5.2-1

**URL:** <https://discourse.julialang.org/t/variables-declaration-in-juliapro-1-5-2-1/47802>\
**Category:** Optimization (Mathematical)\
**Tags:** question\
**Created:** [October 5, 2020, 4:52pm UTC](https://discourse.julialang.org/t/variables-declaration-in-juliapro-1-5-2-1/47802 "2020-10-05T16:52:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [October 5, 2020, 5:38pm UTC](https://discourse.julialang.org/t/variables-declaration-in-juliapro-1-5-2-1/47802/2 "2020-10-05T17:38:21Z")

</div>

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](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757) of the problem, it will be easier for us to figure out what went wrong.

Most likely, you have something like:

```julia
# This makes `ModeloDeterministico` just another name for the *type* Model
ModeloDerministico = Model

```

instead of:

```julia
# This actually creates a new *instance* of a `Model`
ModeloDerministico = Model()

```

---

_[View the full topic](https://discourse.julialang.org/t/variables-declaration-in-juliapro-1-5-2-1/47802)._
