engforge.solver_utils.refmin_solve
- refmin_solve(comp, prob, Xref, Yref, Xo=None, weights=None, ffunc=<function f_lin_min>, **kw)[source]
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
- Parameters:
Xref (
dict) – dictionary of references to the x values, or independentsYref (
dict) – dictionary of references to the value of objectives to be minimizedXo – initial guess for the x values as a list against Xref order, or a dictionary
weights (
Optional[array]) – a dictionary of values to weights the x values by, list also ok as long as same length and order as Xrefreset – if the solution fails, reset the x values to their original state, if true will reset the x values to their original state on failure overiding doset.
doset – if the solution is successful, set the x values to the solution by default, otherwise follows reset, if not successful reset is checked first, then doset