Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docs errors #1032

Merged
merged 3 commits into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
DocumenterTools = "35a29f4d-8980-5a13-9543-d66fff28ecb8"
GLPK = "60bf3e95-4087-53dc-ae20-288a0d20c6a6"
HiGHS = "87dc4568-4c63-4d18-b0c0-bb2238e4078b"
HydroPowerSimulations = "fc1677e0-6ad7-4515-bf3a-bd6bf20a0b1b"
InfrastructureSystems = "2cd47ed4-ca9b-11e9-27f2-ab636a7671f1"
Latexify = "23fbe1c1-3f47-55db-b15f-69d7ec21a316"
PowerSimulations = "e690365d-45e2-57bb-ac84-44ba829e73c4"
Expand Down
1 change: 1 addition & 0 deletions docs/src/formulation_library/General.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ No variables are created for `DeviceModel(<:DeviceType, FixedOutput)`

```@eval
using PowerSimulations
using HydroPowerSimulations
using PowerSystems
using DataFrames
using Latexify
Expand Down
1 change: 1 addition & 0 deletions docs/src/modeler_guide/problem_templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ template_agc_reserve_deployment

```@example
using PowerSimulations #hide
using HydroPowerSimulations #hide
template_agc_reserve_deployment()
```
4 changes: 2 additions & 2 deletions docs/src/tutorials/decision_problem.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ building blocks for sequential simulations. This example shows how to specify an
```@example op_problem
using PowerSystems
using PowerSimulations
using HydroPowerSimulations
using PowerSystemCaseBuilder
using HiGHS # solver
```
Expand Down Expand Up @@ -64,8 +65,7 @@ for `HydroDispatch` and `RenewableFix` devices.
set_device_model!(template_uc, ThermalStandard, ThermalStandardUnitCommitment)
set_device_model!(template_uc, RenewableDispatch, RenewableFullDispatch)
set_device_model!(template_uc, PowerLoad, StaticPowerLoad)
set_device_model!(template_uc, HydroDispatch, FixedOutput)
set_device_model!(template_uc, HydroDispatchRunOfRiver, HydroDispatchRunOfRiver)
set_device_model!(template_uc, HydroDispatch, HydroDispatchRunOfRiver)
set_device_model!(template_uc, RenewableFix, FixedOutput)
```

Expand Down
2 changes: 2 additions & 0 deletions docs/src/tutorials/pcm_simulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This example is intended to be an extension of the
```@example pcm
using PowerSystems
using PowerSimulations
using HydroPowerSimulations
const PSI = PowerSimulations
using PowerSystemCaseBuilder
using Dates
Expand Down Expand Up @@ -67,6 +68,7 @@ with the slightly more complex `ThermalStandardUnitCommitment` for the thermal g
```@example pcm
template_uc = template_unit_commitment()
set_device_model!(template_uc, ThermalStandard, ThermalStandardUnitCommitment)
set_device_model!(template_uc, HydroDispatch, HydroDispatchRunOfRiver)
```

### Define the reference model for the real-time economic dispatch
Expand Down
7 changes: 7 additions & 0 deletions src/core/auxiliary_variables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ end
get_entry_type(::AuxVarKey{T, U}) where {T <: AuxVariableType, U <: PSY.Component} = T
get_component_type(::AuxVarKey{T, U}) where {T <: AuxVariableType, U <: PSY.Component} = U

"""
Auxiliary Variable for Thermal Generation Models to keep track of time elapsed on
"""
struct TimeDurationOn <: AuxVariableType end

"""
Auxiliary Variable for Thermal Generation Models to keep track of time elapsed off
"""
struct TimeDurationOff <: AuxVariableType end

"""
Expand Down
56 changes: 56 additions & 0 deletions src/core/variables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,25 @@ Docs abbreviation: ``Pg^{out}``
"""
struct ActivePowerOutVariable <: VariableType end

"""
Struct to dispatch the creation of Hot Start Variable for Thermal units with temperature considerations

Docs abbreviation: TODO
"""
struct HotStartVariable <: VariableType end

"""
Struct to dispatch the creation of Warm Start Variable for Thermal units with temperature considerations

Docs abbreviation: TODO
"""
struct WarmStartVariable <: VariableType end

"""
Struct to dispatch the creation of Cold Start Variable for Thermal units with temperature considerations

Docs abbreviation: TODO
"""
struct ColdStartVariable <: VariableType end

"""
Expand Down Expand Up @@ -104,8 +119,18 @@ struct ActivePowerReserveVariable <: VariableType end

struct ServiceRequirementVariable <: VariableType end

"""
Struct to dispatch the creation of Binary Start Variables

Docs abbreviation: TODO
"""
struct StartVariable <: VariableType end

"""
Struct to dispatch the creation of Binary Stop Variables

Docs abbreviation: TODO
"""
struct StopVariable <: VariableType end

struct SteadyStateFrequencyDeviation <: VariableType end
Expand All @@ -128,8 +153,18 @@ struct SystemBalanceSlackDown <: VariableType end

struct ReserveRequirementSlack <: VariableType end

"""
Struct to dispatch the creation of Voltage Magnitude Variables for AC formulations

Docs abbreviation: TODO
"""
struct VoltageMagnitude <: VariableType end

"""
Struct to dispatch the creation of Voltage Angle Variables for AC/DC formulations

Docs abbreviation: TODO
"""
struct VoltageAngle <: VariableType end

"""
Expand Down Expand Up @@ -170,12 +205,33 @@ Docs abbreviation: ``\\overleftarrow{Q}``
"""
struct FlowReactivePowerToFromVariable <: VariableType end

"""
Struct to dispatch the creation of Phase Shifters Variables

Docs abbreviation: TODO
"""
struct PhaseShifterAngle <: VariableType end

# Necessary as a work around for HVDCTwoTerminal models with losses
"""
Struct to dispatch the creation of HVDC Losses Auxiliary Variables

Docs abbreviation: TODO
"""
struct HVDCLosses <: VariableType end

"""
Struct to dispatch the creation of HVDC Flow Direction Auxiliary Variables

Docs abbreviation: TODO
"""
struct HVDCFlowDirectionVariable <: VariableType end

"""
Struct to dispatch the creation of piecewise linear cost variables for objective function

Docs abbreviation: TODO
"""
struct PieceWiseLinearCostVariable <: VariableType end

struct InterfaceFlowSlackUp <: VariableType end
Expand Down
Loading