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

aba_variable.cc

00001 #include <scil/global.h>
00002 #include <scil/aba_variable.h>
00003 #include <scil/subproblem.h>
00004 #include <scil/ilp_problem.h>
00005 #include <scil/var_obj.h>
00006 
00007 using namespace SCIL;
00008 
00009 ABA_Variable::ABA_Variable(subproblem& S_, var_obj* vr,
00010                    Activation a, Validity v,
00011                    double obj, double lBound, double uBound,
00012                    Vartype vt)
00013   : ABA_VARIABLE(S_.master(), &S_, (a==Dynamic), (v==Global), obj, lBound, 
00014                  uBound, 
00015                  (vt==Vartype_Integer ? ABA_VARTYPE::Integer : 
00016                                         ABA_VARTYPE::Continuous))
00017 {
00018   Ref_Var=vr;
00019 };
00020 
00021 ABA_Variable::ABA_Variable(ILP_Problem& IP_, var_obj* vr,
00022                            Activation a, Validity v,
00023                            double obj, double lBound, double uBound,
00024                            Vartype vt)
00025   : ABA_VARIABLE(&IP_, 0, (a==Dynamic), (v==Global), obj, lBound, uBound, 
00026                  (vt==Vartype_Integer ? ABA_VARTYPE::Integer : 
00027                   ABA_VARTYPE::Continuous))
00028 {
00029   Ref_Var=vr;
00030 };
00031 
00032 double ABA_Variable::coeff(ABA_CONSTRAINT* c) {
00033   // cout<<"coeff called\n";
00034   return SVar()->coeff(c);
00035 };
00036 
00037 var_obj* ABA_Variable::SVar() {
00038   return Ref_Var;
00039 };
00040 
00041 int ABA_Variable::genColumn(Active_Inequalities* var, Column& col) {
00042   return Ref_Var->genColumn(var, col);
00043 }
00044 
00045 ABA_Variable::~ABA_Variable() {
00046   delete Ref_Var;
00047 };

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