Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check ISING Model Formula on PBO suite website #2

Open
thomasWeise opened this issue Jan 15, 2020 · 2 comments
Open

Check ISING Model Formula on PBO suite website #2

thomasWeise opened this issue Jan 15, 2020 · 2 comments

Comments

@thomasWeise
Copy link

thomasWeise commented Jan 15, 2020

Hi.

On the Pseudo-Boolean Optimization (PBO) website (https://iohprofiler.github.io/Suites/PBO/), the ISING model is defined as: sum over x[i]x[j] - ((1-x[i])(1-x[j])):

$[ISING:] \sum\limits_{\{i,j\} \in {E}} \left[x_{i}x_{j} - \left(1-x_{i} \right)\left(1-x_{j} \right) \right] $,

However, it is implemented, e.g., in f_ising_1D.hpp, as x[i]x[j] + ((1-x[i])(1-x[j])):

        result += (x[i] *first_neig) + ((1- x[i])*(1- first_neig));
        result += (x[i] *second_neig) + ((1- x[i])*(1- second_neig));

Notice the difference between the + and the - in the middle.

I think the implementation is correct.
The Ising model should have global optima at all-0 and all-1.
You get this only with the +, because then, you have 1*1+(1-1)(1-1)=1+0=1 for the all-1 string and 0*0+(1-0)(1-0)=0+1=1 for the all-0 string (times N of course).
Otherwise you would have get 0-1=-1 for the all-0 string.

@thomasWeise
Copy link
Author

(Regarding "I think the implementation is correct" above, I now have second thoughts, but there I might be wrong. Please check: IOHprofiler/IOHexperimenter#26)

@thomasWeise
Copy link
Author

[See also newest comment on https://github.com/IOHprofiler/IOHexperimenter/issues/26]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant