When I use conopt, I found that it’s hard to get a feasible solution in one single time, so I use loop stragety to give different initial value. Here is a segment of my program.
set cout /1*10/;
loop(cout,
x.l=uniform(1,10);
Solve modelA using nlp maximizing obj ;
if(.modelA modelstat eq 2),
execute_unload ‘result1.gdx’, x, y;
)
)
In this loop, if I get 2 feasible solution, the later gdx file will overwrite the former one because there is only 1 result.gdx fille here. I want to know how to give different gdx file different name so that I can make them out.
–
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.
\
Hi ?..
An easy way is using savepoint. This will number your gdx Files. See the gdx Manual and McCarl’s user Guide.
Cheers
.??..
PS Next time you write, don’t be lazy and at least write your name at the end of your post.
sent from my iPad
Am 14.07.2013 um 20:45 schrieb “dutzhangyi@gmail.com” :
When I use conopt, I found that it’s hard to get a feasible solution in one single time, so I use loop stragety to give different initial value. Here is a segment of my program.
set cout /1*10/;
loop(cout,
x.l=uniform(1,10);
Solve modelA using nlp maximizing obj ;
if(.modelA modelstat eq 2),
execute_unload ‘result1.gdx’, x, y;
)
)
In this loop, if I get 2 feasible solution, the later gdx file will overwrite the former one because there is only 1 result.gdx fille here. I want to know how to give different gdx file different name so that I can make them out.
–
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.
–
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.
\