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: RVEA.m
    path of file: ./repos/PlatEMO/PlatEMO/Algorithms/Multi-objective optimization/RVEA
    
    the code of the file until where you have to start completion: classdef RVEA < ALGORITHM
% <multi/many> <real/integer/label/binary/permutation> <constrained/none>
% Reference vector guided evolutionary algorithm
% alpha ---   2 --- The parameter controlling the rate of change of penalty
% fr    --- 0.1 --- The frequency of employing reference vector adaptation

%-------
    
function main(Algorithm,Problem)
            %% Parameter setting
            [alpha,fr] = Algorithm.ParameterSet(2,0.1);

            %% Generate the reference points and random population
            [V0,Problem.N] = UniformPoint(Problem.N,Problem.M);
            Population     = Problem.Initialization();
            V              = V0;

            %% Optimization
            while Algorithm.NotTerminated(Population)
                MatingPool = randi(length(Population),1,Problem.N);
                Offspring  = OperatorGA(Problem,Population(MatingPool));
                Population = EnvironmentalSelection([Population,Offspring],V,(Problem.FE/Problem.maxFE)^alpha);
                if ~mod(ceil(Problem.FE/Problem.N),ceil(fr*Problem.maxFE/Problem.N))
                    V(1:Problem.N,:) = ReferenceVectorAdaptation(Population.objs,V0);
                end