Extract CommonMath functions

Đang mở
#642 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@amandeep25100-a11y đang làm issue này rồi.

Từ ngày 10/11/2026.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
54/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
backend

Hướng nghiên cứu

Read the CommonMath functions and the REGCA and REPCA model definitions, then follow the extraction approach from issue #640. Move the listed helpers into CommonMath with their equations and tests alongside its existing functions; done means both models use the shared helpers and the associated tests pass.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

cleanup
Summary

Extract the reusable math helpers in REGCA and REPCA into CommonMath.

Rationale

These functions are currently embedded in individual models. They should be reusable and have their equations and tests alongside the other CommonMath functions.

Description

Functions to extract:

  • REGCA: awmax (antiwindup with a moving upper bound) and iramp (inverse smooth ramp).
  • REPCA: droop, invertClamp (rename to iclamp, invertDeadband (rename to ideadband1/2), and the supporting logOneMinusExp.
Additional information

Follow-up to #640.

Ngôn ngữ chính
C++
Star
27
Fork
11
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
15

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ORNL/GridKit

Tất cả issue của ORNL/GridKit

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.