Code covered by the BSD License
-
Exercise1_SimBio_parfor
-
Exercise3_SimBio_jobs
-
Exercise5_batch_parfor
-
Exercise6_batch_spmd
-
Message Passing used in Calcu...
-
Portfolio Optimization Demo (...
-
Demo1_plot_optim(fig, risk, r...
PCTDEMO_PLOT_OPTIM Create the graphs for the Parallel Computing Toolbox
-
Demo1_plot_optim(fig, risk, r...
PCTDEMO_PLOT_OPTIM Create the graphs for the Parallel Computing Toolbox
-
Demo1_setup_optim(difficulty)
PCTDEMO_SETUP_OPTIM Perform the initialization for the Parallel Computing
-
Demo1_setup_optim(difficulty)
PCTDEMO_SETUP_OPTIM Perform the initialization for the Parallel Computing
-
Demo1_task_optim(covMat, expR...
PCTDEMO_TASK_OPTIM Find the frontier for a stock portfolio with the given
-
Demo1_task_optim_parfor(covMa...
PCTDEMO_TASK_OPTIM Find the frontier for a stock portfolio with the given
-
Demo1_task_optim_parfor(covMa...
PCTDEMO_TASK_OPTIM Find the frontier for a stock portfolio with the given
-
Demo4_plot_optim(fig, risk, r...
PCTDEMO_PLOT_OPTIM Create the graphs for the Parallel Computing Toolbox
-
Demo4_setup_optim(difficulty)
PCTDEMO_SETUP_OPTIM Perform the initialization for the Parallel Computing
-
Demo4_task_optim(covMat, expR...
PCTDEMO_TASK_OPTIM Find the frontier for a stock portfolio with the given
-
Demo4_task_optim_jobs(covMat,...
Demo4_task_optim_scheduled_job Find the frontier for a stock portfolio with the given
-
Demo6_plot_optim(fig, risk, r...
PCTDEMO_PLOT_OPTIM Create the graphs for the Parallel Computing Toolbox
-
Demo6_setup_optim(difficulty)
PCTDEMO_SETUP_OPTIM Perform the initialization for the Parallel Computing
-
Demo6_task_optim_parfor(covMa...
Demo6_task_optim_parfor Find the frontier for a stock portfolio with the given
-
Exercise2_loadReturns(nFiles,...
Loads in data from up mat files inside
-
Exercise2_plot_optim(fig, ris...
PCTDEMO_PLOT_OPTIM Create the graphs for the Parallel Computing Toolbox
-
Exercise2_task_optim(covMat, ...
PCTDEMO_TASK_OPTIM Find the frontier for a stock portfolio with the given
-
Exercise6_loadReturns(nFiles,...
Loads in data from up mat files inside
-
Exercise6_plot_optim(fig, ris...
PCTDEMO_PLOT_OPTIM Create the graphs for the Parallel Computing Toolbox
-
Exercise6_task_optim(covMat, ...
PCTDEMO_TASK_OPTIM Find the frontier for a stock portfolio with the given
-
calcRequiredDims(szA, multipl...
-
createSurface( n,distDim )
CREATESURFACE Creates a surface held in distributed arrays
-
haloNodes(A, noElem)
HALONODES returns a variant array containing localPart of the input
-
sampleFunctionAvg (a,sampleRa...
SAMPLEFUNCTION
-
sampleFunctionNoAvg( b, sampl...
SAMPLEFUNCTION2 Summary of this function goes here
-
sbiosimulate_wrapper(noRuns)
Load simbiology project
-
sbiosimulate_wrapper(noRuns)
Load simbiology project
-
sbiosimulate_wrapper(noRuns)
Load simbiology project
-
simulation
Load simbiology project
-
simulation
Load simbiology project
-
simulation
Load simbiology project
-
Demo1_PorfolioOptim.m
-
Demo2_spmd.m
-
Demo3_batchPortfolioOptim.m
-
Demo3_batchSPMD.m
-
Demo3_spmd_script.m
-
Demo3_task_optim_script.m
-
Demo4_PorfolioOptim.m
-
Demo5_MPI.m
-
Demo6_batchPortfolioOptim.m
-
Demo6_task_optim_script.m
-
Exercise5_interactive_parfor.m
-
Exercise5_jobs.m
-
Exercise5_simBioScriptParfor.m
-
Exercise6_OptimScriptSPMD.m
-
Exercise6_interactive_spmd.m
-
Parfor version of Portfolio O...
-
Parfor version of Portfolio O...
-
Parfor version of Portfolio O...
-
Parfor version of Portfolio O...
-
Portfolio Optimization Demo (...
-
View all files
|
|
| Exercise5_simBioScriptParfor.m |
%% Information about the application
% A MATLAB application from the field of systems biology was chosen for
% experimental runs. The application was created using SimBiology which
% extends MATLAB with functionality for modeling, simulating, and
% analyzing biochemical pathways.
%
% The application allows a user to model and simulate the dynamics of a
% simple gene regulation network, and understand the effect of
% stochasticity on the final state of the system. A ensemble of stochastic
% runs were performed on a gene-regulation model, and the distribution of
% state was studied at any given time point. Several hundred thousand
% simulations might need to be performed to obtain a smooth probability
% distribution function, requiring several days of computation on one
% MATLAB.
% The model used in this script was adpated from the following publication :
% Kepler TB, Elston TC. Stochasticity in transcriptional regulation:
% Origins, consequences and % mathematical representations. Biophys J.
% 2001;81:31163136.
%% Version for submission to cluster
% No serial code in this version. Also, when submitting to the cluster via
% batch, you do not need to open up a matlabpool.
% Total number of runs
numberOfRuns = 20;
% Load SimBiology model
sbioloadproject GeneRegulation m1
% Pre-allocate memory
data = zeros(numberOfRuns, numel(m1.Species)) ;
%% Define simulation settings
% Pre-allocate memory
dataParfor = zeros(numberOfRuns, numel(m1.Species)) ;
%% Running an ensemble of stochastic simulations
tic
% change the for loop to a parfor to run in parallel
parfor i = 1:numberOfRuns
dataParfor(i, :) = simulation ;
end
elapsedTimeParallel = toc;
|
|
Contact us at files@mathworks.com