Skip to content
Snippets Groups Projects
Unverified Commit 01762bcc authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Use anonamous extra variables

parent 2d8d9e4b
No related branches found
No related tags found
1 merge request!2Define variables through new @defvar macro
...@@ -66,7 +66,7 @@ function build_sequence(f::Function, scanner::Union{Nothing, Scanner}, model::Mo ...@@ -66,7 +66,7 @@ function build_sequence(f::Function, scanner::Union{Nothing, Scanner}, model::Mo
end end
optimize!(model) optimize!(model)
while termination_status(model) == INVALID_MODEL while termination_status(model) == INVALID_MODEL
@variable(model, x[i=1:10]) @variable(model)
optimize!(model) optimize!(model)
end end
if termination_status(model) in (LOCALLY_SOLVED, OPTIMAL) if termination_status(model) in (LOCALLY_SOLVED, OPTIMAL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment