Skip to content

Commit 8a4de7a

Browse files
committed
Add codes from final report submission
1 parent f15a888 commit 8a4de7a

File tree

3 files changed

+2219
-330012
lines changed

3 files changed

+2219
-330012
lines changed

Examples/example_SSITBasics.m

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
F1.tSpan = [-1:1:10];
2424
F1.initialTime = -1;
2525
F1.solutionScheme = 'FSP'; % Set solutions scheme to FSP.
26-
[FSPsoln,F1.fspOptions.bounds] = F1.solve; % Solve the FSP analysis
26+
[FSPsoln,F1.fspOptions.bounds] = F1.solve([], 'fsp_out.csv'); % Solve the FSP analysis
2727

2828
%% (2A.1) Solve FSP Model again using the bounds from the last solution
2929
% If we start with the bounds computed in the first analysis, the solution is
@@ -37,7 +37,9 @@
3737
%% (2B) Solve using SSA
3838
F2 = F1;
3939
F2.solutionScheme = 'SSA';
40-
SSASoln = F2.solve;
40+
F2.ssaOptions.Nexp = 2;
41+
F2.ssaOptions.nSimsPerExpt = 200;
42+
SSASoln = F2.solve([], 'ssa_out3.csv');
4143

4244
%% (2B.1) Make plots of SSA solution
4345
F2.makePlot(SSASoln,'trajectories',[],[],4) % Make some plots.

WorkSpace/Dmitri/NegativeFeedbackDelayedProduction.m

+14-9
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,19 @@
5959
Model = Model.formPropensitiesGeneral('NFDP');
6060

6161
Model.solutionScheme = 'SSA';
62-
Model.ssaOptions.Nexp = 2; % Number of independent data sets to generate.
63-
Model.ssaOptions.nSimsPerExpt = 1000; % Number of cells to include at each time point for each data set.
62+
63+
% Number of independent data sets to generate.
64+
Model.ssaOptions.Nexp = 1;
65+
66+
% Number of cells to include at each time point for each data set.
67+
Model.ssaOptions.nSimsPerExpt = 200;
68+
6469
tic;
65-
SSAsoln = Model.solve;
70+
SSAsoln = Model.solve([], 'ssa_out.csv');
6671
SSAtime = toc;
6772

68-
save SSAtime.mat SSAtime
69-
save SSAsoln.mat SSAsoln
73+
%save SSAtime.mat SSAtime
74+
%save SSAsoln.mat SSAsoln
7075

7176
%% Plot trajectories
7277
Model.makePlot(SSAsoln,'trajectories',[],[]) % Make some plots.
@@ -84,8 +89,8 @@
8489
[piFSPsoln, piModel.fspOptions.bounds] = piModel.solve;
8590
piFSPtimes(Mcntr) = toc;
8691

87-
piModel.makePlot(piFSPsoln,'meansAndDevs',[],[]) % Make plot of mean vs. time.
88-
piModel.makePlot(piFSPsoln,'marginals',[],[]) % Make plot of marginals
92+
%piModel.makePlot(piFSPsoln,'meansAndDevs',[],[]) % Make plot of mean vs. time.
93+
%piModel.makePlot(piFSPsoln,'marginals',[],[]) % Make plot of marginals
8994
end
9095

9196
disp(piFSPtimes)
@@ -104,8 +109,8 @@
104109
[opFSPsoln, opModel.fspOptions.bounds] = opModel.solve;
105110
opFSPtimes(Mcntr) = toc;
106111

107-
opModel.makePlot(opFSPsoln,'meansAndDevs',[],[]) % Make plot of mean vs. time.
108-
opModel.makePlot(opFSPsoln,'marginals',[],[]) % Make plot of marginals
112+
%opModel.makePlot(opFSPsoln,'meansAndDevs',[],[]) % Make plot of mean vs. time.
113+
%opModel.makePlot(opFSPsoln,'marginals',[],[]) % Make plot of marginals
109114
end
110115

111116
disp(opFSPtimes)

0 commit comments

Comments
 (0)