Skip to content

Commit

Permalink
Output output_var at the right place with =.
Browse files Browse the repository at this point in the history
  • Loading branch information
dourouc05 committed Sep 2, 2021
1 parent c8be983 commit 7866175
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FlatZinc/export.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,17 @@ end
# Variable printing.

function write_variable(io::IO, name::String, s::MOI.EqualTo{Float64})
print(io, "var float: $(name) = $(s.value) :: output_var;")
print(io, "var float: $(name) :: output_var = $(s.value);")
return nothing
end

function write_variable(io::IO, name::String, s::MOI.EqualTo{Int})
print(io, "var int: $(name) = $(s.value) :: output_var;")
print(io, "var int: $(name) :: output_var = $(s.value);")
return nothing
end

function write_variable(io::IO, name::String, s::MOI.EqualTo{Bool})
print(io, "var bool: $(name) = $(s.value) :: output_var;")
print(io, "var bool: $(name) :: output_var = $(s.value);")
return nothing
end

Expand Down

2 comments on commit 7866175

@dourouc05
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/44322

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.4.2 -m "<description of version>" 7866175393471404bf6c321482f603bb3a2b7181
git push origin v0.4.2

Please sign in to comment.