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;
14fprintf(1, '\nLQNS Results:\n');
15disp(AvgTable{1});
16
17%% Solve with LN without initialization
18solver{2} = LN(model, @(x) NC(x,'verbose',false));
19Tnoinit = tic;
20AvgTable{2} = solver{2}.getAvgTable;
21fprintf(1, '\nLN(NC) Results:\n');
22disp(AvgTable{2});
23Tnoinit = toc(Tnoinit)