EE308 LAB4

YuIiiiiiiiiiiii YuIiiiiiiiiiiii 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
The Link Your Classhttps://bbs.csdn.net/forums/MUEE308FZ
The Link of Requirement of This Assignmenthttps://bbs.csdn.net/topics/601188617
MU STU ID and FZU STU ID19104731 831901102
Teammate's MU STU ID and FZU STU ID19104006 831901120
Teammate's blog linkhttps://bbs.csdn.net/topics/601429451

目录

1.PSP Table 

2.Project Analysis

3.Coding Design


1.PSP Table 

Personal Software Process StageEstimated Time (minutes)Actual Time (minutes)
Planning60200
Estimate100200
Development--
Analysis300350
Design Spec3030
Design Review60100
Coding Standard2020
Design200300
Coding10001500
Code Review300300
Test200200
Reporting6060
Test Report4040
Size Measurement2020
Postmortem&Process Improvement5060
Total24403380

Days

New Code(line)

Cumulate Code (line)

Spend Time(h)

Experimental-cost Time(h)

Schedule 

1

71

71

4

4

Page layout design, jump logic

2

210

281

8

12

core code

3

92

373

6

18

Debug interface, fix the program

2.Project Analysis

a.Needs

    This wechat mini-app is designed for mid-autumn festival bobing game. With this app, you can play with your friends and families online. During this COVID period, we can enjoy the good time. Therefore, a Bobing mini app is in demand, it needs:

  1. An interface, six dice, shake randomly to produce results.
  2. Allows multiple people to participate, and can automatically determine the results, it can be a stand-alone version or a network format.
  3. The interface style is lively and generous in response to the scene, and lays the foundation for the second implementation of pair coding.

b.Approaches

    WeChat mini program platform design a simple Bobing small program, including login, view rules, select modes, select rooms, roll dices and automatically record the Bobing results. In further design, it can also be associated with rewards.

c.Basic UI design


3.Events In Coding

a.Diffcult and thinking of programing 

   As we were new to the WeChat mini-app development platform and JavaScript programming, learning the language and getting used to the platform took up most of the time throughout the experiment, while many programming problems caused us many troubles.

   But when we co-operating with each other, we gradually realise that having someone to work with is so productive and comfortable. When one of us has a problem, we can sit down together and discuss where the problem arises and how to solve it. In addition, when we have different opinions, we can consolidate our views and keep the useful parts. At certain times, the inspiration of a partner can also be very useful. All in all, it's great to have someone to work with.

 

b.Programming events

    Initially I intended to use the GUI to model the six dice and import them into the program, but the new development platform and programming language caused us repeated bugs in learning and modelling, and we were never able to import them successfully. In the end we decided to use random images combined with functions to generate the dice shake effect.

    It also took us a lot of time to write and call the judge function. In the initial version, judge could not be called all the time, resulting in the whole program could not run at all. Besides, the strange logic of JavaScript and the special configuration of small program development also made us repeatedly study for a long time. Finally, we write the random number array directly into judge's param, and set the result as the return value , and then successfully call judge to judge the final result using var obj= this in Enter.

    Finally, change the judgment loop written in Python to JavaScript format.Since the WeChat mini-app development platform has  unique " if else-if else" packaging structure, the main body is configured in the .wsml page, so initially we tried to use it many times have failed, the program has been reporting errors, after we carefully think about it,we design to written "if loop" directly in the js interface, not only will be less difficult to code, but also makes us in the call and modify a lot easier

c.Cooperative Programming Experience

    Through this co-operative lab, I have found that independent thinking sometimes does not work best. Collaboration represents the exchange of ideas and the support of collaborators. When people work alone, 1+1 is always equal to or less than 2, but when they work together, 1+1 will be greater than 2.We were acutely aware that if we were to develop a piece of software, each step would take a lot of time to complete, from the initial idea to the main design, from the logical implementation of the features to the building of the code, plus the final testing and performance optimisation. Communication and collaboration with partners can make things much easier to accomplish.

    Co-oprerate Photo:

 


    https://github.com/YuIHelloworld/EE308-LAB4.git


    https://www.bilibili.com/video/BV1zh411H75G/

...全文

相关推荐

EE-308 LAB4 final version.7z

这是本次实验的压缩包

晨起剪桃花

EE308-Lab8-AlphaSprint-Day4

EE308-Lab8-AlphaSprint-Day4Feedback From Members1. Beichen, ZhouModulePersonal SummaryCode & Results2. Yuwei, JiangModulePersonal SummaryCode & Results3. Yifan, ZhuModulePersonal Summary4. Yifan, ShenModulePersonal SummaryCode & Results5. Shenk

调参侠鱼尾

【深度学习预测】项目介绍 Python实现基于BO-Transformer-LSTM贝叶斯优化算法(BO)优化Transformer-LSTM模型进行多变量时间序列预测(含模型描述及部分示例代码)

内容概要:本文详细介绍了一个基于BO-Transformer-LSTM的多变量时间序列预测项目,通过结合Transformer的全局自注意力机制与LSTM的局部时序建模能力,构建了适用于复杂业务场景的深度学习预测模型。模型输入采用多变量滑动窗口结构,并引入正弦余弦位置编码以保留时间顺序信息;Transformer编码器提取变量间长距离依赖关系,LSTM进一步捕捉动态演化特征,最终通过回归层输出预测值。为优化模型性能,采用贝叶斯优化算法(基于Tree-structured Parzen Estimator)自动搜索最优超参数组合,包括嵌入维度、注意力头数、学习率、窗口长度等,显著提升了调参效率与模型泛化能力。项目还设计了包含周期性、趋势性、均值回归、突发事件和异方差噪声的五因素模拟数据生成机制,确保数据贴近真实业务场景,并建立了从数据预处理、模型训练、验证评估到结果恢复的完整技术链路。; 适合人群:具备一定机器学习与深度学习基础,熟悉PyTorch框架,从事时间序列预测相关研究或工程应用的研发人员、数据科学家及研究生。; 使用场景及目标:①应用于能源负荷预测、设备状态监测、金融风控、供应链需求预测等多变量时间序列预测任务;②解决传统模型在长时依赖、非线性关系和高维特征下的预测瓶颈;③实现高效超参数优化,提升模型调优自动化水平与部署可行性。; 阅读建议:本文含核心模型结构与部分示例代码,建议结合完整项目代码(如GitHub或博客资源)进行复现实践,重点关注数据生成逻辑、模型前向传播流程及贝叶斯优化集成方式,同时可通过调整网络结构或优化策略进一步拓展至多步预测、概率输出与可视化分析等高级功能。

nantangyuxi

城市生命线之长距离输水管线的监测与检测.pdf

城市生命线之长距离输水管线的监测与检测.pdf

公众号:优享智库

复现水下航行器(NMPC)非线性模型预测控制分布式轨迹跟踪(Matlab代码实现)

内容概要:本文档围绕水下航行器(AUV)的非线性模型预测控制(NMPC)分布式轨迹跟踪技术展开,重点复现并实现了国际顶级期刊中提出的先进控制算法。该资源详细提供了基于Matlab的仿真代码,涵盖AUV的非线性动力学建模、多智能体系统协同控制、事件触发通信机制以及复杂海洋环境下分布式轨迹跟踪的优化求解过程。通过系统地构建NMPC控制器,实现对预设轨迹的高精度跟踪,同时有效处理系统约束与外部扰动。研究强调算法在多AUV协同任务中的适用性,突出其在节能通信与实时性方面的优势,是控制理论与工程实践相结合的典型范例; 适合人群:具备自动控制原理、非线性系统理论及Matlab编程基础的研究生、科研人员和工程技术开发者,尤其适用于从事水下机器人、智能控制、多智能体协同、路径规划与优化控制等方向的研究者; 使用场景及目标:① 深入理解非线性模型预测控制(NMPC)在欠驱动AUV轨迹跟踪中的设计与实现机制;② 复现并验证高水平学术论文中的控制策略,支撑科研创新与论文撰写;③ 探索事件触发机制下的分布式协同控制架构,提升多智能体系统的通信效率与控制性能; 阅读建议:建议结合现代控制理论相关教材与原始参考文献,逐行分析Matlab代码结构与算法流程,重点关注系统建模、代价函数构造、约束处理与优化求解器的调用方式。可通过调整控制参数、初始状态或引入环境干扰等方式进行仿真实验,以评估算法的鲁棒性、收敛性与工程实用性。

天天程序猿
评论
收藏 已收藏
分享
返回顶部