i have some troubles with my objective in pyomo. I'm trying to minimize the difference between meassured value (parameter - which i import from a .txt) and the result for a variable from my optimization model.
Now my objective is:
def _obj_rule(mode):
return pe.summation(model.T_vl_s_M,model.T_VL_s_dyn)
model.obj = pe.Objective(rule=_obj_rule, sense=pe.minimize)
so the first part is the meassurement (param) and the second is the variable of the optimization. I want to minimize the difference.
What shall i do? When i start the program like this, i get an error, that the maximum number of iterations is exceeded.
Thanks in advance!