Skip to content

Instantly share code, notes, and snippets.

import tkinter as tk
from tkinter import ttk, messagebox
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
from matplotlib.ticker import ScalarFormatter
# Tell matplotlib to work inside a Tkinter window
matplotlib.use("TkAgg")
import numpy as np
import matplotlib.pyplot as plt
# Given Values
P = 1000.0 # Force N
rho = 8000.0 # Density kg/m^3
g = 9.81 # Gravity m/s^2
t = 0.2 # Thickness m
W_0 = 0.5 # Width at bottom x=0
L = 1.0 # Length of bar m
@pree1010
pree1010 / Project 1, MANF 455.py
Created December 4, 2025 00:34
This Gist is for MANF 455 Project by me.
import pandas as pd
import geopandas as gpd
from shapely.geometry import Point, Polygon
import gurobipy as gp
from gurobipy import GRB
import folium
import numpy as np
from math import radians, cos, sin, asin, sqrt
import webbrowser
@pree1010
pree1010 / Project 2, MANF 460.py
Last active January 17, 2026 01:24
This Gist is for MANF 460 CLSC MILP Analysis. Only to be used by group members and course instructor for evaluation.
import gurobipy as gp
from gurobipy import GRB
import numpy as np
import matplotlib.pyplot as plt
# 1. SETS
num_I = 1 # isotopes (e.g., Tc-99m)
num_S = 5 # suppliers