Merging mk rev. 211, 212: Matlab interface now works with binary data using uint32 (GAIndividualIntegerData).

This commit is contained in:
Marcel Kronfeld
2008-09-19 12:49:13 +00:00
parent 45d35a68e3
commit d6f2ec1ad1
12 changed files with 359 additions and 235 deletions

View File

@@ -64,10 +64,24 @@ try
int.mediator.run;
if (~int.mediator.isFinished())
x = int.mediator.getQuestion();
if (isempty(int.args))
res = feval(int.f, x);
else
res = feval(int.f, x, int.args);
if (isempty(int.range))
%size(x)
x=convertUnsignedJE(int, x);
%disp('here B');
%x
end
% size(x)
try
if (isempty(int.args))
res = feval(int.f, x);
else
res = feval(int.f, x, int.args);
end
%res
catch ME
disp('function evaluation failed:');
disp(ME.message);
stopOptimization=1;
end
int.mediator.setAnswer(res);
drawnow;
@@ -79,8 +93,9 @@ try
end
end
clear global JEMediator;
catch
catch ME
disp('Error in evaluate!');
disp(ME.message);
%int.mediator.quit; % just in case
%int.mediator='';