Description of the Ising instances included in this directory and example of the application of the functions for loading the instances and evaluating a solution
0001 % Description of the Ising instances included in this directory and 0002 % example of the application of the functions for loading the instances 0003 % and evaluating a solution 0004 0005 % Maximum value for the 24 instances 0006 MaxIsing=[18,20,24,18, 50,52,48,50, 86,84,88,94, 136,142,142,138,348,368,356,352, 572,556,554,576]; 0007 0008 % Number of variables 0009 allvars24=[16,16,16,16, 36,36,36,36, 64,64,64,64, 100,100,100,100,256,256,256,256, 400,400,400,400]; 0010 0011 % Problem size 0012 n=16; 0013 0014 % Number of instance for the problem size 0015 inst=1; 0016 0017 % Generate a random individual 0018 ind = fix(2*rand(1,n)); 0019 0020 [J,Inters]=LoadIsing(n, inst); % The instance is loaded 0021 0022 result = EvalIsing(ind, J, Inters); % The individual is evaluated