Appropriate resuscitation from hemorrhagic shock is critical to restore tissue perfusion and to avoid over-resuscitation. The objective of this study was to test the ability of a closed-loop diagnosis and resuscitation algorithm called resuscitation from shock using functional hemodynamic monitoring using invasive monitoring (ReFit1) and minimally invasive monitoring (ReFit2) to identify, treat, and stabilize a porcine model of severe hemorrhagic shock. We created a ReFit algorithm using dynamic hemodynamic parameters of pulse pressure variation (PPV), stroke volume variation (SVV), dynamic arterial elastance (Eadyn = PPV/SVV), driven by mean arterial pressure (MAP), mixed venous oxygen saturation, and heart rate targets to define the need for fluids, vasopressors, and inotropes. University-based animal laboratory. Twenty-seven female pigs. Anesthetized, intubated, and ventilated (8 mL/kg) pigs were bled at 10 mL/min until a MAP of less than 40 mm Hg, held for 30 minutes, then resuscitated. The ReFit algorithm used the above dynamic parameters to drive computer-controlled infusion pumps to deliver blood, lactated Ringer's solution, norepinephrine, and in ReFit1 dobutamine. In four animals, after initial resuscitation from hemorrhagic shock, the ability of the ReFit1 algorithm to treat acute air embolism-induced pulmonary hypertension and right heart failure was also tested. In 10 ReFit1 and 17 ReFit2 animals, the time to stabilization from shock was not dissimilar to open controlled resuscitation performed by an expert physician (52 ± 12, 50 ± 13, and 60 ± 15 min, respectively) with similar amounts of fluids and norepinephrine needed. In four ReFit1 animals after initial stabilization, the algorithm successfully resuscitated the animals after inducing an acute air embolism right heart failure, with all animals recovering stability within 30 minutes. Our physiologically based functional hemodynamic monitoring-centered closed-loop resuscitation system can effectively diagnose and treat cardiovascular shock due to hemorrhage and air embolism.