当前位置:网站首页>曲柄滑块机构运动分析和参数优化
曲柄滑块机构运动分析和参数优化
2022-08-01 05:25:00 【studyer_domi】
1、内容简介
略
465-可以交流、咨询、答疑
2、内容说明
略
数学公式参考了这个文档:曲柄滑块机构运动分析与力学计算 - 百度文库
3、仿真分析
clc
close all
clear
r = 3;
l = 16;
lameda = r/l;
w = 100;
t = 0:0.001:1;
v = w*r*(sin(w*t)+0.5*lameda*sin(2*w*t));
figure
plot(t,v)
xlabel t/s
ylabel 速度/m/s
% 为了计算最大值,由于fmincon是计算最小值,
% 故把数值转为负数,负数最小值求绝对值就是最大值
myfun = @(x)-100*x(1)*(0.5+sqrt(3)/4*x(1)/x(2));
x0 = [3,16]; % 初始值 r和l
A = [2.5 -1;1,-1;1 1]; % 不等式 r和l
b = [0;-10;20]; % A*x <= b
Aeq = [];
beq = []; % Aeq*x = b
lb = [0.5,2.5]; % r和l的下限值
ub = [10,25]; % r和l的上限值
options = optimset('Display','iter'); %显示每次迭代过程
[x, fval] = fmincon(myfun,x0,A,b,Aeq,beq,lb,ub,[],options) %调用最小值计算
% x就是优化的r和l fval就是计算的速度最大值
max_v = abs(fval)
r_opt = x(1);
l_opt = x(2);
lameda_opt = r_opt/l_opt;
v_opt = w*r_opt*(sin(w*t)+0.5*lameda_opt*sin(2*w*t));
figure
plot(t,v,t,v_opt)
xlabel t/s
ylabel 速度/m/s
title 优化对比
legend('优化前','优化后')
4、参考论文
略
边栏推荐
- Robot_Framework: commonly used built-in keywords
- torch
- Causes and solutions of lock table
- DL-31/6电流继电器
- AspNet.WebApi.Owin custom Token request parameters
- 剑指 Offer 68 - II. 二叉树的最近公共祖先
- (2022 Nioke Duo School IV) D-Jobs (Easy Version) (3D prefix or)
- LeetCode 1189. “气球” 的最大数量
- Vsce package after the Command failed: NPM list - production - parseable - the depth = 99999 - loglevel = error exception
- WebSocket implements chat function
猜你喜欢
Robot_Framework:关键字
(2022牛客多校四)H-Wall Builder II(思维)
leetcode43 string multiplication
WPF项目-初步了解数据绑定 binding
Qt Widget project loading example of qml
(more than 2022 cattle school four) A - Task Computing + dynamic programming (sort)
(2022牛客多校四)D-Jobs (Easy Version)(三维前缀或)
MySQL-DML language-database operation language-insert-update-delete-truncate
2022/07/29 入职健海JustFE团队,我学到了高效开发(年中总结)
Hunan institute of technology in 2022 ACM training sixth week antithesis
随机推荐
2022.7.26 Mock Competition
NDK does not contain any platforms problem solving
Jupyter shortcuts
Selenium: Manipulating Cookies
Seleniu: Common operations on elements
Selenium:元素定位
Selenium:元素判断
说说js中使用for in遍历数组存在的bug
Selenium: JS operation
(2022 Nioke Duo School IV) D-Jobs (Easy Version) (3D prefix or)
ORACLE 实现另外一个用户修改包(package)
Solve the problem of page flicker caused by browser scroll bars
Jupyter shortcuts
pytorch、tensorflow对比学习—功能组件(优化器、评估指标、Module管理)
字符中的第一个唯一字符
WebSocket implements chat function
剑指 Offer 68 - I. 二叉搜索树的最近公共祖先
y83. Chapter 4 Prometheus Factory Monitoring System and Actual Combat -- Advanced Prometheus Alarm Mechanism (14)
Use controls as brushes to get bitmap code records
NUMPY