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: MOEAIGDNS.m
    path of file: ./repos/PlatEMO/PlatEMO/Algorithms/Multi-objective optimization/MOEA-IGD-NS
    
    the code of the file until where you have to start completion: classdef MOEAIGDNS < ALGORITHM
% <multi> <real/integer/label/binary/permutation>
% Multi-objective evolutionary algorithm based on an enhanced IGD

%------------------------------- Reference --------------------------------
% Y. Tian, X. Zhang, R. Cheng, and Y. Jin, A multi-objective evolutionary
    
function main(Algorithm,Problem)
            %% Generate the sampling points and random population
            Population = Problem.Initialization();
            Archive    = UpdateArchive(Population,5*Problem.N);

            %% Optimization
            while Algorithm.NotTerminated(Population)
                MatingPool = randi(Problem.N,1,Problem.N);
                Offspring  = OperatorGA(Problem,Population(MatingPool));
                Archive    = UpdateArchive([Archive,Offspring],5*Problem.N);
                Population = EnvironmentalSelection([Population,Offspring],Archive.objs,Problem.N);
            end