DISPLAY Displays the object. Called when semicolon is omitted at the command-line. Displays the details of the variables, constraints, costs included in the model. See also OPT_MODEL.
0001 function display(om) 0002 %DISPLAY Displays the object. 0003 % Called when semicolon is omitted at the command-line. Displays the details 0004 % of the variables, constraints, costs included in the model. 0005 % 0006 % See also OPT_MODEL. 0007 0008 % MATPOWER 0009 % Copyright (c) 2008-2015 by Power System Engineering Research Center (PSERC) 0010 % by Ray Zimmerman, PSERC Cornell 0011 % 0012 % $Id: display.m 2644 2015-03-11 19:34:22Z ray $ 0013 % 0014 % This file is part of MATPOWER. 0015 % Covered by the 3-clause BSD License (see LICENSE file for details). 0016 % See http://www.pserc.cornell.edu/matpower/ for more info. 0017 0018 display(om.opt_model) 0019 0020 fprintf(' mpc = '); 0021 if ~isempty(fieldnames(om.mpc)) 0022 fprintf('\n'); 0023 end 0024 if have_fcn('octave') 0025 fprintf(' <scalar struct>\n'); 0026 else 0027 display(om.mpc); 0028 end