engforge.solver_utils

Functions

arg_var_compare

combo_filter

create_constraint

creates a constraint with bounded solver input from a constraint definition in dictionary with type and value.

ext_str_list

f_lin_min

Creates an anonymous function with stored references to comp, Yref, weights, that returns a scipy optimize friendly function of (x, Xref, *a, **kw) x which corresponds to the order of Xref dicts, and the other inputs are up to application.

filt_active

filter_combos

filter_vals

handle_normalize

objectify

converts a function f(comp,slv_info:dict) into a function that safely changes states to the desired values and then runs the function.

ref_to_val_constraint

takes a var reference and a value and returns a function that can be used as a constraint for min/max cases.

refmin_solve

minimize the difference between two dictionaries of refernces, x references are changed in place, y will be solved to zero, options ensue for cases where the solution is not ideal

str_list_f

Classes

SolverUtilLog

Initialize a filter.