function [ output_args ] = obj( this ) %OBJ Summary of this function goes here % Detailed explanation goes here wPD=this.wPD; wQD=this.wQD; PD=this.PD; QD=this.QD; wVolt=t t4=wPD.*(PD(PD0~=0)-PD0(PD0~=0)).^2; t5=wQD.*(QD(QD0~=0)-QD0(QD0~=0)).^2; t6=wVolt.*(Volt-Volt0').^2; out_arg=sum(t4)+sum(t5)+sum(t6); end