KKT Conditions

I need to relearn optimization, so here’s my incredibly short review.

The most basic problem to solve is to minimize $f(x)$ such that $g(x) = 0$. Since the constraint is an equality condition, we use the Lagrange multiplier. We look at the Lagrangian function $\mathcal{L}(x, \lambda) = f(x) – \lambda g(x)$; it’s easy to see that the minima of the original problem satisfies some sort of saddle point condition. This Lagrangian minimization problem can be solved by taking the gradients and setting it equal to 0.

As an example, let’s consider the curl-curl problem I’ve been looking at.
\begin{align*}
A u &= f, \\
B u &= 0
\end{align*}
with some appropriate boundary conditions which I will skip. The matrix $A$ corresponds to a curl-curl operator in strong form and $B$ is a div operator. The zero-divergence condition on the function is critical for the physics; $u$ should be thought of as a magnetic field and thus satisfy Gauss’s law.

Since $A$ is positive semi-definite, this is really a minimization problem $\min J(u) = u^T A u/2 – f^T u$ with corresponding Lagrangian $\mathcal{L}(u, \lambda) = u^T A u/ 2 – f^T u – \lambda^T Bu$ (note that in this case, $\lambda$ is a vector). The gradient with respect to the multiplier gives $Bu = 0$ as expected, and the gradient with respect to $u$ gives $Au – B^T\lambda = f$. Combining these gives the saddle point problem that we are familiar with. We can also obtain this sort of result using the functional formulation; without diving into too much details, it’s a similar process except with the Euler-Lagrange equation.

So what in the world is KKT conditions then? It’s just the generalization of Lagrange multipliers to inequalities… Specifically, one forms the Lagrangian again, and then set all the gradients equal to 0 and magically we get the correct minimum. Now looking back on this, this is a really strong result. But man, the way the econ professors taught this was tragically bad.

Parallel Timelines

I probably spent dozens of hours fretting about with my college admission essays. At the time, a good application meant a great college, meaning a great career and a happily ever after. The writing was not an easy process; turns out I really didn’t have that much life experience as a… let me check… seventeen year old boy. Nevertheless, I crafted something that I was relatively proud of.

Eleven years later, I remember nothing about that essay. My mom had to remind me that I actually written about a Chinese idiom. The essay is nowhere to be found on my computer hard drives. A probable victim of the great purges of my Linux reinstalls before I found out about home mounting.

All things considered, I had a decent application process. I got into some nice schools, and proceeded to have a pretty decent life so far. Still, I wonder how much did that essay matter? Would I be as (—insert flattering/demeaning adjective of me here–) if I slacked off? Maybe the Marshall who stayed close to home and went to FSU ultimately found his true calling of inner tube water polo coach.

Maybe the above is a farcical question. The Marshall of eleven years yonder would’ve never slacked off.

Etiquette

Having a big boy job for the first time means that I had access to movers for the first time ever. It’s a luxury, that once experienced, becomes a necessity. I’ve moved around quite a bit in college and grad school, but this past move to Albuquerque is the smoothest ever. There was no need to worry about boxes nor trigger my anxiety by driving the UHaul with no rearview mirror.

The guys would come in, pack/unload my stuff, and call me “boss.” I’ve never been called “boss” so many times within 2 hours in my life before, and honestly, I was so flattered.

But as a side effect, I just felt… bad for the movers the whole time. Am I supposed to really just stand around while three hard working men are moving my stuff? It just doesn’t really suit me.

Honestly, they need to have a “for you to do” task just for the antsy ones.

“Here’s a box, load up your stupid plates in there. Should take you longer than us to pack up the rest of your house.”

 

 

The Year

During grad school, a tangible indication that I was actually learning things was to note the publication date of the papers I were reading, and actually comprehending a majority of it. From basic analysis with textbooks written and polished to a shine during the 50s-60s, to the fundamentals of numerics written in the 60s and 70s to finally my advisor’s research papers written in the 2000s; it just feels nice to really see that I was growing as a researcher.

I guess part of the reason why PhDs are useful is the fact that I don’t have to “start” over from the basics when learning another topic. Analysis will always be relevant in whatever mathematical field one chooses to dive into, and the intuition developed *should* also carry over.

I guess my point here is that in the span of 3 days, I have learned how to code up PINNs (2015s ish…) using Tensorflow lol. See here. Man, ML is such a new field.

Sock Run

A friend in Providence told me she visited Albuquerque once. Her deepest impression of the Duke City is “the streets are really wide.” Without a doubt, this was probably one of the oddest comment I’ve heard regarding any destination.

“Was it easier to drive?”

“No, it was just really … wide.” But I’ve grown to understand what she meant by it now.

Like most people these days, I simply took to YouTube and became an instant urban planner expert and civil engineer. In particular, the channel Not Just Bikes was especially enlightening.

Without repeating the content of the linked video above, it’s painfully obvious that Albuquerque was built without the pedestrian in mind. While there are sidewalks, the scale of the city is simply larger with huge, empty parking lots placed in front of businesses and crosswalks that cut through at least four lanes of traffic, some 60 feet. Let’s not talk about the zoning issues where the residential areas, with low density housing, are completely separate from businesses.  It just never feel safe, nor fast to walk.

A prime example happened yesterday when I needed to buy some socks. There’s a Dick’s Sporting Good store in the mall right by the hotel I’m staying, approximately half a mile away. I knew the route since I drive past it to the climbing gym, so I know how unfriendly it is to pedestrians.

Shamefully, I drove.

A renaissance fair is just a state fair from a few hundred years ago.

Very much true.

Also, armored combat (e.g. video) is BRUTAL.

Two Updates

I have officially moved to Albuquerque. For the past couple of weeks, I’ve thought this transition is scarier than those in the past. But I’ve had a hard time moving to Providence too; those first couple of weeks were difficult though my classmates alleviated the dread. Same as Ithaca. Same as DC. Same as Budapest.

Moving is just hard in general. Making connections is even harder.


I actually submitted to NYTimes awhile back  a very similar puzzle to the 9/9/2021 theme, and this was their response:

I’m writing in response to your “Metric” 15x submission. With regrets, we are going to pass on this puzzle. Solid work, but unfortunately we recently accepted a puzzle with a very similar theme. That said, wanted to compliment your playful and creative cluing angles, as well as some fun entries in the bonus fill like MAC AND CHEESE, ELECTRIC EELS, SOULMATES and SINE WAVES!

So sorry for the disappointing news this time. Appreciate you giving us a chance to review your puzzle, and hope to see more from you soon!

Here was my (much easier, was envisioning Wednesday) take: https://crosshare.org/crosswords/vvMLFE4CJYs7JPZ4Ulja

 

Normalization of Toasts

No, not bread. The other definition, whereby a group of people raise their glasses, sing praises about someone, and proceed to sip (or chug, there is no in between) their drinks. Specifically, I want to discuss compliments.

True compliments are rare, and it’s no wonder that I find it difficult to accept them sincerely. My “thanks!” and “I appreciate it” always seem to fall flat. WikiHow, the premier website for the anxiety-ridden population, even has a whole page dedicated to this subject. Maybe the reason for this is that we just need more practice taking in a compliment. Conversely, that means we, as a population, need to give out more sincere compliments to friends, family and even strangers.

A better question should be why aren’t compliments more widely given? In my experience, well-to-do children in stable households accumulate accolades fast. “You worked so hard Timmy! Great job!” or “Look at you Tess, someone did marvelously.” The smallest thing was worthy of praise. I still remember being quite proud of family friends complimenting my height when I was in elementary school. While shallow in nature, it instilled self-esteem and made a boy happier.

But past the grade school period, I found that compliments dry up from family and friends. Perhaps it is because there is less to “celebrate” as we age. Birthdays become ho-hum and holidays can even be depressing at times. There’s also the simple fact that compliments usually results from an action or change in a lifestyle (e.g. new wardrobe, physique, graduation, career change, marriage etc.) and those events are sparse.

Compliments from strangers are even rarer, and has actually been studied more. It seems that there are three-ish main reasons:

  1. People underestimate the power of a genuine compliment.
  2. People overestimate how awkward a social interaction is
  3. People are anxious talking to someone in general

The conclusion from the study: just compliment people more! Everyone will feel better, and it’s not difficult. Comedy Central’s Toast might never materialize, but I can certainly start doing my part by giving out more genuine, compliments.

Saudade

Definition:

a deep emotional state of nostalgic or profound melancholic longing for something or someone that one cares for and/or loves. Moreover, it often carries a repressed knowledge that the object of longing might never be had again. It is the recollection of feelings, experiences, places, or events that once brought excitement, pleasure, and well-being, which now trigger the senses and make one experience the pain of separation from those joyous sensations. However it acknowledges that to long for the past would detract from the excitement you feel towards the future.

Went to a wedding this past weekend for a childhood friend. In spite of Fred, the ceremony was beautiful and emotional. The reception was fun, and it feels good to let loose and be in the present. Danced the night away.

At the same time, I kept on being reminded of times long past. It might be because I roomed with my high school friends. It might be because it was near where Ashley and Alex’s wedding was. It might be because I am a sentimental bitch.