<?xml version="1.0"?>
<measure>
  <schema_version>3.0</schema_version>
  <name>reduce_epd_by_percentage_for_peak_hours</name>
  <uid>d8b88a6d-a5ec-4187-844f-0ac050979aab</uid>
  <version_id>d7fbf161-e411-4ec8-af1d-98c1521c10d4</version_id>
  <version_modified>20230718T215419Z</version_modified>
  <xml_checksum>8FF5BF06</xml_checksum>
  <class_name>ReduceEPDByPercentageForPeakHours</class_name>
  <display_name>Reduce EPD by Percentage for Peak Hours</display_name>
  <description>This measure reduces electric equipment loads by a user-specified percentage for a user-specified time period (usually the peak hours). The reduction can be applied to at most three periods throughout out the year specified by the user. This is applied throughout the entire building.</description>
  <modeler_description>The original schedules for equipment in the building will be found and copied. The copies will be modified to have the percentage reduction during the specified hours, and be applied to the specified date periods through out the year. The rest of the year will keep using the original schedules.</modeler_description>
  <arguments>
    <argument>
      <name>epd_reduce_percent</name>
      <display_name>Percentage Reduction of Electric Equipment Power (%)</display_name>
      <description>Enter a value between 0 and 100</description>
      <type>Double</type>
      <required>true</required>
      <model_dependent>false</model_dependent>
      <default_value>50</default_value>
    </argument>
    <argument>
      <name>start_time</name>
      <display_name>Start Time for the Reduction</display_name>
      <description>In HH:MM:SS format</description>
      <type>String</type>
      <required>false</required>
      <model_dependent>false</model_dependent>
      <default_value>17:00:00</default_value>
    </argument>
    <argument>
      <name>end_time</name>
      <display_name>End Time for the Reduction</display_name>
      <description>In HH:MM:SS format</description>
      <type>String</type>
      <required>false</required>
      <model_dependent>false</model_dependent>
      <default_value>21:00:00</default_value>
    </argument>
    <argument>
      <name>alt_periods</name>
      <display_name>Use alternative default start and end time based on the climate zone of the model?</display_name>
      <description>This will overwrite the star and end time you input</description>
      <type>Boolean</type>
      <required>false</required>
      <model_dependent>false</model_dependent>
      <default_value>false</default_value>
      <choices>
        <choice>
          <value>true</value>
          <display_name>true</display_name>
        </choice>
        <choice>
          <value>false</value>
          <display_name>false</display_name>
        </choice>
      </choices>
    </argument>
    <argument>
      <name>start_date1</name>
      <display_name>First start date for the Reduction</display_name>
      <description>In MM-DD format</description>
      <type>String</type>
      <required>false</required>
      <model_dependent>false</model_dependent>
      <default_value>07-01</default_value>
    </argument>
    <argument>
      <name>end_date1</name>
      <display_name>First end date for the Reduction</display_name>
      <description>In MM-DD format</description>
      <type>String</type>
      <required>false</required>
      <model_dependent>false</model_dependent>
      <default_value>08-31</default_value>
    </argument>
    <argument>
      <name>start_date2</name>
      <display_name>Second start date for the Reduction (optional)</display_name>
      <description>Specify a date in MM-DD format if you want a second period of reduction; leave blank if not needed.</description>
      <type>String</type>
      <required>false</required>
      <model_dependent>false</model_dependent>
      <default_value></default_value>
    </argument>
    <argument>
      <name>end_date2</name>
      <display_name>Second end date for the Reduction (optional)</display_name>
      <description>Specify a date in MM-DD format if you want a second period of reduction; leave blank if not needed. If either the start or end date is blank, the period is considered not used.</description>
      <type>String</type>
      <required>false</required>
      <model_dependent>false</model_dependent>
      <default_value></default_value>
    </argument>
    <argument>
      <name>start_date3</name>
      <display_name>Third start date for the Reduction (optional)</display_name>
      <description>Specify a date in MM-DD format if you want a third period of reduction; leave blank if not needed.</description>
      <type>String</type>
      <required>false</required>
      <model_dependent>false</model_dependent>
      <default_value></default_value>
    </argument>
    <argument>
      <name>end_date3</name>
      <display_name>Third end date for the Reduction</display_name>
      <description>Specify a date in MM-DD format if you want a third period of reduction; leave blank if not needed. If either the start or end date is blank, the period is considered not used.</description>
      <type>String</type>
      <required>false</required>
      <model_dependent>false</model_dependent>
      <default_value></default_value>
    </argument>
  </arguments>
  <outputs />
  <provenances />
  <tags>
    <tag>Equipment.Electric Equipment</tag>
  </tags>
  <attributes>
    <attribute>
      <name>Intended Software Tool</name>
      <value>Apply Measure Now</value>
      <datatype>string</datatype>
    </attribute>
    <attribute>
      <name>Intended Software Tool</name>
      <value>OpenStudio Application</value>
      <datatype>string</datatype>
    </attribute>
    <attribute>
      <name>Intended Software Tool</name>
      <value>Parametric Analysis Tool</value>
      <datatype>string</datatype>
    </attribute>
    <attribute>
      <name>Measure Type</name>
      <value>ModelMeasure</value>
      <datatype>string</datatype>
    </attribute>
    <attribute>
      <name>Intended Software Tool</name>
      <value>OpenStudio Application</value>
      <datatype>string</datatype>
    </attribute>
    <attribute>
      <name>Intended Software Tool</name>
      <value>Parametric Analysis Tool</value>
      <datatype>string</datatype>
    </attribute>
  </attributes>
  <files>
    <file>
      <filename>README.md.erb</filename>
      <filetype>erb</filetype>
      <usage_type>readmeerb</usage_type>
      <checksum>703C9964</checksum>
    </file>
    <file>
      <filename>example_model.osm</filename>
      <filetype>osm</filetype>
      <usage_type>test</usage_type>
      <checksum>53D14E69</checksum>
    </file>
    <file>
      <filename>LICENSE.md</filename>
      <filetype>md</filetype>
      <usage_type>license</usage_type>
      <checksum>BFFB1AA6</checksum>
    </file>
    <file>
      <filename>reduce_epd_by_percentage_for_peak_hours_copy_test.rb</filename>
      <filetype>rb</filetype>
      <usage_type>test</usage_type>
      <checksum>3B0A1153</checksum>
    </file>
    <file>
      <version>
        <software_program>OpenStudio</software_program>
        <identifier>3.1.0</identifier>
        <min_compatible>3.1.0</min_compatible>
      </version>
      <filename>measure.rb</filename>
      <filetype>rb</filetype>
      <usage_type>script</usage_type>
      <checksum>C331F960</checksum>
    </file>
    <file>
      <filename>test.osm</filename>
      <filetype>osm</filetype>
      <usage_type>test</usage_type>
      <checksum>F0332415</checksum>
    </file>
    <file>
      <filename>README.md</filename>
      <filetype>md</filetype>
      <usage_type>readme</usage_type>
      <checksum>5EDC58E2</checksum>
    </file>
  </files>
</measure>