Main Page   Class Hierarchy   Compound List   File List   Contact   Download   Symbolic Constraints   Examples  

solution.h

00001 #ifndef SCIL_SOLUTION_H
00002 #define SCIL_SOLUTION_H
00003 
00004 #include<scil/subproblem.h>
00005 #include<LEDA/h_array.h>
00006 
00007 namespace SCIL {
00008 
00010 class solution {
00011 private:
00012   LEDA::h_array<var, double> S;
00013   subproblem* sp;
00014 
00015 public:
00017   solution() : S(0) {
00018   };
00019 
00021   void save_solution(subproblem& s); 
00022 
00024   void round_to_integer(var v);
00025 
00027   double value(var v);
00028 
00030   double value(row& r);
00031 
00032   void set_value(var v, double d) {
00033     S[v]=d;
00034   };
00035 
00036   subproblem* originating_subproblem();
00037 };
00038 
00039 }
00040 
00041 #endif

Generated on Tue Nov 16 15:18:21 2004 for SCIL by doxygen1.2.16