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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

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