## This file contains script commands for solving an optimization model ## Load the model model resurs-modell.mod; ## Load the data data resurs-data.dat; ## Choose solver option solver cplexamp; ## Other useful options #option cplex_options 'sensitivity'; #option omit_zero_rows 1; #option display_transpose -5; ## Solve the model solve; ## Print interesting results on the file result.res display tot_cost > resurs.res; ## Example: change a parameter value #let dem["elec",2020]:=130; #solve; #display agg_emis, tot_cost, dem["elec",2020] > resurs.res; ## Example: looping #let bio_pot := 200; #for {1..5} #{ #let bio_pot := bio_pot + 20; #solve; #display tot_cost > resurs.res; #} ## Display sensitivity information ## Dual variable values (shadow price) and slack variable values #display supply_pot_Q.dual, supply_pot_Q.slack > resurs.res; ## Primal variable values and reduced costs #display supply_1.val, supply_1.rc > resurs.res; #}