You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: EGO.m
    path of file: ./repos/PlatEMO/PlatEMO/Algorithms/Single-objective optimization/EGO
    
    the code of the file until where you have to start completion: classdef EGO < ALGORITHM
% <single> <real/integer> <expensive>
% Efficient global optimization
% IFEs --- 10000 --- Internal GA evals per iteration

%------------------------------- Reference --------------------------------
% D. R. Jones, M. Schonlau, and W. J. Welch, Efficient global optimization
% of expensive black-box functions, Journal of Global optimization, 1998,
% 13(4): 455-492.
%-
    
function main(Algorithm,Problem)
            %% Parameter setting
            IFEs = Algorithm.ParameterSet(10000);
            
            %% Generate the random population
            N          = 10*Problem.D;
            PopDec     = UniformPoint(N,Problem.D,'Latin');
            Population = Problem.Evaluation(repmat(Problem.upper-Problem.lower,N,1).*PopDec+repmat(Problem.lower,N,1));
            theta      = 10.*ones(1,Problem.D);
            
            %% Optimization
            while Algorithm.NotTerminated(Population)
                % Select initial population
                [N,D] = size(Population.decs);
                if N > 11*D-1
                    [~,index] = sort(Population.objs);
                    Next      = index(1:11*D-1);
                else
                    Next = true(N,1);
                end