📄 ctp43.m
字号:
function [c, A] = ctp43(x, ctrl)
%Call: [c A]=ctp43(x,ctrl)
%Evaluate both the constraints and the corresponding
%Jacobian if ctrl>0, for the problem below at x
%The problem is defined as c(x)>=0
%
c(1)=-x(1)^2-x(2)^2-x(3)^2-x(4)^2-x(1)+x(2)-x(3)+x(4)+8;
c(2)=-x(1)^2-2*x(2)^2-x(3)^2-2*x(4)^2+x(1)+x(4)+10;
c(3)=-2*x(1)^2-x(2)^2-x(3)^2-2*x(1)+x(2)+x(4)+5;
c=c(:);
A=[];
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -