<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Soutrik Bandyopadhyay on Medium]]></title>
        <description><![CDATA[Stories by Soutrik Bandyopadhyay on Medium]]></description>
        <link>https://medium.com/@soutrikbandyopadhyay?source=rss-f9cd6e417cc3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ACIN94FHJ_ItV35k.</url>
            <title>Stories by Soutrik Bandyopadhyay on Medium</title>
            <link>https://medium.com/@soutrikbandyopadhyay?source=rss-f9cd6e417cc3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 10:47:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@soutrikbandyopadhyay/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Light at the end of the tunnel]]></title>
            <link>https://medium.com/@soutrikbandyopadhyay/light-at-the-end-of-the-tunnel-9966558cec72?source=rss-f9cd6e417cc3------2</link>
            <guid isPermaLink="false">https://medium.com/p/9966558cec72</guid>
            <category><![CDATA[metaphorical]]></category>
            <category><![CDATA[poetry]]></category>
            <category><![CDATA[fiction]]></category>
            <category><![CDATA[covid19]]></category>
            <dc:creator><![CDATA[Soutrik Bandyopadhyay]]></dc:creator>
            <pubDate>Tue, 12 May 2020 12:17:47 GMT</pubDate>
            <atom:updated>2020-05-12T12:24:54.297Z</atom:updated>
            <content:encoded><![CDATA[<p>I am in search of the way<br>Meandering paths lead me here today<br>I am driving at the speed of sound<br>Darkness in the air around</p><p>Ages passed in this tunnel now<br>Will I see the end of it? Tell me how?<br>Bumps strewed across the path ahead<br>Gloom dancing to the silence of the dead</p><p>Herald foretold an end to the tunnel soon<br>Said contentment lay ahead of the doom<br>With hope in the heart and fists clenched<br>I set forth in the rain of sorrow — drenched</p><p>Light at the end of the tunnel seems far today<br>Got in this place only trepidation and dismay<br>Shattered lay many hopes and dreams<br>Endless blood and countless screams</p><p>Oh, I see a glare ahead! <br>For me does the beloved light await? <br>Sacrifices we made a while ago<br>Will they suffice to take me Home?</p><p>Alas! The joy ephemeral<br>The glint of a cracked mirror<br>Gave hope only to take it away<br>Tired, it’s been a long day</p><p>I still drive my car today <br>Still wet from that rainy day<br>Hope I have still<br>Never deterred, never will</p><p>-Soutrik Bandyopadhyay</p><p>P.S. The tunnel represents the COVID-19 situation and the protagonist represents society.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YkbGT0iiNqSf6-tW7Xcd8g.jpeg" /><figcaption>Image Courtesy — <a href="https://www.pexels.com/@jrapprich">https://www.pexels.com/@jrapprich</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9966558cec72" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Antipodal Entanglement]]></title>
            <link>https://medium.com/@soutrikbandyopadhyay/antipodal-entanglement-2d612a93bc64?source=rss-f9cd6e417cc3------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d612a93bc64</guid>
            <category><![CDATA[dreams]]></category>
            <category><![CDATA[experimental]]></category>
            <category><![CDATA[school-shootings]]></category>
            <category><![CDATA[fiction]]></category>
            <dc:creator><![CDATA[Soutrik Bandyopadhyay]]></dc:creator>
            <pubDate>Tue, 07 Apr 2020 18:39:07 GMT</pubDate>
            <atom:updated>2020-04-07T18:39:07.021Z</atom:updated>
            <content:encoded><![CDATA[<p>The clock struck half past noon. The conference room, usually vacant, now was teemed with technical staff — everything ranging from the projectors to the lumbar support of the chairs needed to be perfect. Laxity is for the losers, and Ahlam wasn’t one of them. He knew that the moment the chairman set foot in the room with the clients, he had to put on his A-game. He spent a month refining every aspect of the upcoming presentation. Everything was in its place, just as he wanted. He took a deep breath as the audience began to fill up the room. Being 6&#39; tall, he could easily spot the chairman and the delegates navigating the hallways towards the conference room, through a maze of cubicles in the main office. As they enter the room, Ahlam greeted them with his signature smile and an ‘Employee of the Year’ firm handshake. Ahlam looked down at his golden Rolex — it was show-time.</p><p>The lights dimmed. The projector displayed the introduction slide. “For years, Flatley-Hackett Ltd. has been in the business to sell a vision.” Ahlam began. “A vision of a digital today and a smarter tomorrow. With effective management leading the way, I am proud to say that we are the frontrunners in the sector, with over $500 million in revenue earned in the Q3. With the synergy we have in mind with the esteemed clients, we can shoot upwards of a whopping $1 billion”. Ahlam saw some faces light up hearing the ‘B-word,’ and he loved it. Ahlam’s ability to read the room and skillful mastery of words gave him the power to capture everyone’s rapt attention. Ahlam paused for impact and then started to outline the proposed course of action.</p><p>Crash! A sudden shattering sound in the silent room. A client had accidentally knocked off one of the glasses off the table. Something triggered in the mind of Ahlam. He stood there, blank. His mind was racing to figure out why the sound felt so familiar — A distant scream, a shattered glass, the pungent smell of burning, a hazy memory. Ahlam could do nothing but stand still and faintly recollect fragments of yesterday’s dream. He tried hard to shrug it off as a bad dream, but something didn’t let him do that. His mind tried to make sense of what happened but had few data-points to furnish a theory. All he knew was that something terrible had transpired.</p><p>“Are you okay?” the chairman asked, concerned. Ahlam snapped out of his thoughts and replied in the affirmative. He didn’t want to sacrifice such a crucial meeting that could shape both the company’s and his future, pondering over bad dreams and tried to return to the presentation. Alas! Words escaped him entirely. The same slideshow he spent a month preparing, now seemed strange to him. The chairman saw his best orator in the house fumble for the first time in 11 years. Unprecedented as it was, something felt off in Ahlam’s demeanor to him. He advised Ahlam to go home and proposed to postpone the presentation to a later date.</p><p>Back at home, Ahlam could do nothing but blame himself for the mess he created at work today. His mind, now tired from calculating countless scenarios, wanted to sleep. Despite the heavy Bangalore traffic and the hustle-bustle of living in such a crowded city, Ahlam always found comfort in his wife’s arms. As the time neared his usual bedtime, Ahlam kissed her goodnight and went to sleep.</p><p>At the same moment, in the diametrically opposite end of the world, Marshall woke up in his ‘home’ in a trailer park in Florida. He yearned for a life in his dreams. In his dreams, he was an executive at a multinational company. He had everything he wished for — an expensive car, a watch worth more than his mother’s annual income, a loving family. Marshall never wanted to wake up. What will he wake up to? An abusive father who left his mother to drink and gamble? Or to go to high school just to be bullied by the affluent kids in the block? Or to be looked down upon by the girl he really liked? He reluctantly dragged his body to go see his mother in the kitchen. The kitchen was in a dilapidated condition, as was the rest of his mobile home. His mom slid him a $1 bill for his lunch. Who will tell her that the man he was in his dreams would laugh at this paltry lunch money? He didn’t blame his mother. After all, working overtime at a grocery store still fails to alleviate a single-mother and her teenage son out of abject poverty. Marshall’s mom kissed him goodbye and rushed to catch a bus to the workplace.</p><p>At the school, Marshall clandestinely made his way to the classroom, avoiding being seen by the bullies. He didn’t want to be punched today if at all he could avoid it. He saw the school heart-throb being all smug and sitting in the corner of the class. Scores of boys surrounded her. Marshall thought to himself, none of them loved her as he did. If diamonds could be bought with a dollar, he’d happily sacrifice his lunch for her. The world is often unkind to the hopeless romantics like Marshall, and he knew it very well. Suddenly a stick of chalk flew and hit his head and broke his day-dream. That stupid old hag of a professor wanted him to learn Chemistry. Him? Huh. If it were his dreams, Marshall would have made this silly doddering fellow dance to the tune of money. Marshall eyed that dollar bill in his pocket. He could have a hamburger today.</p><p>The recess bell sounded like music today. The entire school rushed to the cafeteria for a quick snack and a long gossip. Marshall glared at the lunch menu and saw his favorite hamburger on it. He was about to go order when he felt a sudden tap to his shoulder. He turned around to the horrific sight of 3 oversized and tall guys whom he feared the most. The anathemas to Marshall — the bullies. One of them slapped him, and the others grinned. The entire school was watching, but none rushed to help. Instead, people started recording the act on their smart-phones. Marshall clenched his fists as they circled around him to beat the shit out of him. One of them found the money in his pocket and snatched it away, showing it to the spectators. The biggest one of them kept that in his pocket.</p><p>“This is mine now,” he exclaimed. Marshall sobbingly tried to mutter an abuse but was quickly silenced by the punch to his face. He broke down crying. “Boo Hoo! The loser is weeping now! What is it? You want your mommy now ?” said the fatty. “Your mommy didn’t change your diaper today? Let me see…”, saying this the fatso pulled down Marshall’s pants in front of the crowd. His face turned purple. The entire group burst out laughing as he tried to pick up his pants and his dignity. He ran off to the restrooms to shelter himself from the clutches of the bullies. Little did he know, he had indirectly invited the bullies to stuff his head in a toilet seat. Luckily, the PE teacher arrived just as the bullies were about to submerge Marshall’s head. The teacher rebuked the three and picked the boy up.</p><p>On the way to his home, Marshall replayed the scene in his head a dozen times. He wept and wept at the incident and how everyone was laughing. What struck him the most was how Sally was laughing too. She could never look at him lovingly ever again, Marshall dejectedly wondered. Marshall’s mind ran through the stages of grief in the time it took to walk the 3-mile road back home. ‘Denial’ came first. He refused to believe what had happened to him. He shrugged the incident off as a dream, although most of them were happy. Anger followed next. However, this feeling stuck to him like a leech. “I will show them. I will show them. I will laugh. They won’t, “he muttered to himself. He looked up to the store on his left — “Florida Gun Exchange.” The devil had hijacked his mind. He could only think of the unthinkable. He peeked inside the glass pane and saw a thing he only observed in the movies and video-games — an M16. What came into his mind next would change a few lives beyond repair. He looked at the price of the gun and saw a $500 sign on it. He remembered that his mom had kept her savings in the top cupboard of her bedroom in a red pouch. It almost had a 1000 dollars.</p><p>Marshall’s mother was still out for work when he arrived at his home. He took pride in his ability to take the money out of the pouch without her mom figuring it out. With the devil guiding the way, he went to the store and asked for the M16 on the counter. He chuckled at the fact that, if this were to happen in any other country than the USA, people would have questioned his intentions and hell — even put him in jail. But this is ‘Murcia. The land where background checks are a farce and where even a 13-year kid could buy a gun. He hid the package in his black bag and clenched a handful of 5.56mm ammunition. He slept that night with a big grin on his face and a gun in his bag.</p><p>The moment Marshall went to sleep, half the world away, Ahlam woke up- pale. He had seen the worst dream in his life. He dreamt that he was bullied in the school, and the entire class was watching — even his crush. What gave him the chills was the thing that happened after. What he dreamt was akin to countless news stories that disturbed him in the past. He dreamt that he personally took up an assault rifle and killed many school children. Ahlam was disgusted that his mind even thought of this idea and looked at his wife for comfort. It was not germane for a would-be-father to think of killing school-children. He kissed his pregnant wife in the belly as if apologizing to the baby for his involuntary thoughts.</p><p>Ahlam made his wife scrambled eggs and then kissed her goodbye to leave for the office. He stepped on his luxurious car and tried hard to meander his way through traffic to his destination. He managed to reach in time and smiled at the watchman greeting him. He tried all day to work on a new project his boss assigned him to lead. However, his mind was somewhere else. He wondered at the implication of his dream. The dream was far too detailed to be a fiction. He felt that he had been dropped into an alternate reality, and his dreams were the mirror peering into the other reality. He hypothesized that he would have a similar dream today, taking cues from the dreams he had these past few days. He couldn’t place his finger on why he had that feeling, but all he wanted to do, was to stop getting these nightmares.</p><p>At night, Ahlam was anxious about getting a nightmare today. If what he saw yesterday night was to be taken into consideration, he really feared the dream he was to have today. He wished he did not sleep today, but his biological clock declined. In his dreams, he saw what he feared.</p><p>Marshall woke up. This was the day. He sprinted to the kitchen and kissed his mother goodbye. He was so excited about school today, he forgot to take his lunch money. He wouldn’t need that now. As he entered the school clenching his black bag, he smiled at the bullies on his way to the class. He could do what he had set his mind to right now, but he needed to wait. He wanted to recreate the scene that happened yesterday. That means he would have to wait for the recess. He took out a piece of paper and scribbled a message. He then tossed it to Sally’s desk. “I guess I won’t be needing you now,” Sally read the anonymous letter, confused.</p><p>How Ahlam wished that the bell didn’t ring in his dream today. But the arrow of time marched forward. The recess bell signaled Marshall to proceed towards the cafeteria. He saw numerous faces, the same ones who smiled behind their stupid smart-phones capturing his horrific ordeal. Sally was also there. She didn’t love him as he did her. That’s okay now.</p><p>The three bullies made their way to the table Marshall sat on. They murmured something amongst them and laughed. To their surprise, Marshall laughed too. The fattest one of them came forward and exclaimed, “Hey punk! What’s the matter ? “. “Nothing, Just feeling lucky today”, replied Marshall. The next thing the bullies saw was Marshall reach out to his bag. They saw him take out a loaded assault rifle. Chaos ensued. The entire cafeteria ran to take cover. No one could stop what happened next.</p><p>Marshall pointed the M16 at the bullies. He placed his finger on the trigger. He was about to shoot when he felt the gun veer up. This wasn’t due to recoil as he hadn’t even shot yet. He felt a strong resistance trying to pull the gun back down.</p><p>Bang. He fired. The bullet hit the ceiling. Bang. He fired. The bullet hit the wall. He could feel someone pulling his arms up. He saw no-one doing so. Yet his hands involuntarily curled inside. Bang.</p><p>The last thing that went through Marshall’s mind, apart from that lead bullet, was how his life turned out to be this way. The vicissitudes of fate led him to this moment. His body went limp and fell to the ground. The gun fell off his hands onto the cafeteria floor, to never be fired again. Marshall’s eyes turned lifeless.</p><p>Still in his sleep, Ahlam felt that he had done his job right. He had done what any father would do. He thought of countless fathers who will get to see their children tonight. He wasn’t sure if the same would happen to him. In his sleep, he felt a sharp pang of pain.</p><p>Ahlam’s wife found him dead in the morning.</p><p>The FBI and Bangalore Police each saw a body that day, never knowing that they were somehow entangled.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d612a93bc64" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Controlling a Simulink Model by a Python Controller]]></title>
            <link>https://medium.com/@soutrikbandyopadhyay/controlling-a-simulink-model-by-a-python-controller-2b67bde744ee?source=rss-f9cd6e417cc3------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b67bde744ee</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[simulink]]></category>
            <category><![CDATA[control-system]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Soutrik Bandyopadhyay]]></dc:creator>
            <pubDate>Thu, 23 May 2019 06:17:32 GMT</pubDate>
            <atom:updated>2019-05-23T06:17:32.783Z</atom:updated>
            <content:encoded><![CDATA[<p>MATLAB’s Simulink is unparalleled in terms of the ability to simulate complex non-linear systems. It provides a no-frills experience to design dynamical models as is often the case with Robotics and Control Systems Design.</p><p>Simulink, however, lags behind in the ability to provide extensive support to Deep Learning Frameworks and thus leads to complications when designing Intelligent controllers for Simulink Models.</p><p>Python is unmatched in terms of support for Deep Learning Frameworks and Numerical Computation tools but fails to model complex non-linear systems.</p><p>Can&#39;t we use both Python and Simulink in sync to utilize the benefits of each of these tools to mitigate the challenges raised by the other?</p><p>In this article, we will take a look at establishing communication between MATLAB and Python and thus design a simple PI Controller in Python for a Model in Simulink.</p><h3>Prerequisites</h3><ol><li>MATLAB v2013 or higher (Author used 2018b)</li><li>Python v3.6</li></ol><h3>Installation</h3><p>Follow the instructions on the link <a href="https://in.mathworks.com/help/matlab/matlab_external/install-the-matlab-engine-for-python.html">https://in.mathworks.com/help/matlab/matlab_external/install-the-matlab-engine-for-python.html</a> to install Matlab Engine API for Python for your operating system. That’s it.</p><h3>The Simulink Model</h3><p>In Simulink, create the desired model of choice in Simulink and place a constant block in each place you want to enforce a control action from Python. In this case, a constant named ‘u’ with an initial value of 0 was added as a control action to the model. The variables that are needed to be seen by Python must be sent to Workspace through a ‘To Workspace’ Block.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ugE8jonfmg1rHpew7Rkgnw.png" /><figcaption>Desired Model in Simulink</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*xnWcWpCbJxtUBHiZLbZl5g.png" /><figcaption>Properties for the ‘’To Workspace’’ block</figcaption></figure><p>The Workspace variable must be set to the format of ‘2D-Array’.</p><h3>The Python Code</h3><p><strong>Importing the Necessary Libraries</strong></p><pre>import matlab.engine<br>import matplotlib.pyplot as plt</pre><p>The matlab.engine library will establish communication with MATLAB and matplotlib will be used to plot the data obtained.</p><p><strong>The Simulink Connection Class</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/366735b35fd46ffaef99b747aa17a5e9/href">https://medium.com/media/366735b35fd46ffaef99b747aa17a5e9/href</a></iframe><p>This class sets up the connection between MATLAB and Python and develops a control loop to control the plant at each timestep.</p><p><strong>The Controller Class</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2bb64736f6d7e80a7c0067652ab031fa/href">https://medium.com/media/2bb64736f6d7e80a7c0067652ab031fa/href</a></iframe><p>This class acts as the control strategy to provide control actions at each timestep.</p><p><strong>Putting it all Together</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5c4f919161691092a109899fa7fb144d/href">https://medium.com/media/5c4f919161691092a109899fa7fb144d/href</a></iframe><p>The output of the code can be seen as follows-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*P4sw2r-O2BoJP0yb0Cf0Og.png" /><figcaption>Success !</figcaption></figure><h3>Success !</h3><p>Now one can easily modify the Controller class to incorporate better control strategies. Possibilities are endless.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b67bde744ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>