You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
since it is more stable and efficient than the `set_objective_[aspect]`
141
142
methods due to its enhanced methodology for parsing expressions.
143
+
144
+
### Multi-Objective Problems
145
+
`InfiniteOpt` also supports multi-objective problems by supplying the model with a vector of scalar values.
146
+
Instead of a `JuMP.AbstractJuMPScalar`, these become `AbstractVector` within the model.
147
+
148
+
These models are defined the same way as scalar, single-objective models with `@objective`, with some slight differences in definition. Looking at the aforementioned example and modifying it a bit, it becomes:
149
+
150
+
```jldoctest obj_multi
151
+
julia> @objective(model, Max, [0.5x[1], 0.5x[2]])
152
+
0.5 x[1]
153
+
0.5 x[2]
154
+
```
155
+
If a scalarization method of solving the model is the goal, the individual `@expression` scalars within the vector can be compiled into a single objective. The weight- or priority- of these expressions can be changed by multiplying each component in the vector by fractions, with the sum of the fractions being 1.
156
+
In hierarchical model solving, the order of the scalars determines the priority of the model.
0 commit comments