Wonder is someone can help I need to Minimize the non-linear objective function: Obj:=(1/4*a[1]+3/4*a[2]+7/8*a[3]+15/8*a[5]+2*a[6]+19/8*a[7]+21/8*a[8]+1/4*b[1]+ 3/4*b[2]+7/8*b[3]+15/8*b[5]+2*b[6]+19/8*b[7]+21/8*b[8])^2 subject to the following constraints: CON1:=add(a[n],n=1..8)=4 CON2:=add(b[n],n=1..8)=4 CON3:=seq(a[n]+b[n]=1,n=1..8) CON4:=seq(or(a[n]=0,b[n]=1),n=1..8) With(Optimization): NLPSolve(Obj,{CON1,CON2,CON3,CON4},assume = nonnegative); produces this: Error, (in Optimization:-NLPSolve) constraints must be specified as a set or list of equalities and inequalities It doesn't like CON4, the binomial

Please Wait...