function most_ex7_suc(quiet)
%MOST_EX7_SUC  Examples of secure and stochastic unit commitment problems.

%   MOST
%   Copyright (c) 2015-2020, Power Systems Engineering Research Center (PSERC)
%   by Ray Zimmerman, PSERC Cornell
%
%   This file is part of MOST.
%   Covered by the 3-clause BSD License (see LICENSE file for details).
%   See https://github.com/MATPOWER/most for more info.

%% set up options
define_constants;
verbose = 1;
mpopt = mpoption('verbose', verbose);
mpopt = mpoption(mpopt, 'out.gen', 1);
mpopt = mpoption(mpopt, 'model', 'DC');
mpopt = mpoption(mpopt, 'most.solver', 'DEFAULT');
if ~verbose
    mpopt = mpoption(mpopt, 'out.all', 0);
end
mpopt = mpoption(mpopt, 'most.price_stage_warn_tol', 10);



casefile = 'case__30';
mpc = loadcase(casefile);
xgd = loadxgendata('xgd_c30', mpc);
[iwind, mpc, xgd] = addwind('ex_wind_three', mpc, xgd);
profiles = getprofiles('ex_wind_profile_new', iwind);
%profiles = getprofiles('ex_load_profilenew', profiles);
profiles = getprofiles('ex_load_profile', profiles);
nt = size(profiles(1).values, 1);       % number of periods
nt=12;
%%-----  Full Transition Probabilities  -----
transmat = ex_transmat(nt);
mdi = loadmd(mpc, transmat, xgd, [], [], profiles);
mdo = most(mdi,mpopt);
%ms=most_summary(mdo);

t_most_suc(0, 1, 1, 'D:\research\addWind')




