No BSD License  

Highlights from
MatPlanWDM v0.5

image thumbnail
from MatPlanWDM v0.5 by Pablo Pavon MariƱo
Educational network planning tool for the RWA problem in WDM networks (MILP and heuristic based)

GUILightpathFlowPopupMenu.m
%Popup Menu of lightpaths
set(handles.popupmenu4,'Enable','on');

lightpathMatrixString=cell(size(netState.lightpathTable,1)+1,1);
lightpathMatrixString(1)={['Lightpaths']};
for i=2:size(netState.lightpathTable,1)+1,
    lightpathMatrixString(i)={['lightpath ', num2str(netState.lightpathTable(i-1,1)), ...
        ':  [', num2str(netState.lightpathTable(i-1,2)), '-->', num2str(netState.lightpathTable(i-1,3)),']' ]};
end
set(handles.popupmenu4,'String', lightpathMatrixString);


%Popup Menu of flows
set(handles.popupmenu5,'Enable','on');

flowsMatrixString=cell(size(netState.flowTable,1)+1,1);
flowsMatrixString(1)={['Flows']};
for i=2:size(netState.flowTable,1)+1,
    flowsMatrixString(i)={['flow ', num2str(netState.flowTable(i-1,1)), ...
        ':  [', num2str(netState.flowTable(i-1,2)), '-->', num2str(netState.flowTable(i-1,3)),']' ]};
end
set(handles.popupmenu5,'String', flowsMatrixString);

Contact us at files@mathworks.com