[AMPL 16085] Same Objective with different set of Constraints

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[AMPL 16085] Same Objective with different set of Constraints

khan
Greetings,

Is there any way to solve the same Objective function with same parameters but with different set of constraints. I want to compare the optimal solutions of same objective function with different constraints. But I have uniform and normal parameters (that are changing in each iterations) that I want to use the same for different set of constraints.

Can I write objective function twice with different set of constraints?

Is there anyway to get this done in AMPL?

Thanking you in anticipation.    

--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [AMPL 16089] Same Objective with different set of Constraints

AMPL mailing list
You can solve create two models and solve them in different AMPL session.

--
Paras Tiwari
[hidden email]
{#HS:554625671-4465#}
On Wed, Apr 4, 2018 at 3:50 PM UTC, <[hidden email]> wrote:
Greetings,

Is there any way to solve the same Objective function with same parameters but with different set of constraints. I want to compare the optimal solutions of same objective function with different constraints. But I have uniform and normal parameters (that are changing in each iterations) that I want to use the same for different set of constraints.

Can I write objective function twice with different set of constraints?

Is there anyway to get this done in AMPL?

Thanking you in anticipation.
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.



--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [AMPL 16090] Same Objective with different set of Constraints

AMPL mailing list
In reply to this post by khan
AMPL has the named problem feature that was designed to make it easy to switch from one group of constraints to another while keeping the same data. You can refer to https://ampl.com/BOOK/CHAPTERS/17-solvers.pdf sections 14.4 and 14.5 for the explanation of the concept.

--
Paras Tiwari
[hidden email]
{#HS:554625671-4465#}
On Wed, Apr 4, 2018 at 5:52 PM UTC, AMPL Google Group <[hidden email]> wrote:
You can solve create two models and solve them in different AMPL session.

--
Paras Tiwari
[hidden email]


On Wed, Apr 4, 2018 at 3:50 PM UTC, <[hidden email]> wrote:
Greetings,

Is there any way to solve the same Objective function with same parameters but with different set of constraints. I want to compare the optimal solutions of same objective function with different constraints. But I have uniform and normal parameters (that are changing in each iterations) that I want to use the same for different set of constraints.

Can I write objective function twice with different set of constraints?

Is there anyway to get this done in AMPL?

Thanking you in anticipation.
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.



--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [AMPL 16166] Same Objective with different set of Constraints

khan
Thank you so much Paras. It solved my problem.

On Wednesday, 4 April 2018 21:37:51 UTC+2, AMPL Google Group wrote:
AMPL has the named problem feature that was designed to make it easy to switch from one group of constraints to another while keeping the same data. You can refer to <a href="https://ampl.com/BOOK/CHAPTERS/17-solvers.pdf" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fampl.com%2FBOOK%2FCHAPTERS%2F17-solvers.pdf\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEg6-HYt3oWfP3WYCjnOceZVzr1kw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fampl.com%2FBOOK%2FCHAPTERS%2F17-solvers.pdf\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEg6-HYt3oWfP3WYCjnOceZVzr1kw&#39;;return true;">https://ampl.com/BOOK/CHAPTERS/17-solvers.pdf sections 14.4 and 14.5 for the explanation of the concept.

--
Paras Tiwari
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="lmdcEUpHBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">am...@...
{#HS:554625671-4465#}
On Wed, Apr 4, 2018 at 5:52 PM UTC, AMPL Google Group <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="lmdcEUpHBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">am...@...> wrote:
You can solve create two models and solve them in different AMPL session.

--
Paras Tiwari
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="lmdcEUpHBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">am...@...


On Wed, Apr 4, 2018 at 3:50 PM UTC, <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="lmdcEUpHBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">am...@...> wrote:
Greetings,

Is there any way to solve the same Objective function with same parameters but with different set of constraints. I want to compare the optimal solutions of same objective function with different constraints. But I have uniform and normal parameters (that are changing in each iterations) that I want to use the same for different set of constraints.

Can I write objective function twice with different set of constraints?

Is there anyway to get this done in AMPL?

Thanking you in anticipation.
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="lmdcEUpHBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">ampl+uns...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="lmdcEUpHBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">am...@....
Visit this group at <a href="https://groups.google.com/group/ampl" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/group/ampl&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/ampl&#39;;return true;">https://groups.google.com/group/ampl.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.