most
- most(mdi, mpopt)
most()
- The MATPOWER Optimal Scheduling Tool (MOST)mdo = most(mdi) mdo = most(mdi, mpopt)
MOST solves a multiperiod, stochastic, contingency constrained, optimal power flow problem with linear constraints and unit commitment. Depending on inputs it may include DC power flow constraints or a simple total power balance condition.
- Inputs:
mdi (struct) – MOST data structure, input (see MOST User's Manual for details)
mpopt (struct) – MATPOWER options struct, relevant fields are (default value in parens):
verbose
- see'help :func:`mpoption`'
<solver specific options>
- e.g. cplex, gurobi, etc, see'help :func:`mpoption`'
most.build_model
(1) - build the MIQP, both constraints and standard costs (not coordination cost) and store in QP field ofmdo
most.solve_model
(1) - solve the MIQP; if coordination cost exists, update it; requires either'most.build_model'
set to 1 ormdi.qp
must contain previously built modelmost.resolve_new_cost
(0) - use when MIQP is already built and unchanged except for new coordination costmost.dc_model
(1) - use DC flow network model as opposed to simple generation = demand constraintmost.fixed_res
(-1) - include fixed zonal reserve contstraints, -1 = if present, 1 = always include, 0 = never includemost.q_coordination
(0) - createQg
variables for reactive power coordinationmost.security_constraints
(-1) - include contingency contstraints, -1 = if present, 1 = always include, 0 = never includemost.storage.terminal_target
(-1) - constrain the expected terminal storage to target value, -1 = if present, 1 = always, 0 = nevermost.storage.cyclic
(0) - if 1, then initial storage is a variable constrained to = final expected storage; can’t be simultaneously true withmost.storage.terminal_target
most.uc.run
(-1) - flag to indicate whether to perform unit commitment; 0 = do not perform UC, 1 = do perform UC, -1 = perform UC ifmdi.uc.CommitKey
is present/non-emptymost.uc.cyclic
(0) - commitment restrictions (e.g. min up/down times) roll over from end of horizon back to beginningmost.alpha
(0) - 0 = contingencies happen at beginning of period, 1 = at end of periodmost.solver
('DEFAULT'
) - seealg
argument toopt_model.solve()
(i.e.miqps_master()
orqps_master()
) for detailsmost.skip_prices
(0) - skip price computation stage for mixed integer problems, seemiqps_master()
for detailsmost.price_stage_warn_tol
(1e-7) - tolerance on the objective function value and primal variable relative match required to avoid mis-match warning message, seemiqps_master()
for details
- Outputs:
mdo (struct) – MOST data structure, output (see MOST User's Manual for details)
See also
loadmd()
.