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
#Data for the Allocation of Interdiction problem (in Stephen Boyd's Convex Optimization course) generated with Matlab; | |
#I borrowed the list of edges from https://github.com/NoamGit/CVX101-HW-with-python/blob/master/HW10/hw10_script.py and | |
#used matlab to generate a and x_max. | |
import numpy as np | |
(n, m) = (10, 20) | |
B = m / 2.0 |
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
""" Solution for the "Minimax rational fit to the exponential" problem in Stephen Boyd's Convex Optimization | |
Compares a bisection-based implementation to that employing coordinate descent (iterative partial minimization). | |
:Copyright: | |
Copyright Ry Auscitte 2021. This script is distributed under MIT License. | |
:Authors: | |
Ry Auscitte | |
""" |
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
""" Prints set-theoretic relations for a sequence of consecutive dbxupdate.bin files | |
Prepend file names with the release date in the yyyy-mm-dd format (you can name the files | |
in some other way, but make sure that sorting the files in a lexicographical order | |
correspendeds to sorting them by a release date) | |
dbxupdate_parser lives at https://github.com/Auscitte/sys-utils/blob/main/dbxupdate_parser.py | |
:Copyright: | |
Ry Auscitte 2023. This script is distributed under MIT License. |
OlderNewer