Skip to content

Commit

Permalink
Merge f494477 into b91e2ab
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Aug 16, 2020
2 parents b91e2ab + f494477 commit d8ad437
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/macros.jl
Expand Up @@ -719,12 +719,14 @@ adds groups of constraints at once, in the same fashion as @constraint. The mode
@doc """
@variables(m, args...)
Adds multiple variables to model at once, in the same fashion as `@variable` macro. The model must be the first argument, and multiple variables can be added on multiple lines wrapped in a `begin ... end` block. For example:
Adds multiple variables to model at once, in the same fashion as `@variable`
macro. The model must be the first argument, and multiple variables can be added
on multiple lines wrapped in a `begin ... end` block. For example:
@variables(m, begin
x
y[1:2] >= 0
z, Bin, (start = 0)
y[i = 1:2] >= 0, (start = i)
z, Bin, (start = 0, base_name = "Z")
end)
!!! note
Expand Down

0 comments on commit d8ad437

Please sign in to comment.