SGSolve
All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Pages
sgsolver_pencilsharpening.hpp
1 // This file is part of the SGSolve library for stochastic games
2 // Copyright (C) 2019 Benjamin A. Brooks
3 //
4 // SGSolve free software: you can redistribute it and/or modify it
5 // under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // SGSolve is distributed in the hope that it will be useful, but
10 // WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see
16 // <http://www.gnu.org/licenses/>.
17 //
18 // Benjamin A. Brooks
19 // ben@benjaminbrooks.net
20 // Chicago, IL
21 
22 #ifndef _SGSOLVER_HPP
23 #define _SGSOLVER_HPP
24 
25 #include "sgcommon.hpp"
26 #include "sgutilities.hpp"
27 #include "sgenv.hpp"
28 #include "sggame.hpp"
29 #include "sgapprox.hpp"
30 #include "sgexception.hpp"
31 #include "sgsolution_pencilsharpening.hpp"
32 
34 
43 {
44 private:
45  // Data
46 
48  const SGEnv & env;
50  const SGGame & game;
53 
54 public:
57 
59 
61  SGSolver_PencilSharpening(const SGEnv & _env,
62  const SGGame & _game);
63 
66 
68 
71  void solve();
72 
75  const SGSolution_PencilSharpening& getSolution() const {return soln;}
76 };
77 
78 
79 #endif
SGSolver_PencilSharpening::env
const SGEnv & env
SGEnv object to hold parameters.
Definition: sgsolver_pencilsharpening.hpp:48
SGGame
Describes a stochastic game.
Definition: sggame.hpp:40
SGSolver_PencilSharpening::game
const SGGame & game
Constant reference to the game to be solved.
Definition: sgsolver_pencilsharpening.hpp:50
SGSolution_PencilSharpening
Records the progress of SGSolver::solve().
Definition: sgsolution_pencilsharpening.hpp:41
SGSolver_PencilSharpening::getSolution
const SGSolution_PencilSharpening & getSolution() const
Definition: sgsolver_pencilsharpening.hpp:75
SGSolver_PencilSharpening::soln
SGSolution_PencilSharpening soln
SGSolution object used by SGApprox to store data.
Definition: sgsolver_pencilsharpening.hpp:52
sgutilities.hpp
SGEnv
Manages parameters for algorithm behavior.
Definition: sgenv.hpp:35
SGSolver_PencilSharpening::solve
void solve()
Solve routine.
Definition: sgsolver_pencilsharpening.cpp:31
SGSolver_PencilSharpening
Class for solving stochastic games.
Definition: sgsolver_pencilsharpening.hpp:43
SGSolver_PencilSharpening::~SGSolver_PencilSharpening
~SGSolver_PencilSharpening()
Destructor.
Definition: sgsolver_pencilsharpening.hpp:65
SGSolver_PencilSharpening::SGSolver_PencilSharpening
SGSolver_PencilSharpening()
Default constructor.