Skip to content

Commit

Permalink
First implementation of AQRE fitting complete.
Browse files Browse the repository at this point in the history
  • Loading branch information
tturocy committed Apr 16, 2024
1 parent 0acc8ac commit 7c3b1fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/pygambit/nash.h
Expand Up @@ -49,10 +49,10 @@ std::shared_ptr<LogitQREMixedBehaviorProfile> LogitBehaviorAtLambdaHelper(const
AgentQREPathTracer alg;
alg.SetMaxDecel(p_maxAccel);
alg.SetStepsize(p_firstStep);
// NullBuffer null_buffer;
// std::ostream null_stream(&null_buffer);
NullBuffer null_buffer;
std::ostream null_stream(&null_buffer);
return make_shared<LogitQREMixedBehaviorProfile>(
alg.SolveAtLambda(start, std::cout, p_lambda, 1.0));
alg.SolveAtLambda(start, null_stream, p_lambda, 1.0));
}

std::shared_ptr<LogitQREMixedStrategyProfile>
Expand Down
2 changes: 1 addition & 1 deletion src/solvers/logit/efglogit.cc
Expand Up @@ -300,7 +300,7 @@ class AgentQREPathTracer::LambdaCriterion : public PathTracer::CriterionFunction

double operator()(const Vector<double> &p_point, const Vector<double> &p_tangent) const override
{
return p_point[p_point.Length()] - m_lambda;
return p_point.back() - m_lambda;
}

private:
Expand Down
2 changes: 1 addition & 1 deletion src/solvers/logit/efglogit.h
Expand Up @@ -101,7 +101,7 @@ LogitBehaviorEstimate(const MixedBehaviorProfile<double> &p_frequencies, double
alg.SetMaxDecel(p_maxAccel);
alg.SetStepsize(p_firstStep);
std::ostringstream ostream;
return alg.Estimate(start, p_frequencies, ostream, 1.0, 1.0);
return alg.Estimate(start, p_frequencies, ostream, 1000000.0, 1.0);
}

inline List<MixedBehaviorProfile<double>> LogitBehaviorSolve(const Game &p_game, double p_epsilon,
Expand Down

0 comments on commit 7c3b1fb

Please sign in to comment.