The algorithm is grounded in math and physics and allows a nuclear microreactor to automatically control its thermal power.