Skip to content

Commit 7d1d4ba

Browse files
Removed GetConstraintEntry from BSP (now just GetSequenceConstraintEntry)
1 parent 120b753 commit 7d1d4ba

3 files changed

Lines changed: 1 addition & 8 deletions

File tree

src/games/behavspt.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -292,12 +292,6 @@ PlayerSequences BehaviorSupportProfile::GetSequences(const GamePlayer &p_player)
292292
return {this, p_player};
293293
}
294294

295-
int BehaviorSupportProfile::GetConstraintEntry(const GameInfoset &p_infoset,
296-
const GameAction &p_action) const
297-
{
298-
return GetSequenceForm()->GetConstraintEntry(p_infoset, p_action);
299-
}
300-
301295
uint8_t &
302296
BehaviorSupportProfile::IsOutcome(const std::map<GamePlayer, GameSequence> &p_profile) const
303297
{

src/games/behavspt.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ class BehaviorSupportProfile {
198198
std::shared_ptr<GameSequenceForm> GetSequenceForm() const;
199199
Sequences GetSequences() const;
200200
PlayerSequences GetSequences(const GamePlayer &p_player) const;
201-
int GetConstraintEntry(const GameInfoset &p_infoset, const GameAction &p_action) const;
202201
const Rational &GetPayoff(const std::map<GamePlayer, GameSequence> &p_profile,
203202
const GamePlayer &p_player) const;
204203
uint8_t &IsOutcome(const std::map<GamePlayer, GameSequence> &p_profile) const;

src/solvers/enumpoly/efgpoly.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Polynomial<double> BuildSequenceVariable(ProblemData &p_data, const GameSequence
7272
continue;
7373
}
7474
if (const int constraint_coef =
75-
p_data.m_support.GetConstraintEntry(p_sequence->GetInfoset(), seq->action)) {
75+
p_data.m_support.GetSequenceConstraintEntry(p_sequence->GetInfoset(), seq->action)) {
7676
equation += BuildSequenceVariable(p_data, seq, var) * double(constraint_coef);
7777
}
7878
}

0 commit comments

Comments
 (0)