from PSO solution to economic dispatch by Saloman Danaraj
This program solves the economic dispatch problem by PSO toolbox developed by Brian birge.Two exampl

forcerow.m
% forcerow.m
% function to force a vector to be a single row
%
% Brian Birge
% Rev 2.0 - vectorized
% 7/1/98

function[out]=forcerow(in)
len=prod(size(in));
out=reshape(in,[1,len]);

Contact us at files@mathworks.com