⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nfgqregrid.h

📁 Gambit 是一个游戏库理论软件
💻 H
字号:
//// $Source: /home/gambit/CVS/gambit/sources/nash/nfgqregrid.h,v $// $Date: 2002/08/27 18:29:41 $// $Revision: 1.4 $//// DESCRIPTION:// Interface to grid solve method for computing LQRE//// This file is part of Gambit// Copyright (c) 2002, The Gambit Project//// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of the License, or// (at your option) any later version.//// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the// GNU General Public License for more details.//// You should have received a copy of the GNU General Public License// along with this program; if not, write to the Free Software// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.//#ifndef NFGQREGRID_H#define NFGQREGRID_H#include "base/base.h"#include "mixedsol.h"#include "nash/algutils.h"class QreNfgGrid {private:  // Parameters  double m_minLam, m_maxLam, m_delLam, m_delp1, m_delp2, m_tol1, m_tol2;  int m_powLam;  bool m_fullGraph;  // Auxiliary functions  gVector<double> UpdateFunc(const MixedProfile<double> &, int, double) const;  bool CheckEqu(MixedProfile<double> &, double, int, double) const;  void OutputHeader(const NFSupport &, gOutput &) const;  void OutputResult(gOutput &, const MixedProfile<double> &,		    double, double) const;protected:  // could use norms other then the simple one  virtual double Distance(const gVector<gNumber> &,			  const gVector<double> &) const;  virtual double Distance(const gVector<double> &,			  const gVector<double> &) const;public:  // LIFECYCLE  QreNfgGrid(void);  // ACCESSING AND SETTING ALGORITHM PARAMETERS  double GetMinLambda(void) const { return m_minLam; }  void SetMinLambda(double p_minLam) { m_minLam = p_minLam; }  double GetMaxLambda(void) const { return m_maxLam; }  void SetMaxLambda(double p_maxLam) { m_maxLam = p_maxLam; }  double GetDelLambda(void) const { return m_delLam; }  void SetDelLambda(double p_delLam) { m_delLam = p_delLam; }  double GetDelP1(void) const { return m_delp1; }  void SetDelP1(double p_delp1) { m_delp1 = p_delp1; }  double GetDelP2(void) const { return m_delp2; }  void SetDelP2(double p_delp2) { m_delp2 = p_delp2; }  double GetTol1(void) const { return m_tol1; }  void SetTol1(double p_tol1) { m_tol1 = p_tol1; }  double GetTol2(void) const { return m_tol2; }  void SetTol2(double p_tol2) { m_tol2 = p_tol2; }  int GetPowLambda(void) const { return m_powLam; }  void SetPowLambda(int p_powLam) { m_powLam = p_powLam; }  bool GetFullGraph(void) const { return m_fullGraph; }  void SetFullGraph(bool p_fullGraph) { m_fullGraph = p_fullGraph; }  // RUN THE ALGORITHM  void Solve(const NFSupport &, gOutput &p_pxifile, gStatus &p_status,	     gList<MixedSolution> &);};#endif  // NFGQREGRID_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -