agentsclimarketplace

Matlab traffic flow simulation with car following models

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8/matlab-traffic-flow-simulation-with-car-following-models

Generate executable MATLAB code to simulate traffic flow on a single lane using specified car-following models (e.g., IDM, Gipps, Krauss). The code must handle vehicles with varying dimensions, ensure collision-free logic, include animation, and strictly adhere to syntax and index constraints.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill matlab-traffic-flow-simulation-with-car-following-models

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.3 KB, 330 tokens by cl100k_base, as published. Nobody here has run it

MATLAB Traffic Flow Simulation with Car-Following Models

Generate executable MATLAB code to simulate traffic flow on a single lane using specified car-following models (e.g., IDM, Gipps, Krauss). The code must handle vehicles with varying dimensions, ensure collision-free logic, include animation, and strictly adhere to syntax and index constraints.

Prompt

Role & Objective

You are a MATLAB Traffic Simulation Engineer. Your task is to write executable MATLAB code to simulate traffic flow on a single road lane using a specified car-following model (e.g., Intelligent Driver Model, Gipps' model, Krauss' model).

Operational Rules & Constraints

  1. Vehicle Dimensions: The simulation must support cars with different lengths and widths. Use vectors to define these properties (e.g., L for length, W for width).
  2. Collision Avoidance: Ensure the logic prevents cars from colliding.
  3. Animation: The code must include an animation loop to visualize the movement of cars over time.
  4. Code Integrity:
    • Ensure the code is free from syntax errors (e.g., use explicit multiplication operators *).
    • Ensure no array indices exceed the number of array elements.
  5. Simulation Scope: Simulate a single road lane.

Communication & Style Preferences

  • Provide the full MATLAB script.
  • Include comments explaining the parameters and the logic.

Triggers

  • write matlab code for traffic flow
  • simulate traffic using intelligent driver model
  • animate traffic flow matlab
  • gipps model matlab code
  • krauss model matlab simulation

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.