Code covered by the BSD License
-
aboutGUI(varargin)
ABOUTGUI M-file for aboutGUI.fig
-
ctmGUI(varargin)
CTMGUI M-file for ctmGUI.fig
-
ctrlGUI(varargin)
CTRLGUI M-file for ctrlGUI.fig
-
dfltGUI(varargin)
DFLTGUI M-file for dfltGUI.fig
-
fdGUI(varargin)
FDGUI M-file for fdGUI.fig
-
frpGUI(varargin)
FRPGUI M-file for frpGUI.fig
-
fwcfgGUI(varargin)
FWCFGGUI M-file for fwcfgGUI.fig
-
fwcfgGUI(varargin)
FWCFGGUI M-file for fwcfgGUI.fig
-
iofpGUI(varargin)
IOFPGUI M-file for iofpGUI.fig
-
orpGUI(varargin)
ORPGUI M-file for orpGUI.fig
-
prmGUI(varargin)
PRMGUI M-file for prmGUI.fig
-
rdGUI(varargin)
RDGUI M-file for rdGUI.fig
-
save_dialog(varargin)
save_dialog Application M-file for save_dialog.fig
-
aboutGUIclose()
ABOUTGUICLOSE - closes 'About' window.
-
adjust_cell_struct(celldata)
ADJUST_CELL_STRUCT - put fields of cell structure in right order.
-
adjust_fr_flows(densities, fr...
ADJUST_FR_FLOWS - adjust off-ramp flow values using off-ramp flow coefficients
-
adjust_fr_split_ratios(betas,...
ADJUST_FR_SPLIT_RATIOS - multiplies spit ratio by off-ramp flow coefficient.
-
adjust_or_data(demands, orflo...
ADJUST_OR_DATA - adjust on-ramp flow and queue values according to
-
adjust_or_demands(demands, ce...
ADJUST_OR_DEMANDS - multiplies demand by on-ramp demand coefficient.
-
adjust_or_flow_limits(densiti...
ADJUST_OR_FLOW_LIMITS - set maximum possible values for on-ramp flows.
-
adjust_or_flows(densities, or...
ADJUST_OR_FLOWS - make sure on-ramp flows do not exceed allowed limits.
-
assign_pm(celldata, pmstart, ...
ASSIGN_PM - assign post miles to cells.
-
auto_control(densities, ordat...
AUTO_CONTROL - invoke on-ramp flow controllers.
-
auto_fr_split_ratios(celldata...
AUTO_FR_SPLIT_RATIOS - update the array of cell data structures with automatically
-
auto_or_flows(celldata)
AUTO_OR_FLOWS - update the array of cell data structures with automatically
-
compute_densities(densities, ...
COMPUTE_DENSITIES - implementation of conservation equation.
-
compute_densities_2(densities...
COMPUTE_DENSITIES_2 - implementation of conservation equation.
-
compute_flows(densities, cell...
COMPUTE_FLOWS - computes and returns flows based on densities,
-
compute_flows_2(densities, fr...
COMPUTE_FLOWS_2 - computes and returns flows based on densities,
-
compute_fr_flows(densities, f...
COMPUTE_FR_FLOWS - compute off-ramp flow values from the vector of flows
-
compute_fr_split_ratios(densi...
COMPUTE_FR_SPLIT_RATIOS - compute off-ramp split ratios from the vector of flows
-
compute_prodloss(densities, f...
COMPUTE_PRODLOSS - computes and returns Productivity Loss based on densities,
-
compute_speeds(densities, flo...
COMPUTE_SPEEDS - compute speeds from densities and flows.
-
compute_speeds_2(densities, f...
COMPUTE_SPEEDS_2 - compute speeds from densities and flows.
-
compute_traveltime(speeds, ce...
COMPUTE_TRAVELTIME - computes and returns individual travel time (in minutes)
-
compute_vht(densities, orqueu...
COMPUTE_VHT - computes and returns Vehicle Hours Traveled (VHT) based on densities
-
compute_vmt(densities, speeds...
COMPUTE_VMT - computes and returns Vehicle Miles Traveled (VMT) based on densities
-
controller_alinea(densities, ...
CONTROLLER_ALINEA - implementation of ALINEA controller.
-
controller_cp(densities, flow...
CONTROLLER_CP - implementation of 'Proportional in Congestion' controller.
-
controller_irm(densities, flo...
CONTROLLER_IRm - implementation of "Ideal" Ramp Metering strategy.
-
controller_lqi(densities, flo...
CONTROLLER_LQI - implementation of LQI controller.
-
controller_mirm(densities, fl...
CONTROLLER_MIRM - implementation of Modified "Ideal" Ramp Metering strategy,
-
controller_q_override(demands...
CONTROLLER_Q_OVERRIDE - implementation of Queue Override Queue Controller.
-
controller_q_proportional(dem...
CONTROLLER_Q_PROPORTIONAL - implementation of Proportional Queue Controller.
-
controller_swarm(densities, f...
CONTROLLER_SWARM - combination of SWARM1 and SWARM2B controllers,
-
controller_swarm1(densities, ...
CONTROLLER_SWARM1 - implementation of SWARM 1 ramp metering strategy.
-
controller_swarm2b(densities,...
CONTROLLER_SWARM2B - implementation of SWARM 2B ramp metering strategy with
-
ctmBATCH()
CTMBATCH - equivalent of CTMGUI for batch mode, called from CTMSIM.
-
ctmGUIclose()
CTMGUICLOSE - performs cleanup and closes 'ctmGUI' window;
-
ctmsim(cfg_file, btch)
CTMSIM - starts CTM simulation application.
-
ctrlGUIclose()
CTRLGUICLOSE - saves data if necessary, performs cleanup and closes 'ctrlGUI' window;
-
dfltGUIclose()
DFLTGUICLOSE - saves data if necessary, performs cleanup and closes 'dfltGUI' window;
-
fdGUIclose()
FDGUICLOSE - saves data if necessary, performs cleanup and closes 'fdGUI' window;
-
frpGUIclose()
FRPGUICLOSE - saves data if necessary, performs cleanup and closes 'frpGUI' window;
-
fwcfgGUIclose()
FRPGUICLOSE - saves data if necessary, performs cleanup and closes 'fwcfgGUI' window;
-
fwconfig(cfg_file)
FWCONFIG - freeway configuration editor for ACTM.
-
get_cell_lengths(celldata)
GET_CELL_LENGTHS - extract cell lengths from the array
-
get_cell_list(celldata)
GET_CELL_LIST - populate text buffer with cell names.
-
get_color_grade(densities, fl...
GET_COLOR_GRADE - returns array of colors that corresponds to the array of
-
get_controller_periods(cellda...
GET_CONTROLLER_PERIODS - for every on-ramp controller obtain the number
-
get_critical_densities(cellda...
GET_CRITICAL_DENSITIES - extract critical density values from the array
-
get_cw_speeds(celldata)
GET_CW_SPEEDS - extract congestion wave speeds from the array
-
get_ff_speeds(celldata)
GET_FF_SPEEDS - extract free-flow speeds from the array
-
get_fr_splitratios(celldata)
GET_FR_SPLITRATIOS - extract off-ramp split ratio values from the array
-
get_jam_densities(celldata)
GET_JAM_DENSITIES - extract jam density values from the array
-
get_max_df(celldata)
GET_MAX_DF - find maximum possible values for density and flow on the whole
-
get_max_flows(celldata)
GET_MAX_FLOWS - extract maximum flow values from the array
-
get_mlc_default(cid)
GET_MLC_DEFAULT - for the specified on-ramp main line controller,
-
get_or_flows(celldata)
GET_OR_FLOWS - extract on-ramp flow values from the array
-
get_or_fmax(celldata)
GET_OR_FLOWS - extract on-ramp maximum flow values from the array
-
get_pm_data(celldata)
% GET_PM_DATA - returns the array of post miles extracted from the array of
-
get_qc_default(cid)
GET_QC_DEFAULT - for the specified on-ramp queue controller,
-
get_ramp_lists(celldata)
GET_RAMP_LISTS - populate to text buffers with on-ramp and off-ramp names.
-
get_rbflow(density, orflow, f...
GET_RBFLOW - compute flow leaving given freeway cell.
-
get_rbflow_2(density, orflow,...
GET_RBFLOW_2 - compute flow leaving given freeway cell using off-ramp flow.
-
install(root)
-
iofpGUIclose()
IOFPGUICLOSE - saves data if necessary, performs cleanup and closes 'iofpGUI' window;
-
mydare(A, B, Q, varargin)
MYDARE - solve discrete-time algebraic Riccati equation.
-
ormlc_menu_action(handles)
ORMLC_MENU_ACTION - controller parameter name/value display in ctrlGUI.
-
orpGUIclose()
ORPGUICLOSE - saves data if necessary, performs cleanup and closes 'orpGUI' window;
-
orqc_menu_action(handles)
ORQC_MENU_ACTION - queue controller parameter name/value display in ctrlGUI.
-
plot_compare(pems, sim, ts)
PLOT_COMPARE - plots aggregate data - VHT, VMT, DELAY - comparing PEMS
-
plot_data_0(handles)
PLOT_DATA_0 - clears flow and density (or speed) plots in the main screen
-
plot_data_1(handles)
PLOT_DATA_1 - plots flow and density (or speed) data in the main screen
-
plot_data_10(handles)
PLOT_DATA_10 - clears on-ramp flow and queue plots in the main screen
-
plot_data_11(handles, demands...
PLOT_DATA_11 - plots on-ramp flow and queue data in the main screen
-
plot_data_20(handles)
PLOT_DATA_20 - clears off-ramp flow and split ratio plots in the main screen
-
plot_data_21(handles)
PLOT_DATA_21 - plots off-ramp flow and split ratio data in the main screen
-
plot_data_30(handles)
PLOT_DATA_30 - clears VHT and VMT plots in the main screen of ctmGUI.
-
plot_data_31(handles)
PLOT_DATA_31 - plots VHT and VMT data in the main screen of ctmGUI.
-
plot_data_T(handles)
PLOT_DATA_T - plots correct data in the Travel Time axes: Trvel Time,
-
plot_freeway(celldata)
PLOT_FREEWAY - plot freeway configuration using data in cell structure array.
-
plot_fwcell(cell)
PLOT_FREEWAY - plot freeway cell using data in the cell structure.
-
plot_fwselect(celldata, idx, ...
PLOT_FWSELECT - plot selected freeway cell.
-
plotbar(X, Y, C)
-
plotfd(celldata, idx)
PLOTFD - plot fundamental diagram for given freeway cell.
-
plotsim(fname, qntity, cells,...
PLOTSIM - plot specified simulation results coming from CTMSIM.
-
plotsim3(fname, qntity, cells...
PLOTSIM3 - plot specified simulation results coming from CTMSIM in 3D.
-
prmGUIclose()
PRMGUICLOSE - saves data if necessary, performs cleanup and closes 'prmGUI' window;
-
rdGUIclose()
RDGUICLOSE - saves data if necessary, performs cleanup and closes 'rdGUI' window;
-
save_config(cfg_struct, fname...
SAVE_CONFIG - save configuration.
-
save_controllers(mycd, cfgf)
SAVE_CONTROLLERS - saves the controller data in the 'celldata' variable
-
save_fd(mycd, cfgf)
SAVE_FD - saves the fundamental diagram data in the 'celldata' variable
-
save_frparams(mycd, cfgf)
SAVE_FRPARAMS - saves the off-ramp parameters in the 'celldata' variable
-
save_orparams(mycd, cfgf)
SAVE_ORPARAMS - saves the on-ramp parameters in the 'celldata' variable
-
save_rd(mycd, ifl, ofl, cfgf)
SAVE_RD - saves the ramp data in the 'celldata' variable
-
set_densities(den, fn)
% SET_DENSITIES - set initial densities in the ctmsim configuration file.
-
set_fr_split_ratios(celldata,...
SET_FR_SPLIT_RATIOS - set off-ramp split ratio values to the array of freeway
-
set_or_flows(celldata, flows)
SET_OR_FLOWS - set on-ramp flow values to the array of freeway
-
simulation_step(celldata, ...
SIMULATION_STEP - computes CTM values (densities; mainline, offramp flows;
-
simulation_step_2(celldata, ....
SIMULATION_STEP_2 - computes CTM values (densities; mainline flows;
-
contents.m
-
View all files
from
CTMSIM - an interactive freeway traffic macrosimulator
by Alex Kurzhanskiy
Freeway traffic simulation based on Asymmetric Cell Transmission Model
|
| save_config(cfg_struct, fname)
|
function save_config(cfg_struct, fname)
% SAVE_CONFIG - save configuration.
%
% Call: save_config(cfg_struct, fname)
%
% Parameters:
% cfg_struct - structure with freeway configuration;
% fname - name of file where configuration must be saved.
%
% Returns: none.
%
% Last modified: 11/17/2006.
%
% Alex Kurzhanskiy <akurzhan@eecs.berkeley.edu>
%
if isfield(cfg_struct, 'configFile') & ~isempty(cfg_struct.configFile)
load(cfg_struct.configFile);
end
celldata = cfg_struct.cellData;
defaultCell = cfg_struct.defaultCell;
freeway = cfg_struct.freeway;
configFile = fname;
clear cfg_struct fname;
if str2num(version('-release')) >= 14
feval(@save, '-v6', configFile);
else
feval(@save, configFile);
end
return;
|
|
Contact us at files@mathworks.com