Extract CommonMath functions

Aperta
#642 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@amandeep25100-a11y ci sta già lavorando.

Dal 10/11/2026.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
54/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C++
Stelle
27
Fork
11
Merge medio
2g 21h
PR unite (30g)
15

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ORNL/GridKit

Tutte le issue di ORNL/GridKit

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.