# The conflict of variables using @build\_constraint

**URL:** https://discourse.julialang.org/t/the-conflict-of-variables-using-build-constraint/62998
**Category:** Optimization (Mathematical)
**Created:** [June 16, 2021, 9:50am UTC](https://discourse.julialang.org/t/the-conflict-of-variables-using-build-constraint/62998 "2021-06-16T09:50:39Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)
#### Post date: [June 17, 2021, 1:26am UTC](https://discourse.julialang.org/t/the-conflict-of-variables-using-build-constraint/62998/4 "2021-06-17T01:26:40Z")

</div>

Your code is not valid, so I’m not sure what you’re trying to do. Please make a reproducible example:

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

In your function `x <= 2` refers to the `x` binding created by `model2`. if you want `x` from `model1`, call the inner x something different so the binding doesn’t get over-written, or use `model1[:x]`.

---

_[View the full topic](https://discourse.julialang.org/t/the-conflict-of-variables-using-build-constraint/62998)._
