当前位置:网站首页>曲柄滑块机构运动分析和参数优化
曲柄滑块机构运动分析和参数优化
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: Assertion

pytorch、tensorflow对比学习—计算图和微分机制

leetcode125 验证回文串

冲刺金九银十,Android开发面试(内含面试资料|面试题|源码)

Robot_Framework:断言

(2022 Niu Ke Duo School IV) N-Particle Arts (Thinking)

Selenium: Popup Handling

Qt Widget project loading example of qml

Selenium:弹窗处理

(Codeforce 757)E. Bash Plays with Functions(积性函数)
随机推荐
冲刺金九银十,Android开发面试(内含面试资料|面试题|源码)
CSP-S2019 Day1
Vsce package after the Command failed: NPM list - production - parseable - the depth = 99999 - loglevel = error exception
I met a shell script
JWL-11/2-99.9A电流继电器
Selenium: browser operation
Swastika line-by-line parsing and realization of the Transformer, and German translation practice (a)
USB3.0:VL817Q7-C0的LAYOUT指南(三)
Check控件
uva10825
vsce package 后出现 Command failed: npm list --production --parseable --depth=99999 --loglevel=error异常
Error: AttributeError: module 'matplotlib' has no attribute 'figure'
uva12326
PAT serie b write the number 1002
MySQL-Data Operation-Group Query-Join Query-Subquery-Pagination Query-Joint Query
2022.7.26 模拟赛
导致锁表的原因及解决方法
Selenium: Dropdown Box Actions
MySQL-DML language-database operation language-insert-update-delete-truncate
Causes and solutions of lock table