Originally posted by: SystemAdmin
What happens if you add auxiliary variables to represent the weighted sum of the y variables?
dvar float+ q; dvar
boolean y[i in MISSIONS, c in CONFIGS, t in TIME]; dvar
float sumy[i in MISSIONS, c in CONFIGS]; maximize Pi * q; st. forall(i in MISSIONS, c in CONFIGS) sumy[i,c] = ObsVal_Range[i][c]*sum(t in TIME)y[i][c][t]; sum(i in MISSIONS, c in CONFIGS) sumy[i,c]^2 >= q^2;
Does this work (modulo the syntax errors that I probably introduced)?
Note also that (if q does not appear anywhere else in the model) you could put the quadratic constraint directly into the objective function without having to introduce the q variable.
Tobias
#DecisionOptimization#MathematicalProgramming-General