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: bilinearGradientProcessOverlapSum.m
    path of file: ./repos/CADET/src/cadet-mi/examples/publications/LewekeEtAl2018/procopt
    
    the code of the file until where you have to start completion: function [gradientShape, overlaps, optResult] = bilinearGradientProcessOverlapSum(initGradient, colLength, absMode, elutionConstraint, algorithm)
%BILINEARGRADIENTPROCESSOVERLAPSUM Optimizes the separation of a three component SMA process by minimizing the sum of peak overlaps
%  
%   The optimizer can vary the 
    
function [c,ceq,gradc,gradceq] = constraints(x)
		% Calculates the constraints
		
		% Inverse transform from optimizer to simulator space
		x = x * invTransform';
		
		% Perform simulation if parameters have changed
		result = performSimulation(sim, result, x, nargout > 2);
		outlet = result.solution.outlet{1};

		bp = getBasicParams();

		% No equality constraints
		ceq = [];

		% Constraint for complete elution
		if elutionConstraint == 1
			% c_i(t_end