Hi Eduardo, all ------------------------------------------------------------ To: [email protected] Subject: [Help-glpk] Solving two optimization problems using the same From: Eduardo Le?n <[email protected]> Date: Sat, 2 Mar 2013 12:59:11 -0500 ------------------------------------------------------------
> I want to make a model to solve two interrelated > minimization problems. Both problems are largely > the same: they are defined in terms of the same > sets, are parametrized by the same data, have the > same decision variables and largely the same > constraints. The only differences between the two > problems are: [snip] I saw Marc Meketon's suggestion which exactly answered your original question. But I also had another thought. Why not place your model under 'git' and run two branches: 'mod1' and 'mod2'. Switching between the two is a simple call, for instance: $ git checkout mod2. Updates to one model (read branch) can be easily transferred to (merged with) the other. You can read the objective value generated by 'mod1' from the 'mod2' branch with some scripting (perhaps bash, perl, python) and duly update your local 'mod2' MathProg file. might be of some use? Robbie --- Robbie Morrison PhD student -- policy-oriented energy system simulation Technical University of Berlin (TU-Berlin), Germany University email (redirected) : [email protected] Webmail (preferred) : [email protected] [from Webmail client] _______________________________________________ Help-glpk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-glpk
