Close Menu
The Brown and WhiteThe Brown and White
    The Brown and White
    33 Coppee Drive
    Bethlehem, PA 18015
    (610) 758-4181
    [email protected]
    Facebook X (Twitter) Instagram YouTube Spotify TikTok
    Facebook X (Twitter) Instagram
    The Brown and WhiteThe Brown and White
    Subscribe
    • News
    • Lifestyle
    • Sports
      • More than a Game
    • Opinion
      • Campus Voices
    • Community
    • Elections
    • Multimedia
      • Galleries
      • Lehigh Insider Podcast
      • The Brown and White Weekly
    • More
      • Advertise
      • Contact Us
      • About the Brown and White
      • Special Sections
        • Data & Graphics
        • The Rivalry
        • Graduation 2022
        • Graduation 2021
        • Graduation 2020
        • Graduation 2019
        • Graduation 2018
        • Graduation 2017
        • The Global Diversity Project
      • Newsletter Sign-up
      • Letters to the Editor
      • Editorial Board
      • Newsroom
      • Subscribe
      • Newsroll
      • Archive
      • Comment Policy
      • Policy on AI
    The Brown and WhiteThe Brown and White
    You are at:Home»News»Lehigh University engineers create algorithm that saves state millions
    News

    Lehigh University engineers create algorithm that saves state millions

    By Madison Peterson-PortaOctober 4, 2017Updated:October 5, 20174 Mins Read
    Facebook Twitter Bluesky Email Copy Link

    Lehigh engineering professors and students worked with the Pennsylvania Department of Corrections to create an algorithm that saves Pennsylvania taxpayers $3 million per year.

    The project started five years ago when Dan Li, ’11G, a second-year doctorate student, interned with the Pennsylvania Department of Corrections. Li started the project after her internship to create a more efficient way of assigning inmates to correctional facilities. 

    The systematic approach takes into account various factors of optimization to create an algorithm, which with a few keystrokes and a couple of seconds does the work that used to take seven men one week.

    Since then, the algorithm has been improved by three professors and four graduate and doctoral students. The algorithm will be completed in the spring of 2018, though it has been in operation since December 2016 in Pennsylvania’s Camp Hill correctional institution.

    The algorithm will be recognized by the Pennsylvania State Senate on Oct. 17.

    Tamas Terlaky is the former department chair of the Industrial and Systems Engineering department. Terlaky, along with other Lehigh professors and students, partnered with the Pennsylvania Department of Corrections to develop an algorithm that helps with assigning inmates to correctional facilities. (Courtesy of Tamas Terlaky)

    “We didn’t know from the beginning if we could solve it, but we did know that optimization had never been used in a correctional facility before,” said Tamas Terlaky, the former department chair of Lehigh’s industrial and systems engineering department. Terlaky took over from professors Lou Plebani and George Wilson, who were both present during the algorithm’s creation.

    After Li obtained her doctorate degree in 2013, doctoral candidate Mohammad Shahabsafa followed in Li’s footsteps.

    Shahabsafa currently owns the project and has spent the last three and a half years completing the algorithm. In the process, Shahabsafa and his colleagues were contenders for the Wagner Prize, which is awarded annually by the Institute for Operations for Research and the Management Sciences.

    The Wagner Prize contenders are nominated through a three-part application. It is one of the most lauded international prizes in optimization engineering, and winners have access to the most sought-after engineering positions.

    “It would be an honor to get the prize…(but) the experience of being a part of the creation of the algorithm is more than enough,” Shahabsafa said, “as I will use the skills in the future that I have used in the process of working on the algorithm.”

    Graduate students Anshul Sharma and Chaitanya Gudapati created the algorithm’s graphic interface that accesses all the inmate information in the Department of Corrections’ system. It then allows the user to assess and recommend inmate assignments based on gender, crime, duration of stay and past behavior, among others variables.

    Shahabsafa said the algorithm had a three-step creation process. The first step was studying the inmate assignment process. The second step was creating a mathematical model that actively fixed the problem. The third step was the longest step, and it tested the mathematical model and refined the algorithm several times until all the bugs were worked out.

    Bill Nicklow, the population management and sentence computation director for the Department of Corrections, said he had nothing but praise for Shahabsafa and the rest of the team that completed the algorithm.

    “Mohammad’s response to problems and the overall turnaround time on (the algorithm) was tremendous,” Nicklow said. “It was a good cohesive partnership, and I can’t say enough good things about Lehigh’s faculty and staff.”

    The algorithm can only be used in Pennsylvania because the variables and information that it processes are specific to the state and facility that the algorithm operates. Future algorithms can be modified to fit the locale of specific centers.

    Shahabsafa said the algorithm isn’t patented yet but will be in the future.

    5 minute read academic feature

    Related Posts

    January 7, 2026By Alexandra Bauman

    From AllTeenPolitics to campus leadership, Lilja amplifies young political voices

    December 8, 2025By Julia Cassone

    Beyond the books: South Side library programming serves the community

    December 8, 2025By Lauren Reffue

    Lehigh Police address campus safety concerns

    Comments are closed.

    Comment Policy


    Comments posted to The Brown and White website are reviewed by a moderator before being approved. Incendiary speech or harassing language, including comments targeted at individuals, may be deemed unacceptable and not published. Spam and other soliciting will also be declined.

    The Brown and White also reserves the right to refuse the publication of entirely anonymous comments.

    Search by category
    NEWSLETTER SUBSCRIPTION

    click here to buy your B&W paper subscription
    Weather and Air Quality
    Subscribe to Email Alerts

    Enter your email address to receive notifications of each new posts by email.

    Follow us on social
    • Facebook
    • Twitter
    • Instagram
    • YouTube
    • TikTok
    • LinkedIn
    About the Brown and White

    The Brown and White is Lehigh University’s student newspaper based in Bethlehem, Pennsylvania.

    The newspaper covers Lehigh University news and the surrounding Bethlehem area, and it aims to serve as a platform for conversation and idea exchange.

    Follow the Brown and White

    Enter your email address to receive notifications of new posts in your inbox.

    Facebook X (Twitter) Instagram YouTube Spotify TikTok
    Copyright © 2026 The Brown and White | 'All the Lehigh News First'

    Type above and press Enter to search. Press Esc to cancel.