• Gurobi Staff

Hi Sebastian -

The fourth argument to addVars() ("type") should be an array of length "count".

I hope this helps,

Gwyneth

I got another error because when i use the array i got invalid type and the constant for binary is "B".

Thanks for responding.

• Gurobi Staff

Hi Sebastian - This doesn't work because "B" is not an array of length arcos.size().

char type[] = {GRB_BINARY, GRB_BINARY, GRB_BINARY};...x = model.addVars(0,0,obj,type,name,3);

I hope this helps.

thanks that help me alot