This section describes the additional fields that can be added to
In the case of direct specification, additional variables are created implicitly based on the
difference between the number of columns in and the number
of standard OPF
variables. If
has more columns than
has elements, the extra columns are assumed
to correspond to a new
variable. The initial value and lower and upper bounds
for
can also be specified in the optional fields or arguments,
Here or
. This function has the following calling
syntax:
Once again this is similar to the form of the Hessian evaluation function
expected by MIPS.47
In order to add a set of user-defined nonlinear constraints to the formulation through
direct specification, an entry must be added to the optional
| |
| |
|
|
| |
| |
|
|
| |
There is an example in the OPF testing code (e.g.
This adds a single constraint named containing only the generator active injections). The constraints and gradients
are evaluated by a function named
| (7.1) |
When specifying additional costs, is a zero matrix, and the default for
is
such that
and
are all ones and
and
are all zeros, resulting in simple
linear cost, with no shift or “dead-zone”.
For a simple formulation extension to be used for a small number of OPF cases, this method
has the advantage of being direct and straightforward. While and
corresponding to
and
when running a DC
OPF48 , as
well as code to reorder and eliminate columns appropriately when converting from external
to internal data formats, this mechanism still requires the user to take special care in
preparing the
and
matrices to ensure that the columns match the ordering of the
elements of the optimization vectors
and
. All extra constraints and variables must
be incorporated into a single set of parameters that are constructed before calling
the OPF. The bookkeeping needed to access the resulting variables and shadow
prices on constraints and variable bounds must be handled manually by the
user outside of the OPF, along with any processing of additional input data
and processing, printing or saving of the additional result data. Making further
modifications to a formulation that already includes user-supplied costs, constraints or
variables, requires that both sets be incorporated into a new single consistent set of
parameters.