engforge.solver_utils.f_lin_min
- f_lin_min(comp, prob, Xref, Yref, weights=None, *args, **kw)[source]
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.
- Parameters:
comp – the comp object
Xref – a dictionary of reference values for X
Yref – a dictionary of reference values for Y
weights – optional weights for Yref
args – additional positional arguments
kw – additional keyword arguments
- Returns:
the anonymous function