Main Page | Class Hierarchy | Class List | File List | Class Members

variables/Branching.h

00001 // Branching.h -- The `minimum/maximum branching' variable ordering
00002 // heuristic interface.
00003 
00004 /*
00005  * Copyright (C) 2004 Tudor Hulubei <tudor@hulubei.net>.
00006  *
00007  * This library is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU Lesser General Public License as
00009  * published by the Free Software Foundation; either version 2, or (at
00010  * your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA,
00020  * 02111-1307, USA.
00021  */
00022 
00023 // $Id: variables_2Branching_8h-source.html,v 1.1 2005/05/25 12:37:18 tudor Exp $
00024 
00025 #ifndef _CSP_HEURISTICS_VARIABLE_Branching_H
00026 #define _CSP_HEURISTICS_VARIABLE_Branching_H
00027 
00028 
00029 CSP_NAMESPACE_BEGIN(csp);
00030 CSP_NAMESPACE_BEGIN(heuristics);
00031 CSP_NAMESPACE_BEGIN(variables);
00032 
00033 
00049 class CSP_API Branching :
00050     public VariableOH
00051 {
00052   public:
00053     enum Preference
00054     {
00056         Minimum,
00057 
00059         Maximum
00060     };
00061 
00071     Branching(
00072         Decomposition& decomposition,
00073         const vector<pair<double, double> >& intervals,
00074         double quality = 1,
00075         Preference preference = Minimum);
00076 
00084     virtual void select(vlist_type& selectable, vlist_type& selected);
00085 
00086   private:
00088     Branching(const Branching&);
00089 
00091     Branching& operator=(const Branching&);
00092 
00094     Preference m_preference;
00095 };
00096 
00097 
00098 CSP_NAMESPACE_END(variables);
00099 CSP_NAMESPACE_END(heuristics);
00100 CSP_NAMESPACE_END(csp);
00101 
00102 
00103 #endif // _CSP_HEURISTICS_VARIABLE_Branching_H
00104 
00105 // Local Variables:
00106 // mode: C++
00107 // End:

Generated on Wed May 25 12:21:13 2005 for csp.kdevelop by  doxygen 1.3.9.1