LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
lqn_ofbiz.m
1%% This example is temporarily disabled
2clear solver AvgTable
3fprintf(1,'This example illustrates the solution of a moderately large LQN.\n')
4
5cwd = fileparts(which(mfilename));
6model = LayeredNetwork.parseXML([cwd,filesep,'ofbizExample.xml']);
7
8options = LQNS.defaultOptions;
9options.keep = true; % uncomment to keep the intermediate XML files generates while translating the model to LQNS
10
11%% Solve with LN without initialization
12solver{1} = LQNS(model);
13AvgTable{1} = solver{1}.getAvgTable;
14AvgTable{1}
15
16%% Solve with LN without initialization
17solver{2} = LN(model, @(x) NC(x,'verbose',false));
18Tnoinit = tic;
19AvgTable{2} = solver{2}.getAvgTable;
20AvgTable{2}
21Tnoinit = toc(Tnoinit)