Commits

Ruben Martinez-Cantin  committed b79d563

Runtest shows discrete results

  • Participants
  • Parent commits 7562643

Comments (0)

Files changed (1)

File matlab/runtest.m

 tic;
 bayesoptcont(fun,n,params,lb,ub)
 toc;
+disp('Press INTRO');
 pause;
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 xset = repmat((ub-lb),1,np) .* rand(n,np) - repmat(lb,1,np);
 
 tic;
-bayesoptdisc(fun, xset, params);
+bayesoptdisc(fun, xset, params)
 toc;
 yset = zeros(np,1);
 for i=1:np
     yset(i) = feval(fun,xset(:,i));
 end;
 [y_min,id] = min(yset);
+disp('Actual optimal');
 disp(xset(:,id));
 disp(y_min);
+disp('Press INTRO');
 pause;
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%