A set of codes written focusing on optimization and network analysis