Skip to content

Commit 62393b2

Browse files
committed
bug fix
1 parent 469c1f7 commit 62393b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/variables.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ function JuMP.build_variable(
2323
_error("Logical variables cannot have bounds.")
2424
elseif info.integer
2525
_error("Logical variables cannot be integer valued.")
26-
elseif info.has_fix && !isone(info.fix) && !iszero(info.fix)
27-
_error("Invalid fix value, must be 0 or 1.")
26+
elseif info.has_fix && !isone(info.fixed_value) && !iszero(info.fixed_value)
27+
_error("Invalid fix value, must be false or true.")
2828
elseif info.has_start && !isone(info.start) && !iszero(info.start)
29-
_error("Invalid start value, must be 0 or 1.")
29+
_error("Invalid start value, must be false or true.")
3030
end
3131

3232
# create the variable
33-
fix = info.has_fix ? Bool(info.fix) : nothing
33+
fix = info.has_fix ? Bool(info.fixed_value) : nothing
3434
start = info.has_start ? Bool(info.start) : nothing
3535
return LogicalVariable(fix, start)
3636
end

0 commit comments

Comments
 (0)