00001 #include <obj_funct.h> 00002 00003 /** 00004 The function "user_allocate( void )" is here for user. Here can be 00005 allocated memory or defined some variables for user-defined 00006 objective function, like opening of needed files, definition of known 00007 optimum etc. Please, delete all allocated memory in user_deallocate() 00008 function. 00009 00010 created $Date: 2004/03/19 13:58:35 $, $Author: leps $ 00011 */ 00012 void obj_funct::user_allocate( void ) 00013 { 00014 } 00015 00016 /** 00017 The "user_value ( double *oCH )" function returns value of objective 00018 function. Here the user can specify his own objective function, which 00019 must be returned be "return()" statement. 00020 00021 @param oCH is pointer to actual set of optimized variables ( x[i] ) 00022 00023 @b Requirements : 00024 oCH must be different from NULL. 00025 00026 @retval double precision number = objective value f( x[i] ) 00027 00028 created $Date: 2004/03/19 13:58:35 $, $Author: leps $ 00029 */ 00030 double obj_funct::user_value ( double * /*oCH*/ ) 00031 { 00032 return ( 0.0 ) ; 00033 } 00034 00035 /** 00036 In this function "obj_funct::user_deallocate ()" the user must specify 00037 deleting statements for variables allocated by him in 00038 obj_funct::user_allocate (). 00039 00040 created $Date: 2004/03/19 13:58:35 $, $Author: leps $ 00041 */ 00042 void obj_funct::user_deallocate ( void ) 00043 { 00044 } 00045 00046 /** 00047 The "user_evaluate ( double *BSF )" function is called at the end of 00048 optimization process. It is called from Optimization algorithm and in 00049 BSF user can find best-so-far solution found during optimization. The 00050 usual use of this function is to get e.g. the stress-strain diagram of 00051 the optimal structure etc. 00052 00053 @param oBSF is pointer to the best solution found 00054 00055 created $Date: 2004/03/19 13:58:35 $, $Author: leps $ 00056 */ 00057 void obj_funct::user_evaluate ( double * /*BSF*/ ) 00058 { 00059 } 00060