[optimization] fix tests
[scilab.git] / scilab / modules / optimization / tests / unit_tests / neldermead / neldermead_newdestroy.dia.ref
index 0656bee..98840e0 100644 (file)
@@ -23,120 +23,63 @@ nm = neldermead_destroy(nm);
 nm = neldermead_new ();
 str = string(nm)
  str  = 
-!Nelder-Mead Object:                                                   !
-!                                                                      !
-!======================                                                !
-!                                                                      !
-!                                                                      !
-!                                                                      !
-!Simplex0 Method : axes                                                !
-!                                                                      !
-!Simplex0 Length : 1                                                   !
-!                                                                      !
-!Simplex0, Pfeffer, Delta Usual : 0.05                                 !
-!                                                                      !
-!Simplex0, Pfeffer, Delta Zero : 0.0075                                !
-!                                                                      !
-!Simplex0, Given, Coords :                                             !
-!                                                                      !
-![]                                                                    !
-!                                                                      !
-!                                                                      !
-!                                                                      !
-!Termination parameters                                                !
-!                                                                      !
-!Termination on simplex size : T                                       !
-!                                                                      !
-!Termination on simplex size, Absolute Tolerance : 0                   !
-!                                                                      !
-!Termination on simplex size, Relative Tolerance : 2.220D-16           !
-!                                                                      !
-!Termination on simplex size, Initial Simplex Size : 0                 !
-!                                                                      !
-!Termination on simplex size + Delta of function value : F             !
-!                                                                      !
-!Termination on simplex size + Delta of function value, Absolute Tolera!
-!nce on Delta F : 2.220D-16                                            !
-!                                                                      !
-!Termination on Kelley's Stagnation : F                                !
-!                                                                      !
-!Termination on Kelley's Stagnation, Normalization : T                 !
-!                                                                      !
-!Termination on Kelley's Stagnation, Alpha0 : 0.0001                   !
-!                                                                      !
-!Termination on Kelley's Stagnation, Alpha : 0.0001                    !
-!                                                                      !
-!Termination by Box : F                                                !
-!                                                                      !
-!Termination by Box, Absolute Tolerance on Function: 0.00001           !
-!                                                                      !
-!Termination by Box, Maximum Number of Consecutive Match : 5           !
-!                                                                      !
-!Termination by Box, Current Number of Consecutive Match : 0           !
-!                                                                      !
-!Termination on Variance : F                                           !
-!                                                                      !
-!Termination on Variance, Absolute Tolerance : 0                       !
-!                                                                      !
-!Termination on Variance, Relative Tolerance : 2.220D-16               !
-!                                                                      !
-!Termination on Variance, Variance of Initial Simplex : 0              !
-!                                                                      !
-!                                                                      !
-!                                                                      !
-!Algorithms parameters                                                 !
-!                                                                      !
-!Method : variable                                                     !
-!                                                                      !
-!Reflection Factor (rho) : 1                                           !
-!                                                                      !
-!Expansion Factor (chi) : 2                                            !
-!                                                                      !
-!Contraction Factor (gamma) : 0.5                                      !
-!                                                                      !
-!Shrinkage Factor (sigma) : 0.5                                        !
-!                                                                      !
-!Kelley Stagnation : F                                                 !
-!                                                                      !
-!Restart Epsilon : 2.220D-16                                           !
-!                                                                      !
-!Restart Step : 1                                                      !
-!                                                                      !
-!Restart Maximum : 3                                                   !
-!                                                                      !
-!Restart Simplex Method : oriented                                     !
-!                                                                      !
-!Restart Flag : F                                                      !
-!                                                                      !
-!Restart Number : 0                                                    !
-!                                                                      !
-!Restart Detection Method : oneill                                     !
-!                                                                      !
-!Startup Flag : F                                                      !
-!                                                                      !
-!Automatic Checking of Cost Function : T                               !
-!                                                                      !
-!Box, Number of Points  : 2n                                           !
-!                                                                      !
-!Box, Current Number of Points  : 0                                    !
-!                                                                      !
-!Box, Scaling, Factor  : 0.5                                           !
-!                                                                      !
-!Box, Scaling, Method  : tox0                                          !
-!                                                                      !
-!Box, Scaling, Minimum : 0.00001                                       !
-!                                                                      !
-!Box, Bounds Parameter: 0.000001                                       !
-!                                                                      !
-!Box, Reflection Coefficient : 1.3                                     !
-!                                                                      !
-!                                                                      !
-!                                                                      !
-!optbase: <TOPTIM Object>                                              !
-!                                                                      !
-!simplex0: <TSIMPLEX Object>                                           !
-!                                                                      !
-!simplexopt: <constant Object>                                         !
+  "Nelder-Mead Object:"                                                
+  "======================"                                             
+  ""                                                                   
+  "Simplex0 Method : axes"                                             
+  "Simplex0 Length : 1"                                                
+  "Simplex0, Pfeffer, Delta Usual : 0.05"                              
+  "Simplex0, Pfeffer, Delta Zero : 0.0075"                             
+  "Simplex0, Given, Coords :"                                          
+  "[]"                                                                 
+  ""                                                                   
+  "Termination parameters"                                             
+  "Termination on simplex size : T"                                    
+  "Termination on simplex size, Absolute Tolerance : 0"                
+  "Termination on simplex size, Relative Tolerance : 2.220D-16"        
+  "Termination on simplex size, Initial Simplex Size : 0"              
+  "Termination on simplex size + Delta of function value : F"          
+  "Termination on simplex size + Delta of function value, Absolute Tolerance on Delta F : 2.220D-16"
+  "Termination on Kelley's Stagnation : F"                             
+  "Termination on Kelley's Stagnation, Normalization : T"              
+  "Termination on Kelley's Stagnation, Alpha0 : 0.0001"                
+  "Termination on Kelley's Stagnation, Alpha : 0.0001"                 
+  "Termination by Box : F"                                             
+  "Termination by Box, Absolute Tolerance on Function: 0.00001"        
+  "Termination by Box, Maximum Number of Consecutive Match : 5"        
+  "Termination by Box, Current Number of Consecutive Match : 0"        
+  "Termination on Variance : F"                                        
+  "Termination on Variance, Absolute Tolerance : 0"                    
+  "Termination on Variance, Relative Tolerance : 2.220D-16"            
+  "Termination on Variance, Variance of Initial Simplex : 0"           
+  ""                                                                   
+  "Algorithms parameters"                                              
+  "Method : variable"                                                  
+  "Reflection Factor (rho) : 1"                                        
+  "Expansion Factor (chi) : 2"                                         
+  "Contraction Factor (gamma) : 0.5"                                   
+  "Shrinkage Factor (sigma) : 0.5"                                     
+  "Kelley Stagnation : F"                                              
+  "Restart Epsilon : 2.220D-16"                                        
+  "Restart Step : 1"                                                   
+  "Restart Maximum : 3"                                                
+  "Restart Simplex Method : oriented"                                  
+  "Restart Flag : F"                                                   
+  "Restart Number : 0"                                                 
+  "Restart Detection Method : oneill"                                  
+  "Startup Flag : F"                                                   
+  "Automatic Checking of Cost Function : T"                            
+  "Box, Number of Points  : 2n"                                        
+  "Box, Current Number of Points  : 0"                                 
+  "Box, Scaling, Factor  : 0.5"                                        
+  "Box, Scaling, Method  : tox0"                                       
+  "Box, Scaling, Minimum : 0.00001"                                    
+  "Box, Bounds Parameter: 0.000001"                                    
+  "Box, Reflection Coefficient : 1.3"                                  
+  ""                                                                   
+  "optbase: <TOPTIM Object>"                                           
+  "simplex0: <TSIMPLEX Object>"                                        
+  "simplexopt: <constant Object>"                                      
 assert_checkequal ( typeof(str) , "string" )
  ans  =
   T
@@ -237,120 +180,63 @@ nm = neldermead_configure(nm,"-nbineqconst",3);
 nm = neldermead_configure(nm,"-simplex0length",20.0);
 str = string(nm)
  str  = 
-!Nelder-Mead Object:                                                   !
-!                                                                      !
-!======================                                                !
-!                                                                      !
-!                                                                      !
-!                                                                      !
-!Simplex0 Method : axes                                                !
-!                                                                      !
-!Simplex0 Length : 20                                                  !
-!                                                                      !
-!Simplex0, Pfeffer, Delta Usual : 0.05                                 !
-!                                                                      !
-!Simplex0, Pfeffer, Delta Zero : 0.0075                                !
-!                                                                      !
-!Simplex0, Given, Coords :                                             !
-!                                                                      !
-![]                                                                    !
-!                                                                      !
-!                                                                      !
-!                                                                      !
-!Termination parameters                                                !
-!                                                                      !
-!Termination on simplex size : T                                       !
-!                                                                      !
-!Termination on simplex size, Absolute Tolerance : 0                   !
-!                                                                      !
-!Termination on simplex size, Relative Tolerance : 0.0001              !
-!                                                                      !
-!Termination on simplex size, Initial Simplex Size : 0                 !
-!                                                                      !
-!Termination on simplex size + Delta of function value : F             !
-!                                                                      !
-!Termination on simplex size + Delta of function value, Absolute Tolera!
-!nce on Delta F : 2.220D-16                                            !
-!                                                                      !
-!Termination on Kelley's Stagnation : F                                !
-!                                                                      !
-!Termination on Kelley's Stagnation, Normalization : T                 !
-!                                                                      !
-!Termination on Kelley's Stagnation, Alpha0 : 0.0001                   !
-!                                                                      !
-!Termination on Kelley's Stagnation, Alpha : 0.0001                    !
-!                                                                      !
-!Termination by Box : F                                                !
-!                                                                      !
-!Termination by Box, Absolute Tolerance on Function: 0.00001           !
-!                                                                      !
-!Termination by Box, Maximum Number of Consecutive Match : 5           !
-!                                                                      !
-!Termination by Box, Current Number of Consecutive Match : 0           !
-!                                                                      !
-!Termination on Variance : F                                           !
-!                                                                      !
-!Termination on Variance, Absolute Tolerance : 0                       !
-!                                                                      !
-!Termination on Variance, Relative Tolerance : 2.220D-16               !
-!                                                                      !
-!Termination on Variance, Variance of Initial Simplex : 0              !
-!                                                                      !
-!                                                                      !
-!                                                                      !
-!Algorithms parameters                                                 !
-!                                                                      !
-!Method : box                                                          !
-!                                                                      !
-!Reflection Factor (rho) : 1                                           !
-!                                                                      !
-!Expansion Factor (chi) : 2                                            !
-!                                                                      !
-!Contraction Factor (gamma) : 0.5                                      !
-!                                                                      !
-!Shrinkage Factor (sigma) : 0.5                                        !
-!                                                                      !
-!Kelley Stagnation : F                                                 !
-!                                                                      !
-!Restart Epsilon : 2.220D-16                                           !
-!                                                                      !
-!Restart Step : 1                                                      !
-!                                                                      !
-!Restart Maximum : 3                                                   !
-!                                                                      !
-!Restart Simplex Method : oriented                                     !
-!                                                                      !
-!Restart Flag : F                                                      !
-!                                                                      !
-!Restart Number : 0                                                    !
-!                                                                      !
-!Restart Detection Method : oneill                                     !
-!                                                                      !
-!Startup Flag : F                                                      !
-!                                                                      !
-!Automatic Checking of Cost Function : T                               !
-!                                                                      !
-!Box, Number of Points  : 2n                                           !
-!                                                                      !
-!Box, Current Number of Points  : 0                                    !
-!                                                                      !
-!Box, Scaling, Factor  : 0.5                                           !
-!                                                                      !
-!Box, Scaling, Method  : tox0                                          !
-!                                                                      !
-!Box, Scaling, Minimum : 0.00001                                       !
-!                                                                      !
-!Box, Bounds Parameter: 0.000001                                       !
-!                                                                      !
-!Box, Reflection Coefficient : 1.3                                     !
-!                                                                      !
-!                                                                      !
-!                                                                      !
-!optbase: <TOPTIM Object>                                              !
-!                                                                      !
-!simplex0: <TSIMPLEX Object>                                           !
-!                                                                      !
-!simplexopt: <constant Object>                                         !
+  "Nelder-Mead Object:"                                                
+  "======================"                                             
+  ""                                                                   
+  "Simplex0 Method : axes"                                             
+  "Simplex0 Length : 20"                                               
+  "Simplex0, Pfeffer, Delta Usual : 0.05"                              
+  "Simplex0, Pfeffer, Delta Zero : 0.0075"                             
+  "Simplex0, Given, Coords :"                                          
+  "[]"                                                                 
+  ""                                                                   
+  "Termination parameters"                                             
+  "Termination on simplex size : T"                                    
+  "Termination on simplex size, Absolute Tolerance : 0"                
+  "Termination on simplex size, Relative Tolerance : 0.0001"           
+  "Termination on simplex size, Initial Simplex Size : 0"              
+  "Termination on simplex size + Delta of function value : F"          
+  "Termination on simplex size + Delta of function value, Absolute Tolerance on Delta F : 2.220D-16"
+  "Termination on Kelley's Stagnation : F"                             
+  "Termination on Kelley's Stagnation, Normalization : T"              
+  "Termination on Kelley's Stagnation, Alpha0 : 0.0001"                
+  "Termination on Kelley's Stagnation, Alpha : 0.0001"                 
+  "Termination by Box : F"                                             
+  "Termination by Box, Absolute Tolerance on Function: 0.00001"        
+  "Termination by Box, Maximum Number of Consecutive Match : 5"        
+  "Termination by Box, Current Number of Consecutive Match : 0"        
+  "Termination on Variance : F"                                        
+  "Termination on Variance, Absolute Tolerance : 0"                    
+  "Termination on Variance, Relative Tolerance : 2.220D-16"            
+  "Termination on Variance, Variance of Initial Simplex : 0"           
+  ""                                                                   
+  "Algorithms parameters"                                              
+  "Method : box"                                                       
+  "Reflection Factor (rho) : 1"                                        
+  "Expansion Factor (chi) : 2"                                         
+  "Contraction Factor (gamma) : 0.5"                                   
+  "Shrinkage Factor (sigma) : 0.5"                                     
+  "Kelley Stagnation : F"                                              
+  "Restart Epsilon : 2.220D-16"                                        
+  "Restart Step : 1"                                                   
+  "Restart Maximum : 3"                                                
+  "Restart Simplex Method : oriented"                                  
+  "Restart Flag : F"                                                   
+  "Restart Number : 0"                                                 
+  "Restart Detection Method : oneill"                                  
+  "Startup Flag : F"                                                   
+  "Automatic Checking of Cost Function : T"                            
+  "Box, Number of Points  : 2n"                                        
+  "Box, Current Number of Points  : 0"                                 
+  "Box, Scaling, Factor  : 0.5"                                        
+  "Box, Scaling, Method  : tox0"                                       
+  "Box, Scaling, Minimum : 0.00001"                                    
+  "Box, Bounds Parameter: 0.000001"                                    
+  "Box, Reflection Coefficient : 1.3"                                  
+  ""                                                                   
+  "optbase: <TOPTIM Object>"                                           
+  "simplex0: <TSIMPLEX Object>"                                        
+  "simplexopt: <constant Object>"                                      
 assert_checkequal ( typeof(str) , "string" )
  ans  =
   T