README

  This is the readme file for HW13(opt_B):
  The program is used to compute Optimization Function B.

Example to Use:
/////////////////////////////////////////////////////
[ydai@vector5 Robin_OptB]$ make clean
rm -f Robin_HW_Opb
rm -f *.o
rm -f *~
[ydai@vector5 Robin_OptB]$ make
gcc -c -o robin.o robin.c
gcc -c -o vec.o vec.c
gcc -c -o matrix.o matrix.c
gcc -c -o count.o count.c
gcc -c -o fB.o fB.c
gcc -lm -Os -o Robin_HW_Opb robin.o vec.o matrix.o count.o fB.o
[ydai@vector5 Robin_OptB]$ ./Robin_HW_Opb < x.vec
the vector from input is:
1.200000	3.400000	4.500000	6.700000	
function value------------:0.113663
the value of the function is : 0.113663
________________________________________
the value of the df of the function is :
-0.439235	0.612980	0.687808	3.095136	
________________________________________
the value of the ddf of the function is :
-0.868507	-2.185992	-2.307843	0.000000	
0.000000	0.264553	4.069816	2.911143	
0.000000	0.646921	4.216559	3.266516	
0.000000	0.646921	12.475989	3.266516	
________________________________________
the running time of this function is 0.000000
the vector from input is:
1.200000	3.400000	4.500000	6.700000	
function value------------:0.113663
the value of the function is : 0.113663
________________________________________
the value of the df of the function is :
-0.439235	0.612980	0.687808	3.095136	
________________________________________
the value of the ddf of the function is :
-0.868507	-2.185992	-2.307843	0.000000	
0.000000	0.264553	4.069816	2.911143	
0.000000	0.646921	4.216559	3.266516	
0.000000	0.646921	12.475989	3.266516	
________________________________________
the running time of this function is 0.000000
the vector from input is:
1.200000	3.400000	4.500000	77.699997	3.400000	64.000000	
function value------------:-1.399418
the value of the function is : -1.399418
________________________________________
the value of the df of the function is :
-0.439235	-0.163057	-0.956140	-0.119021	73.928398	-0.957592	
________________________________________
the value of the ddf of the function is :
-0.868507	-2.185992	-2.307843	0.000000	0.000000	0.000000	
0.000000	0.863834	67.214088	3.942737	0.000000	0.000000	
0.000000	0.876164	76.267159	2.853498	-18.639776	0.000000	
0.000000	0.876164	15.542587	6.560390	76.815117	2.904814	
0.000000	0.000000	-0.239894	1809.505859	83.580032	3.262364	
0.000000	0.000000	0.000000	0.854357	7.905579	3.262364	
________________________________________
the running time of this function is 0.000000
[ydai@vector5 Robin_OptB]$ 

///////////////////////////////////////////////////

another testing file is x2.vec
 
7/30/2009
Robin