I am a final year Mechanical Student and I am doing my Final year project in C++. My project requires some complicated programming in C++..
Here are the details.
Initially I need to create a random matrix.
The user will give the no of rows and columns.
For example, if the user gives no of rows as 5 and no of columns as 5, the program must randomly generate 5*5 matrix.
Also the numbers must range from 0 to 1.5 only.. All are decimal numbers..
For example, if it is a 5*5 matrix, all 25 numbers should not be non zero. Almost 15 or 16 numbers should be zero. The rest of the non zero numbers should be dispersed such that no row contains all numbers as zeros..
This must work out for any number of row or column..
Next step is even more difficult.
The program must shuffle the rows and columns of this matrix and obtain 10 new matrices..
The initial matrix should be rearranged randomly to give these 10 matrices.
After this I have to apply PSO algorithm to these matrices. But that is only after this program.
Please Help friends.