Skip to content

Commit 831c13c

Browse files
committed
Add "out_dir" option to docstrings for all optimizers
1 parent 481ba56 commit 831c13c

22 files changed

Lines changed: 44 additions & 0 deletions

modopt/core/optimization_algorithms/interior_point_dense.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ class InteriorPoint(Optimizer):
2323
If ``True``, record all outputs from the optimization.
2424
This needs to be enabled for hot-starting the same problem later,
2525
if the optimization is interrupted.
26+
out_dir : str, optional
27+
The directory to store all the output files generated from the optimization.
2628
hot_start_from : str, optional
2729
The record file from which to hot-start the optimization.
2830
hot_start_atol : float, default=0.

modopt/core/optimization_algorithms/l2_penalty_eq.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ class L2PenaltyEq(Optimizer):
2121
If ``True``, record all outputs from the optimization.
2222
This needs to be enabled for hot-starting the same problem later,
2323
if the optimization is interrupted.
24+
out_dir : str, optional
25+
The directory to store all the output files generated from the optimization.
2426
hot_start_from : str, optional
2527
The record file from which to hot-start the optimization.
2628
hot_start_atol : float, default=0.

modopt/core/optimization_algorithms/nelder_mead_simplex.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ class NelderMeadSimplex(Optimizer):
1818
If ``True``, record all outputs from the optimization.
1919
This needs to be enabled for hot-starting the same problem later,
2020
if the optimization is interrupted.
21+
out_dir : str, optional
22+
The directory to store all the output files generated from the optimization.
2123
hot_start_from : str, optional
2224
The record file from which to hot-start the optimization.
2325
hot_start_atol : float, default=0.

modopt/core/optimization_algorithms/newton.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ class Newton(Optimizer):
1717
If ``True``, record all outputs from the optimization.
1818
This needs to be enabled for hot-starting the same problem later,
1919
if the optimization is interrupted.
20+
out_dir : str, optional
21+
The directory to store all the output files generated from the optimization.
2022
hot_start_from : str, optional
2123
The record file from which to hot-start the optimization.
2224
hot_start_atol : float, default=0.

modopt/core/optimization_algorithms/newton_lagrange.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ class NewtonLagrange(Optimizer):
2121
If ``True``, record all outputs from the optimization.
2222
This needs to be enabled for hot-starting the same problem later,
2323
if the optimization is interrupted.
24+
out_dir : str, optional
25+
The directory to store all the output files generated from the optimization.
2426
hot_start_from : str, optional
2527
The record file from which to hot-start the optimization.
2628
hot_start_atol : float, default=0.

modopt/core/optimization_algorithms/opensqp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class OpenSQP(Optimizer):
2727
If ``True``, record all outputs from the optimization.
2828
This needs to be enabled for hot-starting the same problem later,
2929
if the optimization is interrupted.
30+
out_dir : str, optional
31+
The directory to store all the output files generated from the optimization.
3032
hot_start_from : str, optional
3133
The record file from which to hot-start the optimization.
3234
hot_start_atol : float, default=0.

modopt/core/optimization_algorithms/pso.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ class PSO(Optimizer):
2323
If ``True``, record all outputs from the optimization.
2424
This needs to be enabled for hot-starting the same problem later,
2525
if the optimization is interrupted.
26+
out_dir : str, optional
27+
The directory to store all the output files generated from the optimization.
2628
hot_start_from : str, optional
2729
The record file from which to hot-start the optimization.
2830
hot_start_atol : float, default=0.

modopt/core/optimization_algorithms/quasi_newton.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ class QuasiNewton(Optimizer):
1919
If ``True``, record all outputs from the optimization.
2020
This needs to be enabled for hot-starting the same problem later,
2121
if the optimization is interrupted.
22+
out_dir : str, optional
23+
The directory to store all the output files generated from the optimization.
2224
hot_start_from : str, optional
2325
The record file from which to hot-start the optimization.
2426
hot_start_atol : float, default=0.

modopt/core/optimization_algorithms/simulated_annealing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ class SimulatedAnnealing(Optimizer):
1515
If ``True``, record all outputs from the optimization.
1616
This needs to be enabled for hot-starting the same problem later,
1717
if the optimization is interrupted.
18+
out_dir : str, optional
19+
The directory to store all the output files generated from the optimization.
1820
hot_start_from : str, optional
1921
The record file from which to hot-start the optimization.
2022
hot_start_atol : float, default=0.

modopt/core/optimization_algorithms/sqp_dense.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class SQP(Optimizer):
2222
If ``True``, record all outputs from the optimization.
2323
This needs to be enabled for hot-starting the same problem later,
2424
if the optimization is interrupted.
25+
out_dir : str, optional
26+
The directory to store all the output files generated from the optimization.
2527
hot_start_from : str, optional
2628
The record file from which to hot-start the optimization.
2729
hot_start_atol : float, default=0.

0 commit comments

Comments
 (0)