1%% This example
is temporarily disabled
3fprintf(1,
'This example illustrates the solution of a moderately large LQN.\n')
5cwd = fileparts(which(mfilename));
6model = LayeredNetwork.parseXML([cwd,filesep,'lqn_ofbiz.xml']);
8%options = LQNS.defaultOptions;
9%options.keep = true; % uncomment to keep
the intermediate XML files generates while translating
the model to LQNS
11%% Solve with LQNS (disabled)
12%solver{1} = LQNS(model);
13%AvgTable{1} = solver{1}.getAvgTable;
14%fprintf(1,
'\nLQNS Results:\n');
17%% Solve with LN without initialization
18% Pin
the LN seed: SolverLN randomizes its stochastic-layer seed base when
19% options.seed
is unset, which makes
the fixed point of
this large model
20% irreproducible run to run.
21lnoptions = LN.defaultOptions;
22lnoptions.seed = 23000;
23solver{2} = LN(model, @(x) NC(x,
'verbose',
false), lnoptions);
25AvgTable{2} = solver{2}.getAvgTable;
26fprintf(1,
'\nLN(NC) Results:\n');