source/numeric/baselinesearch.cxx

Go to the documentation of this file.
00001 /*************************************************************************
00002  *
00003  *  The Contents of this file are made available subject to
00004  *  the terms of GNU Lesser General Public License Version 2.1.
00005  *
00006  *
00007  *    GNU Lesser General Public License Version 2.1
00008  *    =============================================
00009  *    Copyright 2008, by Kohei Yoshida.
00010  *    1039 Kingsway Dr., Apex, NC 27502, USA
00011  *
00012  *    This library is free software; you can redistribute it and/or
00013  *    modify it under the terms of the GNU Lesser General Public
00014  *    License version 2.1, as published by the Free Software Foundation.
00015  *
00016  *    This library is distributed in the hope that it will be useful,
00017  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019  *    Lesser General Public License for more details.
00020  *
00021  *    You should have received a copy of the GNU Lesser General Public
00022  *    License along with this library; if not, write to the Free Software
00023  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00024  *    MA  02111-1307  USA
00025  *
00026  ************************************************************************/
00027 
00028 #include "numeric/baselinesearch.hxx"
00029 #include "numeric/funcobj.hxx"
00030 
00031 namespace scsolver { namespace numeric { 
00032 
00033 BaseLineSearch::BaseLineSearch() :
00034     m_pFuncObj(NULL),
00035     m_goal(GOAL_UNKNOWN),
00036     m_debug(false)
00037 {
00038 }
00039 
00040 BaseLineSearch::BaseLineSearch(SingleVarFuncObj* pFuncObj) :
00041     m_pFuncObj(pFuncObj),
00042     m_goal(GOAL_UNKNOWN),
00043     m_debug(false)
00044 {
00045 }
00046 
00047 BaseLineSearch::~BaseLineSearch()
00048 {
00049 }
00050 
00051 void BaseLineSearch::setGoal(GoalType goal)
00052 {
00053     m_goal = goal;
00054 }
00055 
00056 GoalType BaseLineSearch::getGoal() const
00057 {
00058     return m_goal;
00059 }
00060 
00061 void BaseLineSearch::setDebug(bool b)
00062 {
00063     m_debug = b;
00064 }
00065 
00066 bool BaseLineSearch::isDebug() const
00067 {
00068     return m_debug;
00069 }
00070 
00071 void BaseLineSearch::setFuncObj(SingleVarFuncObj* p)
00072 {
00073     m_pFuncObj = p;
00074 }
00075 
00076 SingleVarFuncObj* BaseLineSearch::getFuncObj() const
00077 {
00078     return m_pFuncObj;
00079 }
00080 
00081 }}

Generated on Mon Jul 28 09:13:20 2008 for scsolver by  doxygen 1.5.3