00001 //============================================================ 00002 // COOOL version 1.1 --- Nov, 1995 00003 // Center for Wave Phenomena, Colorado School of Mines 00004 //============================================================ 00005 // 00006 // This code is part of a preliminary release of COOOL (CWP 00007 // Object-Oriented Optimization Library) and associated class 00008 // libraries. 00009 // 00010 // The COOOL library is a free software. You can do anything you want 00011 // with it including make a fortune. However, neither the authors, 00012 // the Center for Wave Phenomena, nor anyone else you can think of 00013 // makes any guarantees about anything in this package or any aspect 00014 // of its functionality. 00015 // 00016 // Since you've got the source code you can also modify the 00017 // library to suit your own purposes. We would appreciate it 00018 // if the headers that identify the authors are kept in the 00019 // source code. 00020 // 00021 //============================= 00022 // Definition of the LineSearchOptima class 00023 // General information on the convergence of the optimization modules 00024 // Author: H. Lydia Deng /03/15/94 00025 //============================= 00026 00027 #include "LSearchOptima.hh" 00028 00029 namespace coool 00030 { 00031 using namespace coool; 00032 00033 LineSearchOptima::LineSearchOptima(LineSearch* p) 00034 : NonQuadraticOptima() 00035 { 00036 ls = p; 00037 } 00038 00039 LineSearchOptima::LineSearchOptima(LineSearch* p, int verb) 00040 : NonQuadraticOptima(verb) 00041 { 00042 ls = p; 00043 } 00044 00045 LineSearchOptima::~LineSearchOptima() 00046 { 00047 if (ls != NULL) ls = NULL; 00048 } 00049 00050 } 00051