When I try to use it, I get errors saying that I'm giving surrogateopt too many input arguments. Looking at the surrogateopt file, it indeed is missing the input intcon.
I have version 2019a. Is there something going on that I'm missing? Is intcon available in 2019b? I notice intcon is actually only available in GA, but my objective function is expensive to evaluate, so the surrogate method is much preferred.