Presentation is loading. Please wait.

Presentation is loading. Please wait.

Project CS 116 Section 4 Deadline 04/28 11:59PM Points: 12.

Similar presentations


Presentation on theme: "Project CS 116 Section 4 Deadline 04/28 11:59PM Points: 12."— Presentation transcript:

1 Project CS 116 Section 4 Deadline 04/28 11:59PM Points: 12

2 Power Usage Simulation System Given A Power Grid and Appliances A power grid with multiple locations Each locations has one or more appliances Appliances can be of two types: Regular Smart Each appliance has a certain power consumption rating (watts). Main objective: Design an algorithm to control power usage for the given set of appliances Develop a discrete event based simulator that will simulate the appliances at a series of time steps Run your algorithm with the simulation

3 Appliances Two types of appliances: Smart Appliances “On” status: regular operation “Low” status: energy efficient, lower wattage “Off” status: zero wattage Regular Appliances “On” status: regular operation “Off” status: zero wattage Appliances have the following attributes Type (String): smart or regular wattage used in “On” state(int) wattage used in“Low” state (int): only smart appliances have this value Location (int, 8 digit numeric acct): there can be multiple devices at a location Unique ID (suggest int)

4 Appliance Input ApplianceGenerator.java Generates a list of appliances and location using an input file “ApplianceDetail.txt” The list of appliances stored in “output.txt” E.g. of appliance generated by ApplianceGenerator.java 10000001,Clothes Washer,1200,0.025,true,0.25 10000001: location ID Clothes Washer: name of appliance 1200: “On” wattage 0.025: “On/off” probability during a time step True: True if this is a smart appliance else false for regular appliance 0.25: Power reduction percent when changed from “on” to "low" status for smart appliances. (floating point) For this appliance the wattage usage will drop from 1200W to 900 W when switched to the “low” status.

5 Power Simulation Your application should be given the following input at the minimum Simulation length Appliances information and their locations User defined warning level(wattage): Power consumption supported by the grid beyond which grid failure may occur. The application will randomly generate a set of time steps at which you need to check the grid If the power consumption exceeds the warning level wattage, your application should select Smart appliances to turn to “low” status Locations to “brown out” And bring the power consumption equal to or below the warning level wattage.

6 Options for Power Control Turn the smart appliances from “on” to “low” status This will reduce the power supply “Brown out” a location Turn “off” ALL the devices in a location Remember that regular devices at a location can only be turned off by using a “brown out” operation. Regular devices cannot be individually turned “off”

7 What are the strategies for power control? How to select the smart appliances for turning it down to “low” status? How to select the location to “brown out”? All depends on what you are trying to optimize Minimizing the effect – how? Based on the total number of devices turned off? Based on the average number of devices per location turned off? Based on the number of location “browned off”? Or some other criteria?

8 Sample Discrete Event Simulator code Discrete Event Simulator Simulate the behavior of a system as a set of discrete “time events” For this project, we assume that at each time event, the status of the appliances change from “on” to “off” and vice versa. EventSimulator.java Provided with the project Code to randomly generate time steps over the simulation length (provided as user input to the application)

9 Deliverables Create slides in Powerpoint with the following information Design info: A design for the project using class diagram designs Create Class Diagrams for all the requirements. Show the associations between the classes Add Attributes to the Class Diagrams. Create appropriate test cases (tables with short descriptions; as you did for lab 6). A description of your algorithm to change the status from “on” to “low” for smart appliances and strategy to “brown out” locations. Source code Compiled code

10 Recommendations Start NOW! Work methodically Suggested plan of action: Week of 04/11: Design your service and client class What is your criteria for managing the power? Design your algorithm for switching smart devices to “low” and your “brown out” policy Discuss with your instructor Week of 04/18: Complete implementation Week of 04/25: Testing and refining your design Prepare slides


Download ppt "Project CS 116 Section 4 Deadline 04/28 11:59PM Points: 12."

Similar presentations


Ads by Google