当前位置:网站首页>曲柄滑块机构运动分析和参数优化
曲柄滑块机构运动分析和参数优化
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、参考论文
略
边栏推荐
- Selenium:浏览器操作
- [MySQL] 多表查询
- Robot_Framework: Assertion
- (2022牛客多校四)D-Jobs (Easy Version)(三维前缀或)
- pytroch、tensorflow对比学习—搭建模型范式(构建模型方法、训练模型范式)
- Selenium: form switching
- 第5章——以程序方式处理MySQL数据表的数据
- Induction jian hai JustFE 2022/07/29 team, I learned the efficient development summary (years)
- 图片更新之后Glide加载依旧是原来的图片问题
- NDK does not contain any platforms问题解决
猜你喜欢

Malicious attacks on mobile applications surge by 500%

DL-31/6电流继电器

Robot_Framework:断言

WPF入门项目必知必会-初步了解数据绑定 binding

【MySQL必知必会】 表的优化 | 充分利用系统资源

(2022牛客多校四)K-NIO‘s Sword(思维)
![[target detection] YOLOv7 theoretical introduction + practical test](/img/ff/a83acbf9dd5cc2f907f3538d287842.png)
[target detection] YOLOv7 theoretical introduction + practical test

类神经网络训练不起来怎么办

Dialogue with the father of MySQL: One excellent programmer is worth 5 ordinary programmers

(2022 Nioke Duo School IV) D-Jobs (Easy Version) (3D prefix or)
随机推荐
混合型界面:对话式UI的未来
Selenium:下拉框操作
Selenium: Manipulating Cookies
Selenium:弹窗处理
ApiFile
[target detection] YOLOv7 theoretical introduction + practical test
Selenium: upload and download files
DL-31/6电流继电器
Talk about the bugs in using for in to traverse the array in js
(2022 Niu Ke Duo School IV) N-Particle Arts (Thinking)
Selenium: Element wait
Selenium:鼠标、键盘事件
Dialogue with the father of MySQL: One excellent programmer is worth 5 ordinary programmers
Seleniu: Common operations on elements
Seleniu:元素常用操作
Robot_Framework:常用内置关键字
ORACLE 实现另外一个用户修改包(package)
AspNet.WebApi.Owin 自定义Token请求参数
pytroch、tensorflow对比学习—使用GPU训练模型
4D line-by-line analysis and implementation of Transformer, and German translation into English (3)