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: SACOSO.m
    path of file: ./repos/PlatEMO/PlatEMO/Algorithms/Single-objective optimization/SACOSO
    
    the code of the file until where you have to start completion: classdef SACOSO < ALGORITHM
% <single> <real/integer> <large/none> <expensive>
% Surrogate-assisted cooperative swarm optimization
% NFES ---  30 --- Population size of FES-assisted PSO
% NRBF --- 200 --- Population size of RBFNN-assisted PSO

    
function main(Algorithm,Problem)
            assert(~isempty(ver('nnet')),'The execution of SA-COSO requires the Deep Learning Toolbox.');
            
            %% Parameter setting
            [NFES,NRBF] = Algorithm.ParameterSet(30,200);
            
            %% Generate the random population
            N          = NFES + NRBF;
            PopDec     = UniformPoint(N,Problem.D,'Latin');
            Population = Problem.Evaluation(repmat(Problem.upper-Problem.lower,N,1).*PopDec+repmat(Problem.lower,N,1));
            MaxNode    = 8;
            NDB        = MaxNode*Problem.D+10;
            BU         = Problem.upper;
            BD         = Problem.lower;
            
            %% Initialize each swarm
            % FES-assisted swarm
            PosFES   = Population(1:NFES).decs;
            ObjFES   = Population(1:NFES).objs;
            SwarmFES = [PosFES,ObjFES];
            PbestFES = SwarmFES;
            PBEval   = true(N,1);
            notEval  = false(NFES,1);
            notEST   = false(NFES,1);
            [~,best] = min(SwarmFES(:,end