spmd problem with undefinded function for input arguments of type 'Composite'.

조회 수: 6 (최근 30일)
lingyan
lingyan 2013년 6월 25일
Hello,
i want to use spmd like this:
bounds = [-2 2;-2 2];
Problem is a matlab file;
S is a <2*m double> and m is known;
thirds,fc,c,con,feas_flags,fcncounter,szes,impcons,calltype, are all vectors;
lengths is a <2*n double> and n is known;
varargin = {};
spmd
for i = 1:size(S,2)
[lengths,fc,c,con,feas_flags,szes,fcncounter,success] = ...
DIRdivide(bounds(:,1),bounds(:,2),Problem,S(1,i),thirds,lengths,...
fc,c,con,feas_flags,fcncounter,szes,impcons,calltype,varargin{:});
end
end
[minval,fminindex] = min(fc(1:fcncounter)+con(1:fcncounter));
But there is a error when i want to use fc and fcncounter in the last line:Undefined function 'colon' for input arguments of type 'Composite'. How can i correct it?Thank you for the suggestion!
  댓글 수: 2
Jill Reese
Jill Reese 2013년 6월 25일
I think a bit more context is needed for this code snippet. How are bounds and S initialized?
lingyan
lingyan 2013년 6월 25일
Thanks for your comment, i have already new edited.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Parallel Computing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by