This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |