Dynamic-Calibration/utils/YALMIP-master/extras/@ncvar/false.m

8 lines
211 B
Mathematica
Raw Normal View History

2019-12-18 11:25:45 +00:00
function x = false(x)
% FALSE Constrains a binary variable to be false (0)
%
% FALSE(x) returns the constraint x<=0.5.
%
% See also SDPVAR/TRUE, SDPVAR/AND, SDPVAR/OR, SDPVAR/NOT, BINVAR, BINARY
x = (x<=0.5);