⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 binary.m

📁 国外专家做的求解LMI鲁棒控制的工具箱,可以相对高效的解决LMI问题
💻 M
字号:
function x = binary(x)
%BINARY Constrains variables to be binary (0/1)
%
%   F = BINARY(x) is used to a posteriori constrain 
%   variables to be binary, in contrast to BINVAR 
%   that declares variables as binary a priori.
%
%   NOTE
%    The binary constraint is imposed on the involved
%    decision variables, not on the actual SDPVAR object.
%
%   INPUT
%    x : SDPVAR object
%
%   OUTPUT
%    F : SET object
%
%   EXAMPLE
%    F = set(binary(x));             % Full verbose notation
%    F = binary(x);                  % Short notation
%    F = binary(x*pi)                % Equivalent to code above
%    solvesdp(G+set(binary(x)),obj)  % Add binary constraint on the fly
%
%   See also INTEGER, SET, SDPVAR, INTVAR, BINVAR

% Author Johan L鰂berg
% $Id: binary.m,v 1.3 2004/07/06 14:08:11 johanl Exp $

x.typeflag = 8;
x = lmi(x);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -