Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SU2_PY/SU2/eval/design.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def obj_p(config,state,this_obj,def_objs):
(def_objs[this_obj]['OBJTYPE']=='<' and funcval > constraint )):
penalty = (constraint - funcval)**2.0
# If 'DEFAULT' objtype this returns the function value.
else:
elif (def_objs[this_obj]['OBJTYPE']=='DEFAULT'):
penalty = funcval
return penalty

Expand Down