I would like to generate all feasable solution which their gap is within 0.1% and 0.2%. Is-it possible?! How could I implement this algoritm. I would like to record and export every solution on .txt folder.
I tried to develop something like.
forall(i in Iteration) do
mipObjVal := getparam("XPRS_MIPOBJVAL")
bestBound := getparam("XPRS_BESTBOUND")
gap := abs((mipObjVal- bestBound)*100/mipObjVal )
if gap<=0.1 then
writeln("Global Cost :\t", getsol(fonction1),"\t","$")
However, this algorithm generate only one best solution! Could anybody help me pliiizz!
Many thanks !!!