You could use weights in the objective function to influence these things.
I would help to decide on the methodology first before implementing it in Julia. While you can get general numerical/computational advice here, your field may have a preferred method. It would be best to talk to your thesis advisor first, focus on something concrete, and then ask how to implement that in Julia.