📄 qprogram.m
字号:
% the program is with the quadratic programming
% please input the parameter matrices and the standard form of the matlab optimization:
input('the program is with the quadratic programming')
m=input('Please input the constraints number of the programming m=')
n=input('Please input the variant number of the programming n=')
H=input('Please input cost matrix of the objective function H(n,n)=')
c=input('Please input cost array of the objective function c(n)_T=')
A=input('Please input the coefficient matrix of the constraints A(m,n)=')
b=input('Please input the resource array of the program b(m)_T=')
x=quadprog(H,c,A,b);
input('The solution of the quadratic is:')
x
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -