I solve a model and get an answer that I called it "sol" i want to have set 'i' such that i={1,...,sol}.
Instead of changing the . I wrote set as below, but it didn't work.
In other words I need my set changes depending on the value of sol.
My try:
scalar sol;
*after solving my model sol=objFun.val
set i /1*sol/;
Is there any way to use scalar in set defenition?