edit-making value as 0

回答 (1 件)

Walter Roberson
Walter Roberson 2012 年 2 月 2 日

0 投票

No.

6 件のコメント

kash
kash 2012 年 2 月 2 日
Walter can u tell why it cannot be done
Walter Roberson
Walter Roberson 2012 年 2 月 2 日
>> why
Because a mathematician insisted on it.
<http://en.wikipedia.org/wiki/Particle_swarm_optimization>
"In computer science, particle swarm optimization (PSO) is a computational method that optimizes a problem by iteratively trying to improve a candidate solution with regard to a given measure of quality."
However, you have not defined a "problem", you have not defined anything that might be considered a "candidate solution", and you have not defined any "measure of quality".
What was your plan? To have the PSO algorithm randomly set locations in the matrix to 0, and for the quality measure, count the number of locations that are correct when compared to the already known result? I don't know... perhaps that could be expressed through particle swarms, but a genetic algorithm would seem a better fit for that approach -- and it would seem to be very pointless since you already know the desired solution. What would your output be, other than the solution that you had already built in to the measure quality? You are perhaps instructed to use PSO many times and report on the number of steps it took, just to press home the point that if you already have the solution you might as well use it directly ???
kash
kash 2012 年 2 月 2 日
Walter actually i dont know how PSO works on ,but i that matrix,i want to make some pixel values as zero,i want to make it for 10 times ,...so in your point of view it is not possible is it so walter
Walter Roberson
Walter Roberson 2012 年 2 月 2 日
Q: "How do you get down off the back of an elephant?"
A: "You don't. You get down off the back of a duck -- it's so much safer."
kash
kash 2012 年 2 月 3 日
Walter cant get what you are saying....but i am badly in need of PSO ,PLEASE help
Walter Roberson
Walter Roberson 2012 年 2 月 3 日
There are a large number of different PSO contributions in the MATLAB File Exchange. Pick one and start working with it. At the very least you will learn something about how PSO works.
I am not certain that PSO can be used at all for your situation. If it can be, it would have to be by very artificial and contorted means, a Rube Goldberg machine. Figuring out how to do it (if it can be done at all) would take a lot of time and effort; I do not have the time or the effort or the interest or any motivation to figure out how to do it.

この質問は閉じられています。

タグ

質問済み:

2012 年 2 月 2 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by