N queens problem with simulated annealing algorithm solution

I have asked in the previous question the data structure I will follow for solving the N Queens problem.
Here is my previous question about N -queens  algorithm.

http://www.experts-exchange.com/Programming/Q_21810242.html
and
http://www.experts-exchange.com/Programming/Q_21811122.html

It is better to read it first to understand this question.

I want to ask how can i now move the queens randomly according to the number of conflicts they have?
The bigger the number of conflicts the bigger probability to move further. The queens are also restricted in the N x N space.
I don't want to follow a hill climbing approach but a simulated annealing algorithm where in the beginning i will have big probability to accept bad soution .
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
A typical simulated annealing algorithm would try a move to a random neighbouring state,
(you might consider neighbouring state to be a move of one queen by one space, or moving one queen to any other space, or moving one queen horizonally, or moving any number of queens by one space.  It could help if you can define your neighborhood such that good solutions tend to be close to other good solutions)
and reject that move if e^-D/T > (random number between 0 and 1) where D is the change in energy and T is the temperature.
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Author Commented:
I have as valid positions the queens to move in the same column so i eliminate big proportion of the state space .
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Game Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.