python代写 | MECS4510 Assignment #3 Project
本次代写是关于Python相关的一个Assignment
• 3a Develop a 3D physics simulator
• Demonstrate a bouncing cube and a “breathing” cube
• 3b Evolve a fixed-shape robot
• Manually design a robot, evolve a controller to make it move
• 3c Evolve both the shape and behavior of a robot
• Demonstrate a moving robot of various shapes and behavoors
• Final Presentation
Basic steps
• Simpler than learning to use other simulator
• Simpler to integrate with your EA
• Robust (wont crash) with garbage generated by an EA
• More versatile physics
• An extra line on your resume
• Point masses (no volume)
• Have position, velocity and acceleration
• Springs
• Massless
• Connect two masses
• Have a rest length and stiffness
• Apply restoring forces on the masses
• Choose a discrete time step dt
• Not larger than a millisecond (dt=0.001).
• Set global time variable T = 0
• At each time step:
• T = T + dt
• Interaction step:
• Compute and tally all the forces acting on each mass from springs connected it
• Integration step:
• Update position and velocity of each atom using Newton’s laws of motion F=ma.