gemseo.algos.opt.scipy_linprog.settings.highs_dual_simplex module#
Settings for the HiGHS dual simplex method.
- Settings DUAL_SIMPLEX_Settings(*, enable_progress_bar=None, eq_tolerance=0.01, ineq_tolerance=0.0001, log_problem=True, max_time=0.0, normalize_design_space=True, progress_bar_data_name='ProgressBarData', reset_iteration_counters=True, round_ints=True, store_jacobian=True, use_database=True, use_one_line_progress_bar=False, ftol_rel=0.0, ftol_abs=0.0, max_iter=1000, scaling_threshold=None, stop_crit_n_x=3, xtol_rel=0.0, xtol_abs=0.0, autoscale=False, disp=False, maxiter=1000, presolve=True, rr=True, rr_method=None, tol=1e-08, dual_feasibility_tolerance=1e-07, primal_feasibility_tolerance=1e-07, simplex_dual_edge_weight_strategy='steepest-devex')[source]#
Bases:
BaseSciPyLinProgSettingsThe HiGHS dual simplex method setting.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
enable_progress_bar (bool | None)
eq_tolerance (Annotated[float, Ge(ge=0)]) --
By default it is set to 0.01.
ineq_tolerance (Annotated[float, Ge(ge=0)]) --
By default it is set to 0.0001.
log_problem (bool) --
By default it is set to True.
max_time (Annotated[float, Ge(ge=0)]) --
By default it is set to 0.0.
normalize_design_space (bool) --
By default it is set to True.
progress_bar_data_name (ProgressBarDataName) --
By default it is set to "ProgressBarData".
reset_iteration_counters (bool) --
By default it is set to True.
round_ints (bool) --
By default it is set to True.
store_jacobian (bool) --
By default it is set to True.
use_database (bool) --
By default it is set to True.
use_one_line_progress_bar (bool) --
By default it is set to False.
ftol_rel (Annotated[float, Ge(ge=0)]) --
By default it is set to 0.0.
ftol_abs (Annotated[float, Ge(ge=0)]) --
By default it is set to 0.0.
max_iter (Annotated[int, Gt(gt=0)]) --
By default it is set to 1000.
stop_crit_n_x (Annotated[int, Ge(ge=2)]) --
By default it is set to 3.
xtol_rel (Annotated[float, Ge(ge=0)]) --
By default it is set to 0.0.
xtol_abs (Annotated[float, Ge(ge=0)]) --
By default it is set to 0.0.
autoscale (bool) --
By default it is set to False.
disp (bool) --
By default it is set to False.
maxiter (Annotated[int, Gt(gt=0)]) --
By default it is set to 1000.
presolve (bool) --
By default it is set to True.
rr (bool) --
By default it is set to True.
rr_method (Literal['SVD', 'pivot', 'ID'] | None)
tol (Annotated[float, Ge(ge=0)]) --
By default it is set to 1e-08.
dual_feasibility_tolerance (Annotated[float, Ge(ge=0)]) --
By default it is set to 1e-07.
primal_feasibility_tolerance (Annotated[float, Ge(ge=0)]) --
By default it is set to 1e-07.
simplex_dual_edge_weight_strategy (Literal['dantzig', 'devex', 'steepest', 'steepest-devex']) --
By default it is set to "steepest-devex".
- Return type:
None
- dual_feasibility_tolerance: NonNegativeFloat = 1e-07#
The dual feasability tolerance.
- Constraints:
ge = 0
- primal_feasibility_tolerance: NonNegativeFloat = 1e-07#
The primal feasability tolerance.
- Constraints:
ge = 0
- simplex_dual_edge_weight_strategy: Literal['dantzig', 'devex', 'steepest', 'steepest-devex'] = 'steepest-devex'#
Strategy for simplex dual edge weights.
- model_post_init(context, /)#
This function is meant to behave like a BaseModel method to initialise private attributes.
It takes context as an argument since that's what pydantic-core passes when calling it.
- Parameters:
self (BaseModel) -- The BaseModel instance.
context (Any) -- The context.
- Return type:
None