nomad icon indicating copy to clipboard operation
nomad copied to clipboard

Binary vs Integer Variables

Open stumarcus314 opened this issue 1 year ago • 1 comments

If the variables in my optimization problem are all binary, is there any difference internally to NOMAD between specifying them as binary by setting BB_INPUT_TYPE to (B B B) versus specifying them as integers by setting BB_INPUT_TYPE to (I I I) with lower bounds 0 and upper bounds 1? For example, does specifying them explicitly as binary using the first approach realize computational and/or memory efficiencies for NOMAD?

stumarcus314 avatar May 18 '24 19:05 stumarcus314

With the default mesh and direction type used by Nomad, binary variables are converted into integer variables (granularity 1) with 0 and 1 bounds. Other direction types maybe developed in the future that handle binary differently.

ctribes avatar May 22 '24 12:05 ctribes