objectives
- compas_cra.equilibrium.objectives(solver, weights=(1.0, 1.0, 1000000.0, 1.0))[source]
Objective functions for pyomo.
- Parameters
solver (str) –
cra: CRA objective, \(W_{compression} * ||f_n||_2^2 + W_{α} * ||α||_2^2\)
cra_penalty: CRA penalty objective, \(W_{compression} * ||{f_n}^+||_2^2 + W_{tension} * ||{f_n}^-||_2^2 + W_{α} * ||α||_2^2\)
rbe: RBE objective, \(W_{compression} * ||{f_n}^+||_2^2 + W_{tension} * ||{f_n}^-||_2^2 + W_{friction} * ||{f_u}||_2^2 + W_{friction} * ||{f_v}||_2^2\)
weights (tuple, optional) – weighting factors, \((W_{α}, W_{compression}, W_{tension}, W_{friction})\)
- Returns
Callable – objective function for pyomo
Notes
dsodijsio jdois jois