-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0755e14
commit b91a192
Showing
3 changed files
with
151 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
""" Sequential linear programing approach for minimax optimization | ||
""" | ||
|
||
import numpy as np | ||
from iterprinter import IterationPrinter | ||
|
||
|
||
def slq(obj, x0, jac, constraints): | ||
r""" | ||
Solves | ||
min_x \| res(x) \|_\infty | ||
where | ||
|res(x)[j]| \approx | res(x)[j] + jac(x)[j] | | ||
""" | ||
|
||
if verbose: | ||
iterprinter = IterationPrinter(it = '4d') | ||
iterprinter.print_header(it = 'iter') | ||
|
||
|
||
|
This file contains 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