
From:  Meketon, Marc 
Subject:  Re: [Helpglpk] Solving two optimization problems using the same model 
Date:  Sat, 2 Mar 2013 15:45:09 0600 
You can define a parameter to do this: param IsModel1 := 1; #to run model 2, change this to IsModel1 := 0; minimize IsModel1 * ( [the objective function of the first model]) + (1IsModel1) * ([the objective function of the second model]); subject to: Some_Constraint_in_Model2_Not_in_Model1 (1IsModel1) * ([the lefthandside of the constraint] ) = (1IsModel1)*([the right hand side of the constraint]); From: helpglpkbounces+address@hidden [mailto:helpglpkbounces+address@hidden
On Behalf Of Eduardo León 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: This email and any attachments may be confidential or legally privileged. If you received this message in error or are not the intended recipient, you should destroy the email message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained herein. Please inform us of the erroneous delivery by return email. Thank you for your cooperation. 
[Prev in Thread]  Current Thread  [Next in Thread] 