MECH201 Engineering Analysis

控制障碍函数(Control Barrier Function,CBF) 二、示例 使用一个经典简单的示例讲解CBF的推导 阅读详情

University of Wollongong

Faculty of Engineering and Information Sciences

MECH201 Engineering Analysis

Spring Session – 2024

Assignment 1

Rules:

1.The assignment could be completed individually or by a group of 2 to 3 students. The group formation is your own responsibility. Members may be from the same or different tutorial groups.

2.No collaboration between groups is permitted. Any case of plagiarism (including Open AI) will be penalized, and students should make themselves aware of the university policies regarding plagiarism (see subject outline under University and Faculty Policies)

3.The assignment is due on Friday, 30 August and submitted on Moodle. The assignment should be submitted to Moodle. Late submission will incur a penalty as described in the subject outline,

4.If the assignment is completed by group, a statement indicating the effort or contribution to the assignment by each member and signed by all members must be included at the beginning of the report, or all students agree that they have contributed equally to the report –add a statement at the front of the report, signed by all members.

5.Please make sure your MATLAB code is well commented to ensure readability and that your variable and function names are understandable. Use the lecture and tutorial examples for guidance. Scripts without comments and badly named variables will be graded poorly. 

6.All MATLAB code (script files and function files) must be uploaded into Moodle as part of your report. 

Question 1: (30 marks)

According to Archimedes principle, the buoyancy forces is equal to the weight of fluid displaced by the submerged portion of an object. For the sphere depicted in Fig. 1, r = 1 m, = density of sphere = 200 kg/m3, and = density of water = 1000 kg/m3. Note the volume of the above-water portion of the sphere can be computed with .

Fig. 1

(a)Set up a mathematical model to determine the height h of the portion that is above water.

(b)Choose a proper numerical method and calculate the height h by hand. 

(It is requested to justify the choice of the method and show the detailed calculation procedure in your report. Three Iterations are requested to be calculated.)

(c)Develop an M-file for the numerical method in Item (b) without the use of MATLAB built-in function to determine the height h (here the code should be terminated on your defined error criteria)

(The M-file must be included in the report, and the developed code must be submitted for checking)

(d)Choose a proper MATLAB built-in function to determine the height h.

(The M-file must be included in the report, and the developed code must be submitted for checking)

Question 2: (40 marks)

An automobile company has two versions of the same model car for sale, a two-door coupe and the full-size four door. These two versions yield different profits to the company. Their production involves both time and on-site storage constraints. Also, when developing a production plan, it is necessary to consider the number of consumers and their demand for the two versions of cars. All these factors are listed below.

   Two-door   Four-door   Availability

Profit   $ 13,500/car   $15,000/car   

Production time   15 hr/car   20 hr/car   8,000 hr

Storage   400 cars   350 cars   

Consumer demand   700/car   500/car   240,000

(a)Formulate the problem as a linear programming problem to decide how many cars of each design should be produced to maximise the profit. 

(b)Solve the above linear programming problem by hand using Simplex method. 

(It is requested to show the details of Simplex tableau calculation, pivoting, optimality check and Gauss-Jordan elimination)

(c)Develop an M-file without the use of MATLAB built-in function to determine the number of cars of each version should be produced to maximise the profit. In your MATLAB code, you need to implement the Simplex method using your own code.

(The M-file must be included in the report and the developed code must be submitted for checking)

(d)Choose a proper MATLAB built-in function to solve the problem and compare results with (b) and (c).

(The M-file must be included in the report, and the developed code must be submitted for checking)

Question 3: (30 marks)

An investigator has reported the data tabulated below. It is known that such data can be modelled by the following equation:

where a and b are parameters. 

x   1   2   3   4   5

y   0.5   2   2.9   3.5   4

(a)Conduct a nonlinear exponential function curve fitting to determine the parameters of a and b.         

(It is requested to justify the methodology and show the detailed calculation procedure in your report)

(b)Create a function M-file to fit this exponential function relation to the data and return a and b. Finally, predict the y at x = 2.6 in your program using a and b obtained.

(The M-file must be included in the report, and the developed code must be submitted for checking)

(c)Choose a proper MATLAB built-in function(s) to find the best polynomial and fit the data. 

(The M-file must be included in the report, and the developed code must be submitted for checking. It is requested to justify why the chosen order of the polynomial is the best.

(d)Compare the curves which developed in (b) and (c), and with the original experiment data. The two developed curves and the experimental data are to be plotted together in a clearly labelled figure, in which the experimental data is drawn with blue ‘*’ signs; curve developed in (b) with a red solid line, and curve developed in (c) with a black dash line. Label the x axis as ‘X’, the y axis as ‘Y’, and the title as ‘Curve fitting’. 

直流电源滤波电路的设计与优化:从基础原理到高效应用 本文深入探讨直流电源滤波电路的设计与优化,从基础原理到高效应用全面解析。重点介绍电容滤波和电感滤波的工作原理及实战设计要点,分享复合滤波电路的进阶技巧,并提供常见问题排查指南。文章还涵盖现代滤波技术的新发展,如有源滤波和数字控制滤波的应用,帮助工程师提升电源系统的稳定性和效率。 阅读详情

相关推荐

Rider高效调试UE引擎:无需编译源码的符号配置指南

本文提供了一份详尽的Rider高效调试UE引擎指南,核心在于无需编译源码即可配置调试符号。通过Epic启动器下载官方PDB文件,并在Rider中正确配置外部符号服务器路径,开发者能在10分钟内实现对引擎内部代码(如AActor::Tick)的源码级断点调试、变量查看和调用堆栈分析,极大提升问题排查效率。

weixin_29011239的博客 343

Jackson 序列化 / 反序列化注解 完整版笔记

Jackson 序列化 / 反序列化注解 完整版笔记

handsome_sai的博客 307

【实战指南】OpenClaw 使用 Bird Skill 接入 X(Twitter)的终极省心方案:告别每次都要手动喂 Cookie 的痛苦

OpenClaw 使用 Bird Skill 接入 X(Twitter)的终极省心方案:告别每次都要手动喂 Cookie 的痛苦

hampeter的博客 1803

Web 版翻译者资料库

本项目是桌面版《翻译者资料库》的 Web 移植版,基于 Spring Boot 3.3、Thymeleaf、Bootstrap 5.3 与 MySQL 8.0 构建。它面向翻译写作提供资料、词汇、句库、文本工具、对照制作、查找、备份恢复及旧库迁移等功能,完整继承桌面版核心业务规则,支持一键启动与离线访问。

howard2005的专栏 185

手把手教你用GD32F407VET6的EXMC驱动外部SRAM,搞定大内存需求

本文详细介绍了如何使用GD32F407VET6的EXMC外设驱动外部SRAM,解决嵌入式开发中的大内存需求问题。通过硬件连接方案、EXMC时序配置与初始化步骤,以及软件集成与内存管理技巧,帮助开发者快速实现内存扩展。特别适合需要处理图形显示缓冲、音频处理等大内存场景的GD32F407开发者。

weixin_30752699的博客 348

使用mindie:2.0.RC2-800I-A2-py311-openeuler24.03-lts制作一个通用的模型推理性能测试的镜像

本文详细介绍了在NPU环境下进行模型推理性能测试的完整流程。首先配置了测试所需的环境和设备信息,包括Python 3.10.9和3.11.6版本、测试脚本和镜像文件。然后分步骤说明了镜像制作过程:创建特权容器、安装Python 3.10.9、配置VLLM环境,并详细描述了测试容器的启动方法。最后提供了镜像打包和使用指南,包括如何加载镜像、启动容器、运行测试脚本(以DeepSeek-32B模型为例)以及更换测试模型的步骤。整个过程涉及环境变量配置、权限设置和服务启动等关键操作。

m0_50105717的博客 1015

MCP 协议会成为前端 AI 工程的标准接口吗?

MCP(Model Context Protocol)正在成为连接 AI 模型与外部工具、数据源的一层通用协议。本文从 MCP 的核心机制出发,分析它在浏览器与前端工程中的落地边界,讨论它能否成为前端 AI 工程的标准接口,并给出当下更务实的架构选择建议。

m0_62937412的博客 387

uniapp [安卓苹果App端] - 详细实现下载文件保存到用户手机本地,指定文件存储位置路径及文件夹名称下载并保存,Uniapp app端将文件下载保存并储存到指定目录(手机系统存储空间权限检测)

uni-app,安卓Android,苹果ios,安卓app端,苹果App端,uniapp苹果安卓app,app端下载文件,移动端文件下载,并保存到手机本地存储空间,uniapp下载文件保存到手机本地,iOS下载文件怎么保存,系统读写存储空间权限,下载文件到本地详细流程及源代码,保存自定义目录,uniapp,实现下载文件并保存到本地,文件后缀,如何指定手机的存放目录路径url,点击下载文档到手机中并提示存储位置,如何在uniapp中实现文件下载功能,uniApp文件下载,怎么指定文件保存目录,下载报错,没反应

🏆 前端领域优质创作者 1万+

LangGraph 本地 build 频频翻车,最终在服务器跑通流式对话

先说结论:我本地那个,一次都没成功过。三次,三次,全挂在拉镜像上。而顺得像刚上过油。这就很像我高中那辆自行车:骑着能走,一上锁就坏。那天晚上我盯着终端里那行红字看了很久,想的不是技术方案,想的是——为什么同一个工具,可以一边让我觉得自己很行,一边让我觉得自己不太行。

人工智能AI技术 323

〔重庆理工大学〕大学物理实验--液体表面张力系数的测定

每个老师要求不同,实验报告内容和数据仅供参考。

Pretty Boy Fox的博客 2806

chromium通信系统-ipcz系统(二)-ipcz系统代码实现-同Node通信

在chromium通信系统-mojo系统(一)-ipcz系统基本概念一文中我们介绍了ipcz的基本概念。 本章我们来通过代码分析它的实现。 handle系统 为了不对上层api暴露太多细节,实现解耦,也方便于传输,ipcz系统使用handle表示一个对象,handle类似于文件描述符,用IpczHandle类型表示ipcz系统内的一个对象。一个可以用IpczHandle 句柄表示的对象必须是APIObject子类。APIObject数据结构如下 class APIObject : public RefCou

woai110120130的专栏 1775

带着小白学习-微服务-6 实战:网关

地址栏输入:http://localhost:8088/goods/index,这时候就不是到8100端口去调用了,而是8088直接通过路由转发,分别到nacos对应的goods对应的服务中区调用。** 可以看出,这里将前面已经正常运行的server-store子工程(库存服务,服务提供方),server-goods子工程(商品服务,服务消费方)。(1)uri: lb://store 代表要到nacos的注册中心的服务列表中找到服务名为store的微服务;,网关是做路由转发,不是服务调用;

wdyan297的博客 248

MAC-电脑中的user文件夹在哪?

MAC-电脑中的user文件夹在哪?

兴趣是最好的老师 1万+

海外平台频繁弹验证?从 DNS、WebRTC 到浏览器指纹的环境异常排查清单

在运营多地区海外平台账号时,即使代理节点通畅、TCP 握手成功,仍可能遇到频繁人机验证、地区限制、播放失败等异常。核心结论是:这类问题往往不在网络传输层,而在浏览器环境参数与网络出口之间的逻辑自洽性。本文从 DNS 泄漏、WebRTC 穿透、时区与语言匹配、Canvas/WebGL 指纹、TLS 特征五个维度,给出一份可复现的环境异常排查清单,并对比个人手动配置与工程化环境管理方案的适用边界。适用于跨境运营、多账号运维团队。

P1Browser【p1指纹浏览器】的博客 237

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

IMSL CNL 7.0.0 (x86-64)Crack

IMSL CNL 7.0.0 (x86-64)Crack intel的算法库破解文件,这是C++版本的破解文件

智能问诊的流程

本文介绍基于FastAPI构建的医疗多Agent系统MediAgent,通过症状分析、诊断推理与治疗建议等模块协同,实现从问诊到报告生成的完整工作流。系统采用前后端分离架构,结合MySQL、RabbitMQ与Docker实现工程化部署,支持异步化验结果接入。虽当前状态暂存于内存,但已具备可扩展性,未来可通过Redis持久化、消息队列联动及医疗安全机制完善,应用于慢病管理、辅助决策等场景,推动AI在医疗流程中的落地应用。

Joey 的工作空间~ 787

RU DOS版、EFI版32bit/64bit BIOS常用工具

DOS版、EFI版的RU工具,可用来查看IO、MEM、PCI、SMBIOS等资源。亲测在EFI SHELL下可用。

SSD测试工程精通系列 17|TRIM与UNMAP洪峰下的GC竞争(命令风暴与后台任务调度)

本文深入探讨NVMe SSD在面临TRIM/UNMAP命令洪峰时,后台垃圾回收(GC)与前端IO的竞争机制。从协议解析、固件调度、硬件架构到物理层信号,全面剖析命令风暴对QoS和WAF的影响。结合Samsung、Micron、Kioxia等厂商实测数据与失效案例,提供从测试注入、仪器抓取到工程取舍的全链路验证方案,助力资深测试工程师攻克存储性能断崖难题。

专注分享DPU、RDMA智能网卡/SSD(固态硬盘)产品测试与优化 249

ET2012新版免狗免安装绿色软件

ET2012新版免狗免安祖昂绿色软件。,新界面,新视觉,

基于 YOLOv8 的森林火灾检测系统(Web 版)

本项目面向林区早期火情识别场景,使用YOLOv8完成火焰(Fire)与烟雾(Smoke)两类目标的检测模型训练,并以FastAPI构建 Web 检测平台,把模型能力封装为可直接登录使用的系统。平台除常规的图片、批量、视频、摄像头检测外,还提供同图多权重对比、数据集浏览与标注核对、模型热切换,以及把训练搬到网页上的能力:可在浏览器配置超参数发起真实训练,训练中在线调整学习率、查看进度与动态曲线,训练完成后下载产物或直接应用到检测。

Michael_Jay的博客 71

HTML5 History API 详解:前端路由底层原理

pushState改 URL 不刷新popstate接浏览器导航服务端必须兜底 SPA 入口前端路由的本质不是“魔法”,而是:把「URL 字符串」变成「组件渲染函数」的映射表,再让浏览器历史栈和这张表保持同步。

2603_94941239的博客 222

身份验证漏洞专题(三):持久登录、密码重置与密码修改中的凭据绑定缺陷

密码登录与双因素认证是身份验证的主干流程,但一个完整的认证体系还依赖三类辅助机制:持久登录("记住我")、密码重置、密码修改。这三类机制的共同特征是:它们同样携带或验证凭据,同样直接决定认证状态的归属,但实现时获得的防护强度往往远低于登录页面本身。攻击者绕不开登录接口时,常常可以从这些辅助入口进入。

2401_85321170的博客 654

2026 年前端框架排行榜

前端框架是用于构建用户界面的工具集合,通过预设组件、网格系统和样式规范提升开发效率与可访问性。2026年主流框架包括:React(生态领先,适合全栈)、Next.js(SSR/SEO优化,主流选择)、Vue(学习友好,中小团队首选)、Angular(企业级稳定)、Svelte与Astro(性能突出)。趋势显示,服务端渲染、TypeScript、AI工具融合及轻量化成为关键方向。就业建议:优先学React+Next.js;追求易用选Vue;企业级项目可学Angular;追求极致性能可尝试Svelte或Astr

lxttzlove的博客 305

Vue 前端开发 AI 对话页面:流式消息渲染、文件上传

关键点是不能手动设置 Content-Type 为 multipart/form-data,必须由浏览器自动生成带有 boundary 的请求头,否则后端无法解析。思路:将对象序列化为 JSON 字符串,作为 FormData 的一个普通字段(如 formData.append(‘payload’, JSON.stringify(data))),后端接收该字段后再反序列化。若上传大文件(>10MB),需实现独立的分片上传接口,在提交对话前先获取文件 id 或 url,再随文本发送引用。移除输入框的禁用态;

2402_85729970的博客 399

前端要加密手机号,密钥却不能下发:一次一密的 ECDH + HKDF 方案(十六)

前端加密手机号需避免密钥暴露,采用ECDH协商临时密钥,结合HKDF派生并绑定协议上下文,使用AES-GCM实现认证加密。关键在于两端参数严格一致:曲线、编码格式、盐值与info字段逐字节相同。避免直接哈希共享秘密或日志泄露密钥,服务端返回临时公钥并签名,前端先验签再派生密钥,确保前向安全与防中间人攻击。最终密文结构包含公钥、nonce、密文与认证标签,支持自校验。

tantan的小记录 408

浏览器端素材压缩与上传实践:从 Canvas 到 WebCodecs 与 FFmpeg 回退

本文介绍浏览器端素材上传的完整处理链路,重点解决图片与视频超限问题。图片通过Canvas等比缩放与质量压缩,逐级优化至2MiB内;视频则优先使用WebCodecs硬件编码,结合分辨率降级、码率预算与FFmpeg WASM回退,确保在20MiB内完成转码。强调“先确认后处理”原则,避免无谓资源消耗,并通过多层能力检测保障兼容性与性能。核心思想:压缩成功 ≠ 上传成功,需独立校验。

林恒的博客 355

Geejing WebBuilder AI SQL:一句话生成查询的完整链路与「生成不执行」边界

企业里真正卡住数据核对的,很少是「不会写 SQL」。更常见的是三件小事叠在一起:这张表到底叫什么、日期字段是 `DATE` 还是字符串、当前这套库分页该用 `LIMIT` 还是别的写法。一个熟手要先翻一遍表结构,生手干脆把需求丢给 DBA,一来一回半天就过去了。

m0_60539919的博客 265

从一次检测到持续验证,重新认识 Web 应用安全测试

围绕漏洞修复后再次出现的问题,结合 Burp Suite DAST 与 GraphQL 示例,解析周期检测、证据管理和整改复测的实现思路。

m0_75220675的博客 337

副队长ES6+教程(3)--解构赋值

解构赋值是JavaScript中高效提取数组、对象数据的语法,支持按位置(数组)或属性名(对象)匹配,可设置默认值、跳过元素、使用剩余运算符。在Vue开发中广泛用于解构props、响应式数据及函数参数,提升代码简洁性与可读性。掌握其规则与常见陷阱,能显著提高开发效率。

编程副队长 297
上一篇: CT5GPROG Gameplay Programming
下一篇: MATH70094: Programming for Data Science
wx____codehelp
博客等级 码龄2年 538粉丝 99原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值