Difference between revisions of "MINLP AMPL commands"
Line 1: | Line 1: | ||
− | + | # AMPL commands that run the models in MacMINLP | |
− | # AMPL commands that run the models in MacMINLP | + | # |
− | # | + | # Note: (1) mip_priorities gives SOS 1 and priorities. |
− | # Note: (1) mip_priorities gives SOS 1 and priorities. | + | # (2) Need to say "option MINLP_auxfiles rc;" when using |
− | # (2) Need to say "option MINLP_auxfiles rc;" when using | + | # SOS. |
− | # SOS. | + | |
− | + | ||
− | + | ##### THE SOLVERS ##### | |
− | ##### THE SOLVERS ##### | + | |
− | + | option solver MINLP_BB; | |
− | option solver MINLP_BB; | + | option solver filter; |
− | option solver filter; | + | option solver minos; |
− | option solver minos; | + | |
− | + | ||
− | + | ##### NEED THIS TO READ SOS INFO & PRIORITIES ##### | |
− | ##### NEED THIS TO READ SOS INFO & PRIORITIES ##### | + | |
− | + | option MINLP_BB_auxfiles rc; | |
− | option MINLP_BB_auxfiles rc; | + | option filter_auxfiles rc; |
− | option filter_auxfiles rc; | + | |
− | + | option filter_options "iprint=1"; | |
− | option filter_options "iprint=1"; | + | reset options; |
− | reset options; | + | |
− | + | ||
− | + | ##### SOLVE COMMANDS FOR THE MODELS ##### | |
− | ##### SOLVE COMMANDS FOR THE MODELS ##### | ||
reset; model batch.mod; write gbatch; solve; | reset; model batch.mod; write gbatch; solve; |
Revision as of 16:33, 4 March 2009
- AMPL commands that run the models in MacMINLP
- Note: (1) mip_priorities gives SOS 1 and priorities.
- (2) Need to say "option MINLP_auxfiles rc;" when using
- SOS.
- THE SOLVERS #####
option solver MINLP_BB; option solver filter; option solver minos;
- NEED THIS TO READ SOS INFO & PRIORITIES #####
option MINLP_BB_auxfiles rc; option filter_auxfiles rc;
option filter_options "iprint=1"; reset options;
- SOLVE COMMANDS FOR THE MODELS #####
reset; model batch.mod; write gbatch; solve; option mip_priorities batch; solve;
reset; model c-reload.mod; data c-reload-14a.dat; write gc-reload-14a; solve; reset; model c-reload.mod; data c-reload-14b.dat; write gc-reload-14b; solve; reset; model c-reload.mod; data c-reload-14c.dat; write gc-reload-14c; solve; reset; model c-reload.mod; data c-reload-14d.dat; write gc-reload-14d; solve; reset; model c-reload.mod; data c-reload-14e.dat; write gc-reload-14e; solve; reset; model c-reload.mod; data c-reload-14f.dat; write gc-reload-14f; solve;
reset; model c-reload-q.mod; data c-reload-q-24.dat; write gc-reload-q-24; solve; reset; model c-reload-q.mod; data c-reload-q-25.dat; write gc-reload-q-25; solve; reset; model c-reload-q.mod; data c-reload-q-49.dat; write gc-reload-q-49; solve; reset; model c-reload-q.mod; data c-reload-q-104.dat; write gc-reload-q-104; solve;
reset; model c-sched.mod; data c-sched1.dat; write gc-sched1; solve; reset; model c-sched.mod; data c-sched1.dat; option mip_priorities c-sched1; solve; reset; model c-sched.mod; data c-sched2.dat; write gc-sched2; solve; reset; model c-sched.mod; data c-sched2.dat; option mip_priorities c-sched2; solve;
reset; model feedloc.mod; write gfeedloc; solve; reset; model geartrain.mod; write ggeartrain; solve; reset; model mittelman.mod; write gmittelman; solve; reset; model optprloc.mod; write goptprloc; solve; reset; model sample.mod; write gsample; solve;
reset; model space-25.mod; data space-25.dat; write gspace-25; solve; option mip_priorities space-25; solve; reset; model space-960.mod; data space-960.dat; write gspace-960; solve; option mip_priorities space-960; solve; reset; model space-25-r.mod; data space-25-r.dat; write gspace-25-r; solve; option mip_priorities space-25; solve; reset; model space-960-r.mod; data space-960-r.dat; write gspace-960-r; solve; option mip_priorities space-960; solve; reset; model space-960-i.mod; data space-960-i.dat; write gspace-960-i; solve; option mip_priorities space-960; solve; reset; model space-960-ir.mod; data space-960-ir.dat; write gspace-960-ir; solve; option mip_priorities space-960; solve;
reset; model spring.mod; write gspring; solve;
reset; model stockcycle.mod; write gstockcycle; solve; option mip_priorities stockcycle; solve;
reset; model synthes1.mod; write gsynthes1; solve; reset; model synthes2.mod; write gsynthes2; solve; reset; model synthes3.mod; write gsynthes3; solve;
option nlp_scales top; reset; model top.mod; data top1-15x05.dat; write gtop1-15x05; solve; reset; model top.mod; data top1-30x10.dat; write gtop1-30x10; solve; reset; model top.mod; data top1-60x20.dat; write gtop1-60x20; solve;
reset; model trimlon.mod; data trimlon2.dat; write gtrimlon2; solve; reset; model trimlon.mod; data trimlon4.dat; write gtrimlon4; solve; reset; model trimlon.mod; data trimlon5.dat; write gtrimlon5; solve; reset; model trimlon.mod; data trimlon6.dat; write gtrimlon6; solve; reset; model trimlon.mod; data trimlon7.dat; write gtrimlon7; solve; reset; model trimlon.mod; data trimlon12.dat; write gtrimlon12; solve; option mip_priorities trimlon; solve;
reset; model trimloss.mod; data trimloss2.dat; write gtrimloss2; solve; option mip_priorities trimloss2; solve; reset; model trimloss.mod; data trimloss4.dat; write gtrimloss4; solve; option mip_priorities trimloss4; solve; reset; model trimloss.mod; data trimloss5.dat; write gtrimloss5; solve; option mip_priorities trimloss5; solve; reset; model trimloss.mod; data trimloss6.dat; write gtrimloss6; solve; option mip_priorities trimloss6; solve; reset; model trimloss.mod; data trimloss7.dat; write gtrimloss7; solve; option mip_priorities trimloss7; solve; reset; model trimloss.mod; data trimloss12.dat; write gtrimloss12; solve; option mip_priorities trimloss12; solve;
reset; model wind-fac.mod; write gwind-fac; solve;
##################################
#### models not yet included #####
##################################
reset; model indextrack.mod; data indextrack.dat; solve;
reset; model polgas.mod; data polgas.dat; option mip_priorities polgas; solve; reset option mip_priorities; reset; model polgas.mod; data polgas.dat; solve;
reset; model water-net.mod; data water-net.dat; solve; reset; model water-net.mod; data water-FL.dat; solve; display qp, qn, d, z;
reset; model meanvarx.mod; data meanvarx.dat; solve; display x, xi, xd, y, z; </nowiki>