Instructions for Matlab Visualization Tool for Yes/NO Optimization testbench problems

You can of course write your own tools, but you may find the following convenient. It contains macros and precomputed data sets for plotting feasible regions and level sets of the objective. You can superimpose iterates from your favorite method if you desire.


% How to use this stuff in matlab:
% --------------------------------
%   Retrieve Visualize-(version number).tar (Amout 660K)
%   Unpack (tar -xvf *.tar; gunzip *.gz)  everything into a single 
%         directory. (About 18 meg)
%
%   Start matlab.
%
%   For a given problem and value of params(1), type in the matlab
%     command listed in the table on the next page.
%
%   Type 'hold'
%   Plot whatever iterates you want using the plot command. 
%   They will appear superimposed on this plot. A sample syntax
%   for plotting your first 20 iterates in 2 different colors might be:
%          for i=1:20
%             if i<10,plot(x(i),y(i),'g*'),end
%             if i>9, plot(x(i),y(i),'bx'),end
%          end
%   Type 'hold' again to release the plot when you are done.
% 
% Table of macros:
% 
% Prob     Param       Matlab command
% ----     -----       --------------
%   1                    A1
%   2       5            A2
%          40            A2a
%          50            A2b
%          85            A2c
%   3      .05           A3
%          .3            A3a
%          .8            A3b
%          .95           A3c
%   4                    A4
%   5                    A5
%   6                    A6
%   7      -40           A7
%          -20           A7a
%           15           A7b
%           35           A7c
%   8                    A8
%   9       2.           A9
%           1.           A9a
%           .5           A9b
%           .1           A9c
%  10       45           A10
%           30           A10a
%           15           A10b
%            5           A10c
%  11                    A11
%  12                    A12
% 
% 
% Notes:
%  Red * is the standard starting point.
%  Yellow * is the edge starting point.
%  White * is the true solution.
% 
% To generate and print postscript (.ps) plots of all these cases, 
% 
%    matlab
%    B
%    lpr *.ps
% 

Return to the YES/NO constraint page.

Return to Richard Carter's page.


Back to CAAM Home Page
webmaster@caam.rice.edu -- 1998-August-25