当前位置:网站首页>曲柄滑块机构运动分析和参数优化
曲柄滑块机构运动分析和参数优化
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、参考论文
略
边栏推荐
- Swastika line-by-line parsing and realization of the Transformer, and German translation practice (2)
- (2022 Niu Ke Duo School IV) K-NIO's Sword (Thinking)
- 2022年湖南工学院ACM集训第六次周测题解
- 微信小程序获取手机号phonenumber.getPhoneNumber接口开发
- LeetCode 27. 移除元素
- USB3.0:VL817Q7-C0的LAYOUT指南(二)
- (2022 Nioke Duo School IV) H-Wall Builder II (Thinking)
- WebSocket implements chat function
- pytorch、tensorflow对比学习—张量
- 2022/07/29 入职健海JustFE团队,我学到了高效开发(年中总结)
猜你喜欢

剑指 Offer 68 - II. 二叉树的最近公共祖先

JWL-11/2-99.9A电流继电器

SL-12/2过流继电器
![[target detection] YOLOv7 theoretical introduction + practical test](/img/ff/a83acbf9dd5cc2f907f3538d287842.png)
[target detection] YOLOv7 theoretical introduction + practical test

Hunan institute of technology in 2022 ACM training sixth week antithesis

移动应用恶意攻击激增500% 三六零天御为APP免费构建安全屏障

PAT serie b write the number 1002

leetcode43 字符串相乘

(Codeforce 757)E. Bash Plays with Functions(积性函数)
![[MySQL] 多表查询](/img/f0/c158750a5a84155ee82729daba2bb3.png)
[MySQL] 多表查询
随机推荐
Solve the problem of page flicker caused by browser scroll bars
小白的0基础教程SQL: 安装MYSQL 03
Robot_Framework: Assertion
微信小程序获取手机号phonenumber.getPhoneNumber接口开发
(2022牛客多校四)A-Task Computing (排序+动态规划)
微信小程序接口调用凭证(获取token)auth.getAccessToken接口开发
Selenium:上传、下载文件
CSP-S2019 Day1
uva10825
【音视频】srs直播平台搭建
NUMPY
ModuleNotFoundError: No module named 'tensorflow.keras' error message solution
DL-31/6电流继电器
Selenium: Popup Handling
微信小程序用户登录auth.code2Session接口开发
What should I do if the neural network cannot be trained?
Vsce package after the Command failed: NPM list - production - parseable - the depth = 99999 - loglevel = error exception
说说js中使用for in遍历数组存在的bug
I met a shell script
y83. Chapter 4 Prometheus Factory Monitoring System and Actual Combat -- Advanced Prometheus Alarm Mechanism (14)