jump-dev / JuMP.jl

Modeling language for Mathematical Optimization (linear, mixed-integer, conic, semidefinite, nonlinear)
http://jump.dev/JuMP.jl/
Other
2.22k stars 393 forks source link

Multiple Ranges for variables #3715

Closed ymayer2006 closed 6 months ago

ymayer2006 commented 6 months ago

Welcome to JuMP! You can use this Github issue to suggest a new feature for JuMP.

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

Thanks for contributing to JuMP!

ymayer2006 commented 6 months ago

Is there a possibility to add multiple ranges for a specific variable, for example 0.4 <= x <= 1.6 or x = 0? I would really appreciate if someone could help me out

odow commented 6 months ago

Hi @ymayer2006,

If you're looking for "or x = 0" specifically, then use: https://jump.dev/JuMP.jl/stable/tutorials/linear/tips_and_tricks/#Semi-continuous-variables

p.s., these questions are better asked on our forum: https://jump.dev/forum. We try to reserve the GitHub issues for bug reports and feature requests.

odow commented 6 months ago

Closing because I don't know if there is anything actionable to do here. If you have more usage questions, please ask on the forum :smile: https://jump.dev/forum