% f = (x1-dx1)^2+(y1-dy1)^2 + (x2-dx2)^2+(y2-dy2)^2 + Rcost * ((theta1-dtheta1)^2 + (theta2-dtheta2)^2);
% x=[x1, y1, x2, y2, sinthe1, sinthe2];
% f = (x1-dx1)^2+(y1-dy1)^2 + (x2-dx2)^2+(y2-dy2)^2;
% x=[x1, y1, x2, y2];
% f = (x1-dx1)^2+(y1-dy1)^2 + (x2-dx2)^2+(y2-dy2)^2 + Rcost * ((sinthe1-sin(dtheta1))^2 + (sinthe2-sin(dtheta2))^2);
% x=[x1, y1, x2, y2, sinthe1, sinthe2];
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % rec1
% G(11,:) = -x1-a1*cos(theta1)-b1*sin(theta1);
% G(12,:) = -x1+a1*cos(theta1)-b1*sin(theta1);
% G(13,:) = -x1+a1*cos(theta1)+b1*sin(theta1);
% G(14,:) = -x1-a1*cos(theta1)+b1*sin(theta1);
%
% G(15,:) = -y1-a1*sin(theta1)-b1*cos(theta1);
% G(16,:) = -y1+a1*sin(theta1)-b1*cos(theta1);
% G(17,:) = -y1+a1*sin(theta1)+b1*cos(theta1);
% G(18,:) = -y1-a1*sin(theta1)+b1*cos(theta1);
%
% G(19,:) = -bbx+x1+a1*cos(theta1)+b1*sin(theta1);
% G(20,:) = -bbx+x1+a1*cos(theta1)-b1*sin(theta1);
% G(21,:) = -bbx+x1-a1*cos(theta1)-b1*sin(theta1);
% G(22,:) = -bbx+x1-a1*cos(theta1)+b1*sin(theta1);
%
% G(23,:) = -bby+y1-a1*sin(theta1)-b1*cos(theta1);
% G(24,:) = -bby+y1+a1*sin(theta1)+b1*cos(theta1);
% G(25,:) = -bby+y1-a1*sin(theta1)+b1*cos(theta1);
% G(26,:) = -bby+y1+a1*sin(theta1)-b1*cos(theta1);
%
% % rec2
% G(27,:) = -x2-a2*cos(theta2)-b2*sin(theta2);
% G(28,:) = -x2+a2*cos(theta2)-b2*sin(theta2);
% G(29,:) = -x2+a2*cos(theta2)+b2*sin(theta2);
% G(30,:) = -x2-a2*cos(theta2)+b2*sin(theta2);
%
% G(31,:) = -y2-a2*sin(theta2)-b2*cos(theta2);
% G(32,:) = -y2+a2*sin(theta2)-b2*cos(theta2);
% G(33,:) = -y2+a2*sin(theta2)+b2*cos(theta2);
% G(34,:) = -y2-a2*sin(theta2)+b2*cos(theta2);
%
% G(35,:) = -bbx+x2+a2*cos(theta2)+b2*sin(theta2);
% G(36,:) = -bbx+x2+a2*cos(theta2)-b2*sin(theta2);
% G(37,:) = -bbx+x2-a2*cos(theta2)-b2*sin(theta2);
% G(38,:) = -bbx+x2-a2*cos(theta2)+b2*sin(theta2);
%
% G(39,:) = -bby+y2-a2*sin(theta2)-b2*cos(theta2);
% G(40,:) = -bby+y2+a2*sin(theta2)+b2*cos(theta2);
% G(41,:) = -bby+y2-a2*sin(theta2)+b2*cos(theta2);
% G(42,:) = -bby+y2+a2*sin(theta2)-b2*cos(theta2);
% G(43,:) = theta1-1.57;
% G(44,:) = -theta1-1.57;
% G(45,:) = theta2-1.57;
% G(46,:) = -theta2-1.57;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
% % rec1
% G(11,:) = -x1-a1*sqrt(1-sinthe1^2)-b1*sinthe1;
% G(12,:) = -x1+a1*sqrt(1-sinthe1^2)-b1*sinthe1;
% G(13,:) = -x1+a1*sqrt(1-sinthe1^2)+b1*sinthe1;
% G(14,:) = -x1-a1*sqrt(1-sinthe1^2)+b1*sinthe1;
%
% G(15,:) = -y1-a1*sinthe1-b1*sqrt(1-sinthe1^2);
% G(16,:) = -y1+a1*sinthe1-b1*sqrt(1-sinthe1^2);
% G(17,:) = -y1+a1*sinthe1+b1*sqrt(1-sinthe1^2);
% G(18,:) = -y1-a1*sinthe1+b1*sqrt(1-sinthe1^2);
%
% G(19,:) = -bbx+x1+a1*sqrt(1-sinthe1^2)+b1*sinthe1;
% G(20,:) = -bbx+x1+a1*sqrt(1-sinthe1^2)-b1*sinthe1;
% G(21,:) = -bbx+x1-a1*sqrt(1-sinthe1^2)-b1*sinthe1;
% G(22,:) = -bbx+x1-a1*sqrt(1-sinthe1^2)+b1*sinthe1;
%
% G(23,:) = -bby+y1-a1*sinthe1-b1*sqrt(1-sinthe1^2);
% G(24,:) = -bby+y1+a1*sinthe1+b1*sqrt(1-sinthe1^2);
% G(25,:) = -bby+y1-a1*sinthe1+b1*sqrt(1-sinthe1^2);
% G(26,:) = -bby+y1+a1*sinthe1-b1*sqrt(1-sinthe1^2);
%
% % rec2
% G(27,:) = -x2-a2*sqrt(1-sinthe2^2)-b2*sinthe2;
% G(28,:) = -x2+a2*sqrt(1-sinthe2^2)-b2*sinthe2;
% G(29,:) = -x2+a2*sqrt(1-sinthe2^2)+b2*sinthe2;
% G(30,:) = -x2-a2*sqrt(1-sinthe2^2)+b2*sinthe2;
%
% G(31,:) = -y2-a2*sinthe2-b2*sqrt(1-sinthe2^2);
% G(32,:) = -y2+a2*sinthe2-b2*sqrt(1-sinthe2^2);
% G(33,:) = -y2+a2*sinthe2+b2*sqrt(1-sinthe2^2);
% G(34,:) = -y2-a2*sinthe2+b2*sqrt(1-sinthe2^2);
%
% G(35,:) = -bbx+x2+a2*sqrt(1-sinthe2^2)+b2*sinthe2;
% G(36,:) = -bbx+x2+a2*sqrt(1-sinthe2^2)-b2*sinthe2;
% G(37,:) = -bbx+x2-a2*sqrt(1-sinthe2^2)-b2*sinthe2;
% G(38,:) = -bbx+x2-a2*sqrt(1-sinthe2^2)+b2*sinthe2;
%
% G(39,:) = -bby+y2-a2*sinthe2-b2*sqrt(1-sinthe2^2);
% G(40,:) = -bby+y2+a2*sinthe2+b2*sqrt(1-sinthe2^2);
% G(41,:) = -bby+y2-a2*sinthe2+b2*sqrt(1-sinthe2^2);
% G(42,:) = -bby+y2+a2*sinthe2-b2*sqrt(1-sinthe2^2);
%
% G(43,:) = sinthe1-1;
% G(44,:) = -sinthe1-1;
% G(45,:) = sinthe2-1;
% G(46,:) = -sinthe2-1;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
% syms x1 x2;
% f = 2*x1^2+2*x2^2-2*x1*x2-4*x1-6*x2;
% x=[x1, x2];
%%
% syms x1 y1 x2 y2;
% f = (x1-1)^2+(y1+1)^2 + (11-x2)^2+(y2-8)^2;
% x=[x1, y1, x2, y2];
%%
% syms x1 x2 x3;
% f = x1^2 + x1*x2 + 2*x2^2 - 6*x1 - 2*x2 - 12*x3;
% x = [x1, x2, x3];
%%
% syms x1 x2;
% f = x1 + x2;
% x = [x1, x2];
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
% A=[1 1;1 5;-1 0;0 -1];
% b=[2 5 0 0]';
% G=[];
% x0=[0 0];
% Aeq=[];
% beq=[];
% label=1;
%%
% A=[-1 0 0 0; 0 -1 0 0; 1 0 0 0; 0 1 0 0; 0 0 -1 0; 0 0 0 -1; 0 0 1 0; 0 0 0 1];
% b=[-1 -1 9 9 -1 -1 9 9]';
% G=[];
% x0=[5 5 5 5];
% Aeq=[];
% beq=[];
% label=1;
%%
% A = [];
% b = [];
% G(1,:) = 2*x1^2 + x2^2 - 15;
% G(2,:) = -x1 + 2*x2 + x3 - 3;
% G(3,:) = -x1;
% G(4,:) = -x2;
% G(5,:) = -x3;
% x0 = [0 0 0];
% Aeq = [];
% beq = [];
% label = 0;
%%
% A = [];
% b = [];
% G(1,:) = x1^2 + x2^2 - 1;
% G(2,:) = x1^2 - x2;
% x0 = [0 1];
% Aeq = [];
% beq = [];
% label = 0;


Matlab领域
- 粉丝: 3w+
最新资源
- 孤岛型微电网中改进下垂控制策略:'虚拟阻抗与无功均分的应用'
- 医药洁净室温湿度串级PID控制:基于200smart PLC的创新实现与挑战 专业版
- 基于Vuejs框架构建的现代化前端单页面应用项目-包含热重载开发服务器和Webpack生产环境构建配置-通过npm脚本命令实现依赖安装开发调试与生产打包-使用vue-loader.zip
- MATLAB中灰狼算法与改狼算法对23种测试函数的性能探究及应用前景 系统版
- 基于混合决策规则与Wasserstein度量的分布式鲁棒多阶段框架:适应风电渗透下的机组不确定性承诺与调度策略优化
- 电力电子领域Z源逆变器并网闭环仿真的L滤波器动态性能分析与应用
- 单相有源Boost PFC功率因数矫正电路设计原理与应用(220V交流转400V直流,功率200W)
- 基于Abaqus与Matlab蜂群算法耦合的结构优化程序研究及其工程应用 - Abaqus
- 基于配置化数据表格与动态图表展示的交互式数据可视化工具-支持拖拽排序-自定义样式-实时预览-多格式导出-响应式布局-数据绑定-配置驱动-JSON导入导出-Excel兼容-数据筛选-.zip
- 电机控制领域FOC电流环PI参数自整定Simulink仿真模型及其应用
- 一个目标检测图像增强的示例脚本
- 基于遗产算法的多目标分布式电源选址定容策略仿真研究:以投资成本等三目标实现方案验证 - 多目标优化
- BabeLua,一款vs的lua开发软件
- (雷同的那个是营销号)YOLOv8检测模块组合优化改进(成功涨点):添加GAM注意力机制;添加小目标检测头;替换为Wise-IoU损失函数+完整web端展示(实现简单目标跟踪功能)
- 基于MATLAB的LSTM与分位数回归多输入单输出时间序列预测模型
- MATLAB实现电-气-热综合能源系统耦合优化调度模型及其应用 综合能源系统 (2025-08-24)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


