Skip to content

Refactoring HPsystem - #1019

Merged
tturocy merged 2 commits into
gambitproject:feature/hpfrom
AndresFerCervell:feature/hpsystem_modifications
Aug 3, 2026
Merged

Refactoring HPsystem#1019
tturocy merged 2 commits into
gambitproject:feature/hpfrom
AndresFerCervell:feature/hpsystem_modifications

Conversation

@AndresFerCervell

Copy link
Copy Markdown
Contributor

Description of the changes in this PR

Refactoring of hpsystem.h and hpsystem.cc.
Now they follow the structure of nfglogit.cc, where each kind of equation has its own class that inherits from HPEquation.

No bugs have been found while testing them with the pytest suite and the games from contrib.

@tturocy
tturocy self-requested a review August 2, 2026 19:23
Comment thread src/solvers/hp/hpsystem.cc Outdated
void HPEquationSystem::GetJacobian(const Vector<double> &point, Matrix<double> &p_jac) const
{
// Update internal mutable state
int temp_alpha_idx = 2;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This loop is repeated between GetValue and GetJacobian; would be suitable for a small helper

Comment thread src/solvers/hp/hpsystem.cc Outdated
@tturocy
tturocy merged commit 72c9650 into gambitproject:feature/hp Aug 3, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants