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

📄 linearcon_data.m

📁 一个matlab的将军模型
💻 M
字号:
function [CE,dE,CI,dI] = linearcon_data(con)

% Retrieve constraint matrices and vectors from linear constraint object 
%
% Syntax:
%   "[CE,dE,CI,dI] = linearcon_data(con)"
%
% Description:
%   "linearcon_data(con)" returns matrices "CE" and "CI" and vectors "dE"
%   and "dI" describing the constraints represented by linear constraint
%   object "con".  The constraints are expressed as CEx = dE and CIx <= dI. 
%
% Examples:
%   Given the linear constraint object "con" representing a square in the
%   plane x3 = 0 with corners at (x1,x2) pairs (2,1), (2,3), (4,3), and (4,1), 
%
%
%
%   "[CE,dE,CI,dI] = linearcon_data(con"
%
%
%
%   will return 
%
%
%
%   "CE = [0 0 1]"
%
%   "dE = 0"
%
%   "CI = [1 0 0;-1 0 0;0 1 0;0 -1 0]"
%
%   "dI = [4;-2;3;-1]"
%
% See Also:
%   linearcon

CE = con.CE;
dE = con.dE;
CI = con.CI;
dI = con.dI;

⌨️ 快捷键说明

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