/[ascend]/trunk/pygtk/interface/solver.h
ViewVC logotype

Contents of /trunk/pygtk/interface/solver.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 151 - (show annotations) (download) (as text)
Thu Dec 22 10:58:33 2005 UTC (18 years, 6 months ago) by johnpye
File MIME type: text/x-chdr
File size: 1090 byte(s)
Working on a test case for bug #178
1 #ifndef ASCXX_SOLVER_H
2 #define ASCXX_SOLVER_H
3
4 #include <string>
5 #include <vector>
6
7 extern "C"{
8 #include <utilities/ascConfig.h>
9 #include <compiler/instance_enum.h>
10 #include <solver/slv_types.h>
11 #include <solver/mtx.h>
12 #include <solver/var.h>
13 #include <solver/rel.h>
14 #include <solver/discrete.h>
15 #include <solver/conditional.h>
16 #include <solver/logrel.h>
17 #include <solver/bnd.h>
18 #include <solver/linsol.h>
19 #include <solver/linsolqr.h>
20 #include <solver/slv_common.h>
21 #include <solver/slv_client.h>
22 }
23
24 class Solver;
25
26 /**
27 Some global functions
28 */
29 void registerStandardSolvers();
30 void registerSolver(SlvRegistration regfuncptr);
31 const std::vector<Solver> getSolvers();
32
33 /**
34 This is a rather problematic wrapper for slv_client.h. It's hard because registerd solvers
35 are referenced primarily by index, not by pointer etc, so given the index, we always have
36 to look up the solver in some way or other.
37 */
38 class Solver{
39 private:
40 std::string name;
41 public:
42 Solver(const Solver &);
43 Solver(const std::string &name);
44
45 const int getIndex() const;
46 const std::string& getName() const;
47 };
48
49 #endif

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22