当前位置:网站首页>曲柄滑块机构运动分析和参数优化
曲柄滑块机构运动分析和参数优化
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、参考论文
略
边栏推荐
- Challenge 52 days to memorize Peppa Pig (Day 01)
- Selenium: upload and download files
- Asynchronous reading and writing of files
- Swastika line-by-line parsing and realization of the Transformer, and German translation practice (a)
- NUMPY
- NDK does not contain any platforms问题解决
- 中国的机器人增长
- matplotlib pyplot
- 七、MFC序列化机制和序列化类对象
- Seleniu:元素常用操作
猜你喜欢
随机推荐
NUMPY
字符中的第一个唯一字符
【翻译】确保云原生通信的安全:从入口到服务网及更远的地方
小白的0基础教程SQL: 关系数据库概述 02
(more than 2022 cattle school four) A - Task Computing + dynamic programming (sort)
After the image is updated, Glide loading is still the original image problem
Check控件
Selenium: upload and download files
Seleniu:元素常用操作
The solution to the inconsistency between the PaddleX deployment inference model and the GUI interface test results
(2022牛客多校四)K-NIO‘s Sword(思维)
PaddleX部署推理模型和GUI界面测试结果不一致的解决方法
MySQL-DML language-database operation language-insert-update-delete-truncate
零序电流继电器器JL-8C-12-2-2
leetcode125 Verify palindrome string
数据湖:数据同步工具NiFi
导致锁表的原因及解决方法
LeetCode 231. 2 的幂
2022年超全的Android面经(附含面试题|进阶资料)
pytorch、tensorflow对比学习—计算图和微分机制









