# Defining a JuMP binary variable

**URL:** https://discourse.julialang.org/t/defining-a-jump-binary-variable/93904
**Category:** Optimization (Mathematical)
**Created:** [February 2, 2023, 1:45am UTC](https://discourse.julialang.org/t/defining-a-jump-binary-variable/93904 "2023-02-02T01:45:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Stuart\_Rogers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stuart_rogers/32/10694_2.png) [@Stuart\_Rogers](https://discourse.julialang.org/u/Stuart_Rogers)
#### Post date: [February 2, 2023, 1:45am UTC](https://discourse.julialang.org/t/defining-a-jump-binary-variable/93904/1 "2023-02-02T01:45:07Z")

</div>

Is there a difference in performance within JuMP, MOI, and/or the third-party MILP solver between the two possible ways of defining a binary variable given below?

1. @variable(m, b, Int, lower\_bound = 0, upper\_bound = 1)
2. @variable(m, b, Bin)

---

<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: [February 2, 2023, 4:44am UTC](https://discourse.julialang.org/t/defining-a-jump-binary-variable/93904/2 "2023-02-02T04:44:44Z")

</div>

In general, no, they’re the same.
