Traditional Culture Encyclopedia - Traditional stories - How to realize parallel algorithm of genetic algorithm
How to realize parallel algorithm of genetic algorithm
It is very simple to realize parallelism in Matlab, just change for to parfor.
First, you need to start the parallel robot. If the computer has several CPUs, you can start several. If the number of CPU cores is exceeded, it will report an error.
matlabpool? Local? Remember to turn it off at last.
matlabpool? Close needs to pay attention to the use of parfor. There can be no iteration in the middle of the loop, but only simple calculations, such as calculating the objective function value.
- Previous article:How to cook bacon fried rice?
- Next article:How to design the shape of floor tiles to look good?
- Related articles
- Do you charge for downloading Tai Chi Kung Fu software?
- How to join a fried chicken shop
- What should I do if my small barber shop is not doing well?
- Which heroes in Water Margin have tattoos?
- Traditional cultural clothing exhibition
- What kind of minority musical instrument is Bixiao?
- What resumes should I fill in for the Chinese language and literature major?
- Tea culture is very distinctive. What do you know and understand?
- How did the ancients get their wine quarts? How to make wine quarts?
- Bathroom agent what brand is good