File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,14 @@ function JuMP.build_variable(
23
23
_error (" Logical variables cannot have bounds." )
24
24
elseif info. integer
25
25
_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 ." )
28
28
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 ." )
30
30
end
31
31
32
32
# create the variable
33
- fix = info. has_fix ? Bool (info. fix ) : nothing
33
+ fix = info. has_fix ? Bool (info. fixed_value ) : nothing
34
34
start = info. has_start ? Bool (info. start) : nothing
35
35
return LogicalVariable (fix, start)
36
36
end
You can’t perform that action at this time.
0 commit comments