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

📄 ctp65.m

📁 基于matlab的约束非线性规划算法库
💻 M
字号:
function [c, A] = ctp65(x, ctrl)
%Call: [c A]=ctp65(x,ctrl)
%Evaluate the constraints and the corresponding
%Jacobian for the problem below at x.
%if ctrl>0 only the Jacobian is computed.
%if ctrl == 0 only c(x) is computed.
%The problem is defined as c(x)>=0
%
if ctrl == 0
    c(1)=-x(1)^2-x(2)^2-x(3)^2+48;
    c=c(:);
    A=[];
else
    c=[];
    A=[];
end

⌨️ 快捷键说明

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