# JuMPChance can not be added

**URL:** <https://discourse.julialang.org/t/jumpchance-can-not-be-added/72151>\
**Category:** Optimization (Mathematical)\
**Tags:** question\
**Created:** [November 27, 2021, 4:20am UTC](https://discourse.julialang.org/t/jumpchance-can-not-be-added/72151 "2021-11-27T04:20:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xuekui\_wang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xuekui_wang/32/30746_2.png) [@Xuekui\_wang](https://discourse.julialang.org/u/Xuekui_wang)\
**Post date:** [November 27, 2021, 4:20am UTC](https://discourse.julialang.org/t/jumpchance-can-not-be-added/72151/1 "2021-11-27T04:20:39Z")

</div>

When I add JuMPChance, there are some errors:

```julia
(@v1.6) pkg> add JuMPChance
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package JuMP [4076af6c]:
 JuMP [4076af6c] log:
 ├─possible versions are: 0.18.3-0.22.0 or uninstalled
 ├─restricted to versions * by an explicit requirement, leaving only versions 0.18.3-0.22.0
 ├─restricted by compatibility requirements with PowerModelsAnnex [6e471128] to versions: [0.18.3-0.18.6, 0.19.1-0.22.0]
 │ └─PowerModelsAnnex [6e471128] log:
 │ ├─possible versions are: 0.1.4-0.8.1 or uninstalled
 │ ├─restricted to versions * by an explicit requirement, leaving only versions 0.1.4-0.8.1
 │ └─restricted by compatibility requirements with PowerModels [c36e90e8] to versions: [0.2.2-0.2.6, 0.4.0-0.4.4, 
0.6.0-0.7.1] or uninstalled, leaving only versions: [0.2.2-0.2.6, 0.4.0-0.4.4, 0.6.0-0.7.1]
 │ └─PowerModels [c36e90e8] log:
 │ ├─possible versions are: 0.8.0-0.19.1 or uninstalled
 │ ├─restricted to versions * by an explicit requirement, leaving only versions 0.8.0-0.19.1
 │ ├─restricted by compatibility requirements with PowerModelsAnnex [6e471128] to versions: 0.8.1-0.19.1      
 │ │ └─PowerModelsAnnex [6e471128] log: see above
 │ └─restricted by compatibility requirements with PowerModelsACDC [ff45984e] to versions: [0.12.2-0.13.2, 0.15.3, 0.17.0-0.18.4]
 │ └─PowerModelsACDC [ff45984e] log:
 │ ├─possible versions are: 0.1.0-0.4.0 or uninstalled
 │ └─restricted to versions * by an explicit requirement, leaving only versions 0.1.0-0.4.0
 ├─restricted by compatibility requirements with PowerModelsACDC [ff45984e] to versions: 0.18.3-0.21.10, leaving only versions: [0.18.3-0.18.6, 0.19.1-0.21.10]
 │ └─PowerModelsACDC [ff45984e] log: see above
 ├─restricted by compatibility requirements with PowerModels [c36e90e8] to versions: 0.19.1-0.21.10
 │ └─PowerModels [c36e90e8] log: see above
 └─restricted by compatibility requirements with JuMPChance [bbd82366] to versions: 0.18.3-0.18.6 — no versions left └─JuMPChance [bbd82366] log:
     ├─possible versions are: 0.5.0 or uninstalled
     └─restricted to versions * by an explicit requirement, leaving only versions 0.5.0

```

What should I do?

---

<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:** [November 27, 2021, 5:56am UTC](https://discourse.julialang.org/t/jumpchance-can-not-be-added/72151/2 "2021-11-27T05:56:54Z")

</div>

Per the README: [GitHub - mlubin/JuMPChance.jl: A JuMP extension for probabilistic (chance) constraints](https://github.com/mlubin/JuMPChance.jl#jumpchance)

> **JuMPChance is no longer actively maintained. It is compatible with JuMP 0.18 and earlier.**

I’d advise you against using JuMPChance. You should instead manually perform the reformulations for chance constraints.

---

<div class="post-metadata">

**Author:** ![Xuekui\_wang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xuekui_wang/32/30746_2.png) [@Xuekui\_wang](https://discourse.julialang.org/u/Xuekui_wang)\
**Post date:** [November 27, 2021, 7:22am UTC](https://discourse.julialang.org/t/jumpchance-can-not-be-added/72151/3 "2021-11-27T07:22:51Z")

</div>

Thank you for your quick reply. I didn’t take this sentence seriously.  
In this way, I have to convert the problem of chance constraints by myself, however, I am not very familiar with Julia’s probability function.
