RepositoryJulia
SciML

SciML/ComponentArrays.jl

Arrays with arbitrarily nested named components.

378stars
43forks
73issues
2views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: simulation-modeling

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: controls-and-dynamics

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: dynamical-systems

#1 Repository Của Tuần

🧩 ComponentArrays.jl: Mảng có thành phần đặt tên, không cần ngôn ngữ mô hình

ComponentArrays.jl cho phép dùng ComponentArray như NamedTuple có thể thay đổi và truyền qua bộ giải phương trình, kết hợp mô hình mà không cần DSL.

ComponentArrays.jl là một package Julia cung cấp kiểu ComponentArray — mảng có các khối dữ liệu (thành phần) có thể truy cập qua tên. Mỗi thành phần là một khối mảng con, cho phép xây dựng mô hình độc lập rồi kết hợp chúng bằng hàm số đơn giản. Đây là giải pháp thay thế cho ngôn ngữ mô hình truyền thống, phù hợp với DifferentialEquations.jl, Optim.jl và bất kỳ bài toán nào cần véc-tơ phẳng.

✨ Điểm nổi bật

  • ComponentVector: mảng 1 chiều với thành phần đặt tên, truy cập qua tên hoặc chỉ số.
  • Kết hợp mô hình: hỗ trợ tạo view từ ComponentArray gốc, dùng cho hàm số kết hợp mô hình.
  • Tương thích solver: truyền trực tiếp vào DifferentialEquations.jl và Optim.jl.
  • Hỗ trợ broadcast: tạo ComponentMatrix 2 chiều tự động qua phép nhân ma trận.
  • Nested NamedTuple: xây dựng ComponentArray như một NamedTuple lồng nhau có thể thay đổi.
  • Axis hệ thống: truy cập thành phần qua cú pháp [:name] hoặc [:a, :b].

💡 Vì sao đáng chú ý

Thay vì dùng ngôn ngữ mô hình (modeling language) phức tạp, ComponentArrays.jl cung cấp cách nhẹ nhàng để gắn tên cho từng phần của véc-tơ/khối dữ liệu. Điều này đặc biệt mạnh mẽ khi kết hợp với các solver trong SciML, nơi cần truyền các véc-tơ phẳng nhưng vẫn muốn giữ cấu trúc ngữ nghĩa. Ví dụ Lorenz được tích hợp dễ dàng với ODEProblem và @unpack từ Parameters.jl.


#Julia #ScientificMachineLearning #DifferentialEquations #Modeling #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryJulia
SciML/OrdinaryDiffEq.jl

High performance ordinary differential equation (ODE) and differential-algebraic equation (DAE) solvers, including neural ordinary differential equations (neural ODEs) and scientific machine learning (SciML)

702
Nov 20, 2026
RepositoryJulia
JuliaControl/ControlSystems.jl

A Control Systems Toolbox for Julia

587
Nov 19, 2026
RepositoryJulia
JuliaReach/ReachabilityAnalysis.jl

Computing reachable states of dynamical systems in Julia

218
Nov 14, 2026
RepositoryJulia
SciML/DifferentialEquations.jl

Multi-language suite for high-performance solvers of differential equations and scientific machine learning (SciML) components. Ordinary differential equations (ODEs), stochastic differential equations (SDEs), delay differential equations (DDEs), differential-algebraic equations (DAEs), and more in Julia.

3.2k
Oct 17, 2026
RepositoryJulia
SciML/NeuralPDE.jl

Physics-Informed Neural Networks (PINN) Solvers of (Partial) Differential Equations for Scientific Machine Learning (SciML) accelerated simulation

1.2k
Nov 22, 2026
RepositoryJulia
SciML/DataDrivenDiffEq.jl

Data driven modeling and automated discovery of dynamical systems for the SciML Scientific Machine Learning organization

433
Nov 2, 2026
RepositoryJulia
SciML/Surrogates.jl

Surrogate modeling and optimization for scientific machine learning (SciML)

385
Nov 22, 2026
RepositoryJulia
SciML/SciMLBenchmarks.jl

Scientific machine learning (SciML) benchmarks, AI for science, and (differential) equation solvers. Covers Julia, Python (PyTorch, Jax), MATLAB, R

348
Nov 21, 2026
RepositoryJulia
SciML/DiffEqGPU.jl

GPU-acceleration routines for DifferentialEquations.jl and the broader SciML scientific machine learning ecosystem

332
Nov 22, 2026