function out = objective(X,params) a = params(1); %w = params(2); C = X(1); L = X(2); out = -(log(C) + a*L);