ctp269.m

来自「基于matlab的约束非线性规划算法库」· M 代码 · 共 11 行

M
11
字号
function [c, A] = ctp269(x, ctrl)
%Call: [c A]=ctp269(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)+3*x(2);
c(2)=x(3)+x(4)-2*x(5);
c(3)=x(2)-x(5);
c=c(:);
A=[];

⌨️ 快捷键说明

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