The present application claims priority to Provisional Application Ser. No. 61/509,642 filed Jul. 20, 2011, the content of which is incorporated by reference. 
    
    
     BACKGROUND 
     Energy management of a resilient and sustainable power infrastructure for a remote area is challenging. For example, environmental and economic considerations make it less feasible today for the construction of long distance transmission lines to remote areas with few as well as sparse population, which will drive up the cost of electricity supply and delivery. Large livestock farms or dairy farms are usually located far away from urban areas and sometimes the electricity supply can be a problem. Additionally, these farms may cause environmental problems brought by the inappropriate treatment of animal waste in these farms. The aggregated piled up animal waste seriously deteriorates the surrounding environment, especially for the air condition. The foul odor sometimes can be smelled miles away along the freeway, where a dairy farm is usually located nearby. Anaerobic digestion is an effective way of dealing with animal waste in these farms, which can protect the environment by consuming animal waste and the produced biogas energy is renewable. 
     An emerging technical solution to counter the above mentioned problems is the microgrid, which is a regional electric power distribution network consisting of DERs and local loads. Microgrid can:
         improve the utility system performance through combined heat and power (CHP), and increasing of the overall transmission utilization,   provide back-up power and premium power,   make use of renewable energy such as biogas, PV and wind, and   reduce greenhouse gas emissions.       

     Management and operation of microgrid is complex and many issues should be considered. The basic microgrid architecture may consist of a collection of distributed generation, storage and load assets connected through a system of feeders controlled as a single entity. These entities can be connected to the grid or isolated from the grid based on IEEE 1547 or other applicable standards. Selection and sizing of distributed generation assets (DER) is based on operational characteristics, efficiency, initial cost, and onsite conditions. When a microgrid operates in grid connected mode, the local load receives real/reactive power either from the grid or from local DERs or from both, depending on the customer&#39;s situation; when the microgrid switches to stand-alone operation, the power supply, and the load should be the same to clear the power mismatch condition and regulate voltage magnitude and frequency of the islanded system. Microturbines and fuel cells are inertia-less and the response time to control signal is relatively slow; thus, the storage, like batteries or supercapacitors, should be necessarily considered to ensure initial energy balance. Management of grid-tied and islanded system should consider the cost of startup/shutdown and efficiency curves of all generation and storage systems in addition to normal maintenance and fuel costs. Energy arbitrage is another consideration depending on the power purchase agreement between the utility and the microgrid operator. 
     SUMMARY 
     Systems and methods are disclosed to improve energy efficiency of a farm with livestock wastes by generating a cooling, heating, and power (CCHP) microgrid model; performing on a computer a multi-objective optimization to improve system efficiency of energy utilization and reduce environmental problems caused by animal wastes; and displaying results of the optimization for review. 
     Implementations of the above aspect can include one or more of the following. The optimization method incorporates an explicit daily operating cost minimization criterion applied to the microgrid infrastructure as well as daily energy output maximization from DERs. The system balances trade-off relationship between daily operating cost minimization and daily DERs energy output maximization. The system provides optimal management of a rural microgrid infrastructure based on multi-objective optimization. This objective is achieved through the creation of a comprehensive CCHP rural microgrid model. The whole microgrid system is grid-connected and the CCHP part is dependent on the electrical part. The whole system model is mathematically programmed into the platform of GAMS. But it can be done in any platform using any programming language and an algebraic equation solver 
     Advantages of the system may include one or more of the following. The system helps but not limited to electrification of rural and remote areas. The system reduces environmental from large livestock farms such as dairy farms through proper treatment of animal wastes. The system enhances electrical system in farms vis-a-vis efficient waste management. 
    
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         FIG. 1  shows an exemplary microgrid system. 
         FIG. 2  shows an exemplary flow chart of a microgrid optimization model. 
         FIG. 3  shows an exemplary computer system to improve energy efficiency of a farm with livestock wastes. 
     
    
    
     DESCRIPTION 
       FIG. 1  shows an exemplary microgrid system. The produced biogas is used to fire ICEs, gas boiler, as well as absorption chiller for cooling. The whole system can be divided into two parts: electrical part and thermal part. In electrical part, PV and ICEs are used as DERs to provide electricity for the whole system, the output of which are converted into direct current flowing into the DC bus. The gird will provide additional electricity to the whole system during periods of insufficient electricity inside the system. The grid can also be automatically selected to directly supply the load when emergencies occur in PV and ICEs. The energy storage ensemble (ESE) located between DC bus and AC bus is used to balance power supply and load demand between DERs, grid, battery, and the load. The model of the electrical part can be either operated in islanded mode or in grid-connected mode depending on the load condition. 
     In thermal part, part of the jacket water and exhaust heat from ICEs are utilized by heat exchanger (HE) and absorption refrigerator (AR) to provide the hot water and the cooling supply, respectively. The hot water tank is used to store the generated hot water and release it when there is an insufficiency of hot water supply. In case of capacity limit on heat exchanger, one gas boiler (GB) is added to provide enough hot water supply together with heat exchanger and hot water tank. Similarly, the thermal storage (TS) is used to store cold water generated from absorption refrigerator and release it when necessary. One absorption chiller for cooling (ACC) is also added in case of the capacity limit on absorption refrigerator, to provide enough cooling supply together with absorption refrigerator and thermal storage. 
       FIG. 2  shows an exemplary flow chart of a microgrid optimization model. A model of a grid  200  includes models for solar radiation  210 , photovoltaic (PV) model  212 , and PV constraints  214 . Similarly, a battery model  200  and battery constraints  224  are captured. The model also includes biogas  250  with an internal combustion engine (ICE) model  252  and constraints  254 . The ICE model  252  communicates with a thermal model  260  and thermal constraint  262   
     The model components  210 - 262  are provided to demand profiles  270  such as electrical, cooling, hot water profiles, among others. The information is provided to a multi-objective function optimizer  280 . The optimizer  280  minimizes operating costs while maximizing energy output. This is subject to system constraints  300 . The system can perform individual objective minimization  310 - 312 , and then performs a multi-objective optimization  320  to generate results  330 . 
     A combined cooling, heating, and power (CCHP) microgrid model can be used to improve system efficiency of energy utilization and lessen environmental problems caused by animal wastes based on multi-objective optimization. In this proposed model, the animal manure is used to produce biogas, which is used to feed internal combustion engines (ICEs), gas boilers, and absorption chillers. The generated electricity would offset that would otherwise be bought from main grids. PV generation is introduced to further increase the renewable fraction of energy contents. The electrical storage is also included to balance power demand and power supply. To increase system efficiency of energy utilization, coolant water from ICEs, plus their exhaust, could be utilized based on the thermal storage modeled, by inclusion of absorption refrigerator and heat exchanger. The final goal is to maximize energy output from distributed energy resources (DERs) and meanwhile minimize daily system operating cost. Extra electricity generated beyond the load demand could be used to charge battery storage. In this way, system energy cost is reduced with energy system improvement and reconfiguration, and surrounding environmental problems due to animal wastes are also lessened. 
     In one implementation, a rural dairy farm was selected as the test bed. The microgrid system infrastructure was introduced first. Then, the modeling of individual main component concerned of the microgrid system is done. Next, the multi-objective optimization method is deployed as describe in details below. 
     First, a biogas-fired ICE model is detailed. The fuel consumption rate of biogas-fueled ICE is expressed as a quadratic function of real power:
 
 F   g,t   =a   g   +b   g   P   g,t   +c   g   P   g,t   2   (1)
 
where P g,t  is the generator g output in kW at time t, a g , b g , c g  are coefficients that can be calculated, respectively, from the data sheet provided by the manufacturer.
 
     The total fuel consumption rate F t  is shown as follows: 
     
       
         
           
             
               
                 
                   
                     F 
                     t 
                   
                   = 
                   
                     
                       ∑ 
                       
                         g 
                         = 
                         1 
                       
                       M 
                     
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     
                       ( 
                       
                         
                           a 
                           g 
                         
                         + 
                         
                           
                             b 
                             g 
                           
                           ⁢ 
                           
                             P 
                             
                               g 
                               , 
                               t 
                             
                           
                         
                         + 
                         
                           
                             c 
                             g 
                           
                           ⁢ 
                           
                             P 
                             
                               g 
                               , 
                               t 
                             
                             2 
                           
                         
                       
                       ) 
                     
                   
                 
               
               
                 
                   ( 
                   2 
                   ) 
                 
               
             
           
         
       
     
     The ICE units are first constrained by their capacities:
 
P g   − u g,t &lt;P g,t &lt;P g   + u g,t , ∀g ε M   (3)
 
where P g   +,−  are the generator capacity&#39;s lower bound and upper bound, u g,t  is binary variable indicating the state of generator g in time t (0 is off and 1 is on), M is the total number of generators.
 
     The ICE units are constrained by minimum up and down time constraints:
 
 u   g,s   ≧u   g,t   −u   g,t−1   , ∀g, s ε {t+ 1, . . .  t+UT   g −1}  (4)
 
1 −u   g,s   ≧u   g,t−1   −u   g,t   , ∀g, s ε {t+ 1,  . . . t+DT   g −1}  (5)
 
where s is the time period, UT g  is the minimum up time of generator g in hours, DT g  is the minimum down time of generator g in hours.
 
     Ramp rate constraints are also considered for ICE units, which can restrict generators&#39; output between two consecutive periods due to their physical limitations, also including start up and shut down periods:
 
 P   g,t   −P   g,t−1   ≦R   g   +   u   g,t−1   +R   g   SU (1 −u   g,t−1 ), ∀ g,t   (6)
 
 P   g,t−1   −P   g,t   ≦R   g   −   u   g,t   +R   g   SD (1 −u   g,t ), ∀ g,t   (7)
 
where R g   +,−  are ramp up and ramp down constraints in kW when generator g is on, R g   SU,SD  are start up and shut down constraints in kW when generator g starts up and shuts down.
 
     Two other binary variables are used to represent start up and shut down states of ICEs, as shown in the following two equation:
 
 v   g,t   =u   g,t   −u   g,t−1   , ∀g,t   (8)
 
 w   g,t   =u   g,t−1   −u   g,t   , ∀g,t   (9)
 
where v g,t  and w g,t  are binary variables indicating start up and shut down state of ICEs.
 
     Next, a PV model is detailed. The calculation of DC output power of PV modules P PV,t  is shown as the following equation:
 
P PV,t =η PV,t A PV G β,t   (10)
 
     The PV efficiency η PV,t  in time t is shown in [22]:
 
η PV,t =η r η pc (1−β( T   c,t   −T   ref ))   (11)
 
     The PV cell temperature T c  in ° C. in time t is given by [23]: 
                     T     c   ,   t       =       T   a     +       (       NOCT   -   20     800     )     ⁢     G     β   ,   t                   (   12   )               
where A PV  is the available total PV modules area in m 2 , G β,t  is incident solar radiation in Wh/m 2  in time t, η r  is PV reference module efficiency, η pc  is PV power conditioning efficiency, β is PV efficiency temperature coefficient, T ref  is PV reference temperature in ° C., T a  is PV ambient temperature, NOCT is normal operating cell temperature in ° C.
 
     A battery storage model is discussed next. The output power from DERs may be insufficient to supply the load; DERs and the main grid may fail to supply the load; and the supply from DERs may also exceed beyond the load demand. In these cases, the electrical battery storage is needed to balance the load demand and power supply, and store extra energy from DERs. 
     The hourly available capacity of the battery storage P batt,t  in time t is calculated as the following: 
                     P     batt   ,   t       =       P     batt   ,     t   -   1         +       E     cha   ,   t       ⁢     η   cha       -       E     dis   ,   t         η   dis                 (   13   )               
where E cha,t  is hourly charging quantity flows into the battery storage in kWh in time t, E dis,t  is hourly discharging quantity flows out of the battery storage in kWh in time t, η cha  is charging efficiency of the battery storage, Θ dis  is the discharging efficiency of the battery storage.
 
                         ∑     g   =   1     M     ⁢           ⁢     P     g   ,   t         +     P     PV   ,   t       +     P     grid   ,   t         =       P     L   ,   t       +     E     cha   ,   t       -     E     dis   ,   t                 (   14   )               
where P grid,t  the hourly energy from the main grid in kWh in time t, P L,t  is the load demand in kW in time t.
 
 ΔP   t   =E   cha,t   −E   dis,t   (15)
 
The hourly charging or discharging quantity of the battery storage is constrained by the capacity of the battery storage E s .
 
0≦E cha,t ≦E s   (16)
 
0≦E dis,t ≦E s   (17)
 
where ΔP t  is a free variable in kW, indicating the hourly charging or discharging quantity of the battery storage.
 
     In any hour t, the battery storage is either in charging state (E cha,t ≠0, E dis,t =0) or in discharging state (E cha,t =0, E dis,t ≠0) or doesn&#39;t work (E cha,t =0, E dis,t =0).
 
 E   cha,t   ×E   dis,t =0  (18)
 
     The charged quantity of the battery storage is subject to the following constraints:
 
 SOC   −   ×E   s   ≦P   batt,t   ≦SOC   +   ×E   s   (19)
 
where SOC +,−  are the upper bound and the lower bound of state of charge for the battery storage.
 
     CCHP Model 
     The water based thermal storage tank is used to provide space cooling while the hot water tank is used to provide the daily hot water consumption. The model of the thermal storage tank for cooling is shown as the following equation [13]:
 
 Q   t   out   −Q   t   in   =CρV ( T ( t+ 1)− T ( t ))/Δ t−εCρVΔT   (20)
 
     While for the hot water tank model, the two terms in the left-hand side of the above equation are reversed. In the above equation, Q t   out  is the heat release in kWh, Q t   in  is the heat storage in kWh, C is the specific heat coefficient of storage medium in kWh/kg-K, ρ is the density of storage medium in kg/m 3 , V is the capacity of storage tank in m 3 , T is the average temperature in the tank in K, Δt is the hourly time duration, ε is the coefficient of waste heat from storage tank, and ΔT is the temperature range in the tank. 
     The constraints of thermal storage for space cooling and hot water tank are described by following equations: 
                           Q   t   cool     =       ⁢         COP   AR     ⁢     Q       ICE   ⁢           ⁢   1     ,   t         +     Q     ACC   ,   t       +     Q       hr   ⁢           ⁢   1     ,   t                     =       ⁢       Q     AR   ,   t       +     Q     ACC   ,   t       +     Q       hr   ⁢           ⁢   1     ,   t                       (   21   )                 Q   t   colin     ≤     Q     AR   ,   t               (   22   )                 Q   t   colout     =     Q       hr   ⁢           ⁢   1     ,   t               (   23   )                   Q   t   colout     ×     Q   t   colin       =   0           (   24   )                       Q   t   hw     =       ⁢         COP   HE     ⁢     Q       ICE   ⁢           ⁢   2     ,   t         +     Q     GB   ,   t       +     Q       hr   ⁢           ⁢   2     ,   t                     =       ⁢       Q     HE   ,   t       +     Q     GB   ,   t       +     Q       hr   ⁢           ⁢   2     ,   t                       (   25   )                 Q   t   hwin     ≤     Q     HE   ,   t               (   26   )                 Q   t   hwout     =     Q       hr   ⁢           ⁢   2     ,   t               (   27   )                   Q   t   hwout     ×     Q   t   hwcolin       =   0           (   28   )                 Q   t   hr     =       ∑     n   =   1     2     ⁢           ⁢     Q   n   ICE               (   29   )                 Q   t   wh     =     Q       ICE   ⁢           ⁢   3     ,   t               (   30   )               
Q t   cool,hw  are space cooling demand and hot water demand in kW, COP AR,HE  are the coefficient of performance for absorption refrigerator and heat exchanger, Q ICE1,2,3  are heat recovered from ICEs for space cooling, hot water and waste heat not recovered in kW, Q ACC,GB  are output from absorption chiller for cooling and gas boiler in kW, Q AR,HE  are output from absorption refrigerator and heat exchanger in kW, Q hr1,2  are heat released from thermal storage and hot water tank in kW, Q t   wh  is the waste heat not recovered in kW, Q t   colin,out  are heat recovered from ICEs flowing into and that flowing out of thermal storage in kW, Q t   hwin,out  are heat recovered from ICEs flowing into and that flowing out of hot water tank in kW.
 
     The system optimizes two objective functions in one embodiment: 
     A. Minimization of Operating Cost 
     The objective function of system operating cost (OC) in $, including biogas fuel cost (FC), ICEs start up and shut down cost (SSC), equipments operation and maintenance cost (OMC), and cost of electricity bought from the grid (EBC), are shown as the followings: 
                   OC   =     FC   +   SSC   +   OMC   +   EBC             (   31   )               FC   =       ∑     t   =   1     N     ⁢           ⁢     Δ   ⁢           ⁢     T   ⁡     (       F   t     +     F     GB   ,   t       +     F     ACC   ,   t         )       ⁢     C   Bio                 (   32   )               SSC   =       ∑     t   =   1     N     ⁢           ⁢       ∑     g   =   1     M     ⁢           ⁢     (         v     g   ,   t       ⁢   SU     +       w     g   ,   t       ⁢   SD       )                 (   33   )               OMC   =       ∑     t   =   1     N     ⁢           ⁢     Δ   ⁢           ⁢     T   ⁡     (               OM   ICE     ⁢       ∑     g   =   1     M     ⁢           ⁢     P     g   ,   t           +       OM   GB     ⁢     P     GB   ,   t         +                   OM   ACC     ⁢     P     ACC   ,   t         +       OM   AR     ⁢     P     AR   ,   t                 )                   (   34   )               EBC   =       ∑     t   =   1     N     ⁢           ⁢     Δ   ⁢           ⁢     T   ⁡     (       C   GriE     ⁢     P     grid   ,   t         )                   (   35   )               
where ΔT is hourly time step, C Bio  is the biogas cost in $/L, F t,GB,ACC  are fuel cost of ICEs, gas boiler, and absorption chiller for cooling in L/h, SU, SD are start up cost and shut down cost in $, OM ICE,GB,ACC,AR  are operation and maintenance cost of ICEs, GB, ACC, and AR in $/kWh, P GB,ACC,AR,t  are output of gas boiler, absorption chiller for cooling and absorption refrigerator in time t in kW, C GriE  is electricity cost of the grid in $/kWh, P grid,t  is the power bought from the grid in kW.
 
B. Maximization of DG Output
 
     The objective function of the total DG output E DG  in kWh is given by the following equation: 
                     E   DG     =       ∑     t   =   1     N     ⁢           ⁢       (         ∑     g   =   1     M     ⁢           ⁢       P   g     ⁡     (   t   )         +       P   PV     ⁡     (   t   )         )     ⁢   Δ   ⁢           ⁢   T               (   36   )               
C. System Constraints
 
     
       
         
           
             
               
                 
                   
                     
                       
                         ∑ 
                         
                           g 
                           = 
                           1 
                         
                         M 
                       
                       ⁢ 
                       
                           
                       
                       ⁢ 
                       
                         P 
                         
                           g 
                           , 
                           t 
                         
                       
                     
                     + 
                     
                       P 
                       
                         PV 
                         , 
                         t 
                       
                     
                     + 
                     
                       P 
                       
                         grid 
                         , 
                         t 
                       
                     
                     - 
                     
                       P 
                       
                         L 
                         , 
                         t 
                       
                     
                   
                   = 
                   
                     Δ 
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     
                       P 
                       t 
                     
                   
                 
               
               
                 
                   ( 
                   37 
                   ) 
                 
               
             
           
         
       
     
     In one embodiment, a multi-objective optimization can be used to manage and find the best solution between different objectives. Since these objectives might be nonlinear, conflicting or incommensurable, the global optimal solution for the multi-objective optimization is generally achieved by Pareto optimality. The Pareto optimal solutions are best compromise or trade-off solutions between different objectives. A trade-off frontier between the objective of system operating cost minimization and the objective of DG output maximization would be found according to the preferences of the decision makers. However, the development of Pareto optimal solutions is significantly complicated when the number of objectives exceeds two, where normal boundary interaction (NBI) and ε-constraint method are efficient algorithms to solve such problems. The whole system model is programmed and optimized in GAMS environment. Since it is mixed integer nonlinear programming, the BONMIN solver is selected to solve the optimization problem. 
     Based on MINLP, a CCHP model of a rural microgrid uses multi-objective optimization to improve system efficiency of energy utilization, reduce the daily operating cost, and lessen environmental problems caused by animal wastes. A variety of energy sources, such as ICEs, PV modules, battery, thermal storage, absorption refrigerator, absorption chiller, gas boiler, heat and exchanger are included in the microgrid model. Constraint functions are included in the optimization model to reflect some detailed as well as necessary considerations and thus make the results more accurate and close to reality. From the results, the multi-objective optimization on daily operating cost minimization and DG energy output maximization works very well based on the microgrid model presented, which can give optimal solutions to both the daily operating cost and the DG energy output. 
     The system may be implemented in hardware, firmware or software, or a combination of the three. Preferably the invention is implemented in a computer program executed on a programmable computer having a processor, a data storage system, volatile and non-volatile memory and/or storage elements, at least one input device and at least one output device. 
     By way of example, a block diagram of a computer to support the system is discussed next in  FIG. 3 . The computer preferably includes a processor, random access memory (RAM), a program memory (preferably a writable read-only memory (ROM) such as a flash ROM) and an input/output (I/O) controller coupled by a CPU bus. The computer may optionally include a hard drive controller which is coupled to a hard disk and CPU bus. Hard disk may be used for storing application programs, such as the present invention, and data. Alternatively, application programs may be stored in RAM or ROM. I/O controller is coupled by means of an I/O bus to an I/O interface. I/O interface receives and transmits data in analog or digital form over communication links such as a serial link, local area network, wireless link, and parallel link. Optionally, a display, a keyboard and a pointing device (mouse) may also be connected to I/O bus. Alternatively, separate connections (separate buses) may be used for I/O interface, display, keyboard and pointing device. Programmable processing system may be preprogrammed or it may be programmed (and reprogrammed) by downloading a program from another source (e.g., a floppy disk, CD-ROM, or another computer). 
     Each computer program is tangibly stored in a machine-readable storage media or device (e.g., program memory or magnetic disk) readable by a general or special purpose programmable computer, for configuring and controlling operation of a computer when the storage media or device is read by the computer to perform the procedures described herein. The inventive system may also be considered to be embodied in a computer-readable storage medium, configured with a computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner to perform the functions described herein. 
     The system has been described herein in considerable detail in order to comply with the patent statutes and to provide those skilled in the art with the information needed to apply the novel principles and to construct and use such specialized components as are required. However, it is to be understood that the invention can be carried out by specifically different equipment and devices, and that various modifications, both as to the equipment details and operating procedures, can be accomplished without departing from the scope of the invention itself.
Systems and methods are disclosed to improve energy efficiency of a farm with livestock wastes by generating a cooling, heating, and power (CCHP) microgrid model; performing on a computer a multi-objective optimization to improve system efficiency of energy utilization and reduce environmental problems caused by animal wastes; and displaying results of the optimization for review.