<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-15731</id>
	<title>Nabble - AMPL</title>
	<updated>2009-11-08T14:50:27Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/AMPL-f15731.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/AMPL-f15731.html" />
	<subtitle type="html">A discussion and help group for &lt;a href=&quot;http://www.ampl.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;AMPL&lt;/a&gt;, an algebraic modeling language for optimization problems of many kinds. &amp;nbsp;AMPL lets people use common notation and familiar concepts to formulate models and examine solutions, while the computer manages communication with appropriate solvers.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26261077</id>
	<title>[AMPL 2975] Re: how to turn Cplex presolve off in AMPL</title>
	<published>2009-11-08T14:50:27Z</published>
	<updated>2009-11-08T14:50:27Z</updated>
	<author>
		<name>SORA-7</name>
	</author>
	<content type="html">umm, it doesn't work. I have tried to put crossover=0, presolve=0,
&lt;br&gt;prereduce=0, aggregate=0, aggfill=0 and dependency=0 in the options.
&lt;br&gt;But the output
&lt;br&gt;is still the same,
&lt;br&gt;&lt;br&gt;Here is the output:
&lt;br&gt;5255 variables, all linear
&lt;br&gt;2626 constraints, all linear; 15689 nonzeros
&lt;br&gt;1 linear objective; 5 nonzeros.
&lt;br&gt;&lt;br&gt;ILOG CPLEX 10.000, licensed to &amp;quot;university-edinburgh&amp;quot;, options: e m b
&lt;br&gt;q use=5
&lt;br&gt;CPLEX 10.0.0: baropt
&lt;br&gt;crossover=0
&lt;br&gt;presolve=0
&lt;br&gt;prereduce=0
&lt;br&gt;aggregate=0
&lt;br&gt;aggfill=0
&lt;br&gt;dependency=0
&lt;br&gt;prestats=1
&lt;br&gt;lpdisplay=1
&lt;br&gt;Presolve time = &amp;nbsp; &amp;nbsp;0.00 sec.
&lt;br&gt;LP Presolve eliminated 72 rows and 2697 columns.
&lt;br&gt;Reduced LP has 2554 rows, 2558 columns, and 7751 nonzeros.
&lt;br&gt;Presolve time = &amp;nbsp; &amp;nbsp;0.01 sec.
&lt;br&gt;CPLEX 10.0.0: optimal solution; objective 5.494632119
&lt;br&gt;7 barrier iterations; no basis.
&lt;br&gt;&lt;br&gt;Thank you very much indeed.
&lt;br&gt;&lt;br&gt;Naiyuan
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On 11月8日, 下午3時55分, Paul &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26261077&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ru...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; I'm not sure, but try adding prereduce=0 to your solver options. &amp;nbsp;(You
&lt;br&gt;&amp;gt; may also want aggregate=0 in the options.)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /Paul
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26261077&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2970--how-to-turn-Cplex-presolve-off-in-AMPL-tp26250122p26261077.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26261078</id>
	<title>[AMPL 2974] Re: Constraint formulation</title>
	<published>2009-11-08T11:07:17Z</published>
	<updated>2009-11-08T11:07:17Z</updated>
	<author>
		<name>alisonthomas</name>
	</author>
	<content type="html">Hi Bob and Paul,
&lt;br&gt;&lt;br&gt;thank you both for the replies. &amp;nbsp;I should have expressed my question
&lt;br&gt;with more clarity - sorry for that.
&lt;br&gt;&lt;br&gt;Thank you Paul for your answer and explanation, which answers my
&lt;br&gt;question perfectly.
&lt;br&gt;&lt;br&gt;Is there a list available of piece-meal linearisations such as this?
&lt;br&gt;&lt;br&gt;Thank you so much.
&lt;br&gt;Alison
&lt;br&gt;&lt;br&gt;On Nov 5, 11:06 pm, Paul &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26261078&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ru...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I agree with Bob that your question could use some refinement, but I
&lt;br&gt;&amp;gt; think I know what you're getting at, so I'll take a shot.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I don't think you can do exactly what you want, but you may come
&lt;br&gt;&amp;gt; close.  Let M be a sufficiently large positive constant and epsilon a
&lt;br&gt;&amp;gt; sufficiently small (but strictly positive) constant, and let Y (a
&lt;br&gt;&amp;gt; variable) be the output of your first IF.  Introduce a new binary
&lt;br&gt;&amp;gt; variable Z together with the following constraints:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (1) epsilon*Z &amp;lt;= A &amp;lt;= M*Z
&lt;br&gt;&amp;gt; (2) B - M*Z &amp;lt;= Y &amp;lt;= B + M*Z
&lt;br&gt;&amp;gt; (3) -M*(1-Z) &amp;lt;= Y &amp;lt;= M*(1-Z).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; A &amp;lt;= 0 forces Z = 0 in the left part of (1), which forces Y = B in (2)
&lt;br&gt;&amp;gt; and makes (3) vacuous.  A &amp;gt;= epsilon forces Z = 1 in the right side of
&lt;br&gt;&amp;gt; (1), which forces Y = 0 in (3) and makes (2) vacuous.  Besides
&lt;br&gt;&amp;gt; introducing a binary variable, there is one catch: 0 &amp;lt; A &amp;lt; epsilon has
&lt;br&gt;&amp;gt; been excised from the feasible region.  So this won't work if
&lt;br&gt;&amp;gt; arbitrarily small but positive values of A are legitimate contenders
&lt;br&gt;&amp;gt; for an optimal solution.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Incidentally, I used the same M in every constraint because I'm too
&lt;br&gt;&amp;gt; lazy to type subscripts, but you can (and probably should) use a
&lt;br&gt;&amp;gt; distinct M (the tightest value you can find that is guaranteed not to
&lt;br&gt;&amp;gt; cut off an optimal solution) in each constraint.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /Paul
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Nov 1, 12:09 pm, AlisonT &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26261078&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;alisontho...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Can someone please advise me how I should formulate a constraint that
&lt;br&gt;&amp;gt; &amp;gt; represents the following:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; IF( &amp;quot;decision variable A&amp;quot; &amp;gt; 0, then 0, else &amp;quot;decision variable B&amp;quot;)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I also need to formulate a similar constraint, where &amp;quot;decision
&lt;br&gt;&amp;gt; &amp;gt; variable B&amp;quot; is 1 and is therefore a binary decision variable i.e.
&lt;br&gt;&amp;gt; &amp;gt; IF( &amp;quot;decision variable C&amp;quot; &amp;gt; 0, then 0, else 1)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thank you so much.
&lt;br&gt;&amp;gt; &amp;gt; Alison- Hide quoted text -
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - Show quoted text -
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26261078&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2939--Constraint-formulation-tp26152896p26261078.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26255082</id>
	<title>[AMPL 2973] Re: Error Executing AMPL</title>
	<published>2009-11-08T08:05:44Z</published>
	<updated>2009-11-08T08:05:44Z</updated>
	<author>
		<name>Paul-432</name>
	</author>
	<content type="html">On Nov 7, 7:39 pm, Diana &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26255082&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dixig...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hello, when I try to solve the modelo, I get a error message:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; file -
&lt;br&gt;&amp;gt; line 46
&lt;br&gt;&amp;gt; offset 1667
&lt;br&gt;&amp;gt; cumpl_labor is not defined
&lt;br&gt;&lt;br&gt;You define a parameter named cumpl_lab but refer to a parameter named
&lt;br&gt;cumpl_labor. &amp;nbsp;Since there are no references to cumpl_lab other than in
&lt;br&gt;its declaration, I suspect you meant them to be the same thing.
&lt;br&gt;&lt;br&gt;You also need to insert a statement
&lt;br&gt;&amp;nbsp; data;
&lt;br&gt;before the start of the data declarations (around where you have the
&lt;br&gt;comment #DATA). Otherwise AMPL thinks the data statements are actually
&lt;br&gt;trying to redefine your sets and parameters.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; file -
&lt;br&gt;&amp;gt; line 292
&lt;br&gt;&amp;gt; offset 7619
&lt;br&gt;&amp;gt; expected :=
&lt;br&gt;&amp;gt; file -
&lt;br&gt;&amp;gt; line 303
&lt;br&gt;&amp;gt; offset 8007
&lt;br&gt;&amp;gt; cap_horas is already defined
&lt;br&gt;&amp;gt; Error executing &amp;quot;solve&amp;quot; command:
&lt;br&gt;&amp;gt; error processing constraint capa_horas[5047]:
&lt;br&gt;&amp;gt;         no value for tiempo_ej[5047,409]
&lt;/div&gt;&lt;br&gt;I don't get this far, because you did not provide data for the
&lt;br&gt;parameter cap_uso.
&lt;br&gt;&lt;br&gt;/Paul
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26255082&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2968--Error-Executing-AMPL-tp26250119p26255082.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26254988</id>
	<title>[AMPL 2972] Re: how to turn Cplex presolve off in AMPL</title>
	<published>2009-11-08T07:55:13Z</published>
	<updated>2009-11-08T07:55:13Z</updated>
	<author>
		<name>Paul-432</name>
	</author>
	<content type="html">I'm not sure, but try adding prereduce=0 to your solver options. &amp;nbsp;(You
&lt;br&gt;may also want aggregate=0 in the options.)
&lt;br&gt;&lt;br&gt;/Paul
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26254988&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2970--how-to-turn-Cplex-presolve-off-in-AMPL-tp26250122p26254988.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26254886</id>
	<title>[AMPL 2971] Re: Different results on Windows vs. Linux</title>
	<published>2009-11-08T07:47:43Z</published>
	<updated>2009-11-08T07:47:43Z</updated>
	<author>
		<name>Paul-432</name>
	</author>
	<content type="html">On Nov 6, 10:33 pm, Din &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26254886&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dinakar.g...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Paul,
&lt;br&gt;&amp;gt; Thanks for your reply.
&lt;br&gt;&amp;gt; Yes, I am using the same data input/output format for both windows and
&lt;br&gt;&amp;gt; Linux - I am using a model file with 3 different models, a run file,
&lt;br&gt;&amp;gt; and a data file. I am making parameter assignments from one model's
&lt;br&gt;&amp;gt; solve as an input to another during the iterations using AMPL's 'let'
&lt;br&gt;&amp;gt; command. All problems are LP's.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Would it be of any help if I used Callable libraries/Concert
&lt;br&gt;&amp;gt; technology instead of making AMPL calls?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks again
&lt;br&gt;&amp;gt; Din
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;Possible but doubtful. &amp;nbsp;You might try writing one of the intermediate
&lt;br&gt;problems where Windows and Linux results were different to an MPS
&lt;br&gt;file. &amp;nbsp;Read it into CPLEX interactive solver, solve it, and see what
&lt;br&gt;the condition number of the basis matrix is. &amp;nbsp;If the matrix is ill-
&lt;br&gt;conditioned (admittedly a relative judgment), you might investigate
&lt;br&gt;whether you can reformulate the problem to have a nicer condition
&lt;br&gt;matrix. &amp;nbsp;(Besides the condition number of the final basis, you might
&lt;br&gt;get signals of ill-conditioning if CPLEX refactors the basis
&lt;br&gt;frequently or issues warnings along the way).
&lt;br&gt;&lt;br&gt;You're using the variables values from a solution to one problem to
&lt;br&gt;modify the parameters of the next problem? When you said that
&lt;br&gt;intermediate problems were reported feasible under Windows but
&lt;br&gt;infeasible under Linux, did you confirm that the models being tested
&lt;br&gt;were identical? &amp;nbsp;If any of your LPs have multiple optimal solutions,
&lt;br&gt;it's possible that you get different solutions on Windows and Linux
&lt;br&gt;(both optimal, but different variable values) due to different pivot
&lt;br&gt;sequences. &amp;nbsp;That would lead to a divergence in the subsequent problems
&lt;br&gt;(different coefficient matrices) and any cross-platform comparability
&lt;br&gt;would be lost.
&lt;br&gt;&lt;br&gt;/Paul
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26254886&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2964--Different-results-on-Windows-vs.-Linux-tp26238743p26254886.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26250119</id>
	<title>[AMPL 2968] Error Executing AMPL</title>
	<published>2009-11-07T16:39:11Z</published>
	<updated>2009-11-07T16:39:11Z</updated>
	<author>
		<name>Diana-39</name>
	</author>
	<content type="html">Hello, when I try to solve the modelo, I get a error message:
&lt;br&gt;&lt;br&gt;file -
&lt;br&gt;line 46
&lt;br&gt;offset 1667
&lt;br&gt;cumpl_labor is not defined
&lt;br&gt;file -
&lt;br&gt;line 292
&lt;br&gt;offset 7619
&lt;br&gt;expected :=
&lt;br&gt;file -
&lt;br&gt;line 303
&lt;br&gt;offset 8007
&lt;br&gt;cap_horas is already defined
&lt;br&gt;Error executing &amp;quot;solve&amp;quot; command:
&lt;br&gt;error processing constraint capa_horas[5047]:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; no value for tiempo_ej[5047,409]
&lt;br&gt;&lt;br&gt;Please, Why is this?
&lt;br&gt;&lt;br&gt;My code is the following:
&lt;br&gt;&lt;br&gt;#SETS
&lt;br&gt;set TRAC;
&lt;br&gt;set LAB;
&lt;br&gt;&lt;br&gt;#PARAMETERS
&lt;br&gt;&lt;br&gt;param cfijo{i in TRAC, j in LAB} &amp;gt;= 0;
&lt;br&gt;param cost_var{i in TRAC, j in LAB} &amp;gt;= 0;
&lt;br&gt;param cap_horas{i in TRAC} &amp;gt;= 0;
&lt;br&gt;param cap_uso{i in TRAC} &amp;gt;= 1;
&lt;br&gt;param cumpl_lab{j in LAB} = 1;
&lt;br&gt;param tiempo_ej{i in TRAC,j in LAB} &amp;gt;= 0;
&lt;br&gt;&lt;br&gt;# VARIABLE
&lt;br&gt;var w{i in TRAC, j in LAB} binary;
&lt;br&gt;minimize costo_total: &amp;nbsp;# ($/week)
&lt;br&gt;&lt;br&gt;#OBJECTIVE
&lt;br&gt;sum{i in TRAC, j in LAB} (cfijo[i,j]*w[i,j])
&lt;br&gt;+ sum{ i in TRAC, j in LAB} (cost_var[i,j]*w[i,j]);
&lt;br&gt;&lt;br&gt;# CONSTRAINTS
&lt;br&gt;&lt;br&gt;subject to capa_horas {i in TRAC}:
&lt;br&gt;sum{j in LAB} (w[i,j]*tiempo_ej[i,j]) &amp;lt;= cap_horas[i];
&lt;br&gt;&lt;br&gt;subject to capa_uso {i in TRAC}:
&lt;br&gt;sum{j in LAB} (w[i,j]) &amp;gt;= cap_uso[i];
&lt;br&gt;&lt;br&gt;subject to cumplm_lab {j in LAB}:
&lt;br&gt;sum{i in TRAC} (w[i,j]) = cumpl_labor[j];
&lt;br&gt;&lt;br&gt;#DATA
&lt;br&gt;&lt;br&gt;# SETS
&lt;br&gt;&lt;br&gt;set TRAC:= 5047	 5048	5049	5050	5051	 &amp;nbsp;5052	5053	5200
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5203	 5206	5221	5223	5224	 5225	5226	5227
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5228	 6010	6011	7056	7058	7059	7061	7062
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7078	 8000	8007;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;set LAB:= 409 &amp;nbsp;411 &amp;nbsp;412 &amp;nbsp;419 &amp;nbsp;420 &amp;nbsp;421 &amp;nbsp;440 &amp;nbsp;442 &amp;nbsp;444 &amp;nbsp;445
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 446 &amp;nbsp;491 &amp;nbsp;531 &amp;nbsp;131 &amp;nbsp;842 &amp;nbsp;140 &amp;nbsp;208 &amp;nbsp;130 &amp;nbsp;120 &amp;nbsp;142;
&lt;br&gt;&lt;br&gt;&lt;br&gt;# PARAMETERS
&lt;br&gt;&lt;br&gt;&lt;br&gt;param cfijo default 9999999: 409 &amp;nbsp;411 &amp;nbsp;412 &amp;nbsp;419 &amp;nbsp;420 :=
&lt;br&gt;&lt;br&gt;5047	.	.	.	.	.
&lt;br&gt;5048	.	.	.	.	.
&lt;br&gt;5049	.	737022	.	.	.
&lt;br&gt;5050	.	737022	.	.	.
&lt;br&gt;5051	.	737022	.	.	.
&lt;br&gt;5052	.	737022	.	.	.
&lt;br&gt;5053	.	.	.	.	.
&lt;br&gt;5200	737022	.	737022	737022	737022
&lt;br&gt;5203	737022	.	737022	737022	737022
&lt;br&gt;5206	737022	.	737022	737022	737022
&lt;br&gt;5221	737022	.	737022	737022	737022
&lt;br&gt;5223	737022	.	737022	737022	737022
&lt;br&gt;5224	737022	.	737022	737022	737022
&lt;br&gt;5225	.	737022	.	.	.
&lt;br&gt;5226	737022	.	.	.	.
&lt;br&gt;5227	737022	.	737022	737022	737022
&lt;br&gt;5228	737022	.	737022	737022	737022
&lt;br&gt;6010	.	.	.	.	.
&lt;br&gt;6011	.	.	.	.	.
&lt;br&gt;7056	737022	.	737022	737022	737022
&lt;br&gt;7058	737022	.	737022	737022	737022
&lt;br&gt;7059	737022	.	737022	737022	737022
&lt;br&gt;7061	.	.	737022	737022	737022
&lt;br&gt;7062	737022	.	737022	737022	737022
&lt;br&gt;7078	.	.	.	.	.
&lt;br&gt;8000	.	.	.	.	.
&lt;br&gt;8007	.	.	.	.	.
&lt;br&gt;&lt;br&gt;: 421	440	442	444	445 :=
&lt;br&gt;5047	737022	737022	737022	.	.
&lt;br&gt;5048	737022	737022	737022	.	.
&lt;br&gt;5049	.	737022	737022	.	.
&lt;br&gt;5050	.	737022	737022	.	.
&lt;br&gt;5051	.	737022	737022	.	.
&lt;br&gt;5052	.	737022	737022	.	.
&lt;br&gt;5053	.	.	.	.	.
&lt;br&gt;5200	.	.	.	737022	737022
&lt;br&gt;5203	.	.	737022	737022	737022
&lt;br&gt;5206	.	.	737022	737022	737022
&lt;br&gt;5221	.	.	.	737022	737022
&lt;br&gt;5223	.	.	737022	737022	737022
&lt;br&gt;5224	.	.	737022	737022	737022
&lt;br&gt;5225	.	.	737022	.	.
&lt;br&gt;5226	.	.	737022	.	.
&lt;br&gt;5227	.	737022	737022	737022	737022
&lt;br&gt;5228	.	.	.	737022	737022
&lt;br&gt;6010	.	.	.	.	.
&lt;br&gt;6011	.	.	.	.	.
&lt;br&gt;7056	737022	737022	737022	737022	737022
&lt;br&gt;7058	737022	737022	737022	737022	737022
&lt;br&gt;7059	737022	737022	737022	737022	737022
&lt;br&gt;7061	737022	737022	737022	737022	737022
&lt;br&gt;7062	737022	737022	737022	737022	737022
&lt;br&gt;7078	737022	.	.	737022	737022
&lt;br&gt;8000	737022	.	.	.	.
&lt;br&gt;8007	737022	.	.	.	.
&lt;br&gt;&lt;br&gt;: 446	491	531	131	842 :=
&lt;br&gt;&lt;br&gt;5047	.	.	.	.	737022
&lt;br&gt;5048	.	.	.	.	.
&lt;br&gt;5049	.	.	.	.	737022
&lt;br&gt;5050	.	.	.	.	.
&lt;br&gt;5051	.	.	.	737022	.
&lt;br&gt;5052	.	737022	.	.	.
&lt;br&gt;5053	.	737022	.	737022	.
&lt;br&gt;5200	.	.	.	.	.
&lt;br&gt;5203	737022	.	.	.	.
&lt;br&gt;5206	737022	.	.	.	.
&lt;br&gt;5221	.	.	.	.	.
&lt;br&gt;5223	737022	.	.	.	.
&lt;br&gt;5224	737022	.	.	.	.
&lt;br&gt;5225	737022	.	.	.	.
&lt;br&gt;5226	737022	737022	.	.	.
&lt;br&gt;5227	737022	.	.	.	.
&lt;br&gt;5228	.	.	.	.	.
&lt;br&gt;6010	.	.	.	737022	.
&lt;br&gt;6011	.	.	.	737022	.
&lt;br&gt;7056	.	.	737022	737022	737022
&lt;br&gt;7058	.	.	737022	737022	737022
&lt;br&gt;7059	.	.	737022	737022	737022
&lt;br&gt;7061	.	.	.	737022	737022
&lt;br&gt;7062	.	.	.	737022	737022
&lt;br&gt;7078	.	.	.	737022	737022
&lt;br&gt;8000	.	.	.	.	.
&lt;br&gt;8007	.	.	.	737022	737022
&lt;br&gt;&lt;br&gt;:140	208	130	120	142 :=
&lt;br&gt;&lt;br&gt;5047	737022	737022	737022	.	.
&lt;br&gt;5048	.	737022	737022	737022	.
&lt;br&gt;5049	737022	.	.	737022	.
&lt;br&gt;5050	.	737022	.	.	.
&lt;br&gt;5051	.	.	.	.	.
&lt;br&gt;5052	.	.	.	.	.
&lt;br&gt;5053	.	.	.	.	737022
&lt;br&gt;5200	.	.	.	.	.
&lt;br&gt;5203	.	.	.	.	.
&lt;br&gt;5206	.	.	.	.	.
&lt;br&gt;5221	.	.	.	.	.
&lt;br&gt;5223	.	.	.	.	.
&lt;br&gt;5224	.	.	.	.	.
&lt;br&gt;5225	.	.	.	.	.
&lt;br&gt;5226	.	.	.	.	.
&lt;br&gt;5227	.	.	.	.	.
&lt;br&gt;5228	.	.	.	.	.
&lt;br&gt;6010	.	.	.	737022	.
&lt;br&gt;6011	.	.	.	737022	.
&lt;br&gt;7056	737022	.	737022	.	737022
&lt;br&gt;7058	737022	.	737022	.	737022
&lt;br&gt;7059	737022	.	737022	.	737022
&lt;br&gt;7061	737022	.	737022	.	737022
&lt;br&gt;7062	737022	.	737022	.	737022
&lt;br&gt;7078	737022	.	.	737022	.
&lt;br&gt;8000	.	.	.	737022	737022
&lt;br&gt;8007	.	.	737022	737022	737022 ;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;param cost_var default 9999999: 409 &amp;nbsp;411	412 &amp;nbsp;419	420 :=
&lt;br&gt;&lt;br&gt;5047	.	.	.	.	.
&lt;br&gt;5048	.	.	.	.	.
&lt;br&gt;5049	. &amp;nbsp; 8782294	.	.	.
&lt;br&gt;5050	. &amp;nbsp; 12291821	.	.	.
&lt;br&gt;5051	. &amp;nbsp; 6679969	.	.	.
&lt;br&gt;5052	. &amp;nbsp; 7425955	.	.	.
&lt;br&gt;5053	.	.	.	.	.
&lt;br&gt;5200 &amp;nbsp;15119759	. &amp;nbsp;23059627	0	6587407
&lt;br&gt;5203 &amp;nbsp;16288183	. &amp;nbsp;24841627	0	7096469
&lt;br&gt;5206 &amp;nbsp;19427234	. &amp;nbsp;29629094	0	8464096
&lt;br&gt;5221 &amp;nbsp;13218890	. &amp;nbsp;20160550	0	5759232
&lt;br&gt;5223 &amp;nbsp;13724626	. &amp;nbsp;20931865	0	5979572
&lt;br&gt;5224 &amp;nbsp;10585576	. &amp;nbsp;16144398	0	4611944
&lt;br&gt;5225	. &amp;nbsp; 12851311	.	.	.
&lt;br&gt;5226 &amp;nbsp;11928391	.	.	.	.
&lt;br&gt;5227 &amp;nbsp;18747106	. &amp;nbsp;28591809	0	8167776
&lt;br&gt;5228 &amp;nbsp;16933433	. &amp;nbsp;25825718	0	7377591
&lt;br&gt;6010	.	.	.	.	.
&lt;br&gt;6011	.	.	.	.	.
&lt;br&gt;7056 &amp;nbsp;8928855	. &amp;nbsp;13617680	0	3890141
&lt;br&gt;7058 &amp;nbsp;7498842	. &amp;nbsp;11436724	0	3267111
&lt;br&gt;7059 &amp;nbsp;8457996	. &amp;nbsp;12899561	0	3684996
&lt;br&gt;7061	.	. &amp;nbsp;14043233	0	4011708
&lt;br&gt;7062 &amp;nbsp;9888009	. &amp;nbsp;15080517	0	4308027
&lt;br&gt;7078	.	.	.	.	.
&lt;br&gt;8000	.	.	.	.	.
&lt;br&gt;8007	.	.	.	.	.
&lt;br&gt;&lt;br&gt;: 421	440	442	444	445 :=
&lt;br&gt;&lt;br&gt;5047	0 &amp;nbsp; &amp;nbsp;13447230	0	.	.
&lt;br&gt;5048	0 &amp;nbsp; &amp;nbsp;13828171	0	.	.
&lt;br&gt;5049	. &amp;nbsp; &amp;nbsp;19732762	0	.	.
&lt;br&gt;5050	. &amp;nbsp; &amp;nbsp;27618248	0	.	.
&lt;br&gt;5051	. &amp;nbsp; &amp;nbsp;15009090	0	.	.
&lt;br&gt;5052	. &amp;nbsp; &amp;nbsp;16685232	0	.	.
&lt;br&gt;5053	.	.	.	.	.
&lt;br&gt;5200	.	.	.	0	0
&lt;br&gt;5203	.	.	0	0	0
&lt;br&gt;5206	.	.	0	0	0
&lt;br&gt;5221	.	.	.	0	0
&lt;br&gt;5223	.	.	0	0	0
&lt;br&gt;5224	.	.	0	0	0
&lt;br&gt;5225	.	.	0	.	.
&lt;br&gt;5226	.	.	0	.	.
&lt;br&gt;5227	. &amp;nbsp; &amp;nbsp;40951195	0	0	0
&lt;br&gt;5228	.	.	.	0	0
&lt;br&gt;6010	.	.	.	.	.
&lt;br&gt;6011	.	.	.	.	.
&lt;br&gt;7056	0 &amp;nbsp; 19504197	0	0	0
&lt;br&gt;7058	0 &amp;nbsp; 16380479	0	0	0
&lt;br&gt;7059	0 &amp;nbsp; 18475656	0	0	0
&lt;br&gt;7061	0 &amp;nbsp; 20113703	0	0	0
&lt;br&gt;7062	0 &amp;nbsp; 21599374	0	0	0
&lt;br&gt;7078	0	.	.	0	0
&lt;br&gt;8000	0	.	.	.	.
&lt;br&gt;8007	0	.	.	.	.
&lt;br&gt;&lt;br&gt;: 446	491	531	131	842 :=
&lt;br&gt;&lt;br&gt;5047	.	.	.	.	0
&lt;br&gt;5048	.	.	.	.	.
&lt;br&gt;5049	.	.	.	.	0
&lt;br&gt;5050	.	.	.	.	.
&lt;br&gt;5051	.	.	.	0	.
&lt;br&gt;5052	. &amp;nbsp; &amp;nbsp;43407965	.	.	.
&lt;br&gt;5053	. &amp;nbsp; &amp;nbsp;79283953	.	0	.
&lt;br&gt;5200	.	.	.	.	.
&lt;br&gt;5203 7020981	.	.	.	.
&lt;br&gt;5206 8374060	.	.	.	.
&lt;br&gt;5221 &amp;nbsp; &amp;nbsp;.	.	.	.	.
&lt;br&gt;5223 5915965	.	.	.	.
&lt;br&gt;5224 4562886	.	.	.	.
&lt;br&gt;5225 5697969	.	.	.	.
&lt;br&gt;5226 5141703 67787780	.	.	.
&lt;br&gt;5227 8080893	.	.	.	.
&lt;br&gt;5228	.	.	.	.	.
&lt;br&gt;6010	.	.	.	0	.
&lt;br&gt;6011	.	.	.	0	.
&lt;br&gt;7056	.	.	0	0	0
&lt;br&gt;7058	.	.	0	0	0
&lt;br&gt;7059	.	.	0	0	0
&lt;br&gt;7061	.	.	.	0	0
&lt;br&gt;7062	.	.	.	0	0
&lt;br&gt;7078	.	.	.	0	0
&lt;br&gt;8000	.	.	.	.	.
&lt;br&gt;8007	.	.	.	0	0
&lt;br&gt;&lt;br&gt;: 140	208	130	120	142 :=
&lt;br&gt;&lt;br&gt;5047	0	0	0	.	.
&lt;br&gt;5048	.	0	0	0	.
&lt;br&gt;5049	0	.	.	0	.
&lt;br&gt;5050	.	0	.	.	.
&lt;br&gt;5051	.	.	.	.	.
&lt;br&gt;5052	.	.	.	.	.
&lt;br&gt;5053	.	.	.	.	0
&lt;br&gt;5200	.	.	.	.	.
&lt;br&gt;5203	.	.	.	.	.
&lt;br&gt;5206	.	.	.	.	.
&lt;br&gt;5221	.	.	.	.	.
&lt;br&gt;5223	.	.	.	.	.
&lt;br&gt;5224	.	.	.	.	.
&lt;br&gt;5225	.	.	.	.	.
&lt;br&gt;5226	.	.	.	.	.
&lt;br&gt;5227	.	.	.	.	.
&lt;br&gt;5228	.	.	.	.	.
&lt;br&gt;6010	.	.	.	0	.
&lt;br&gt;6011	.	.	.	0	.
&lt;br&gt;7056	0	.	0	.	0
&lt;br&gt;7058	0	.	0	.	0
&lt;br&gt;7059	0	.	0	.	0
&lt;br&gt;7061	0	.	0	.	0
&lt;br&gt;7062	0	.	0	.	0
&lt;br&gt;7078	0	.	.	0	.
&lt;br&gt;8000	.	.	.	0	0
&lt;br&gt;8007	.	.	0	0	0 ;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;param tiempo_ej: 409	411	412	419	420 :=
&lt;br&gt;&lt;br&gt;5047	0	0	0	0	0
&lt;br&gt;5048	0	0	0	0	0
&lt;br&gt;5049	0 &amp;nbsp; &amp;nbsp;129.01	0	0	0
&lt;br&gt;5050	0 &amp;nbsp; &amp;nbsp;129.01	0	0	0
&lt;br&gt;5051	0 &amp;nbsp; &amp;nbsp;129.01	0	0	0
&lt;br&gt;5052	0 &amp;nbsp; &amp;nbsp;129.01	0	0	0
&lt;br&gt;5053	0	0	0	0	0
&lt;br&gt;5200 278.67	0 &amp;nbsp; &amp;nbsp;101.1925	0 &amp;nbsp; 75.1595
&lt;br&gt;5203 278.67	0 &amp;nbsp; &amp;nbsp;101.1925	0 &amp;nbsp; 75.1595
&lt;br&gt;5206 278.67	0 &amp;nbsp; &amp;nbsp;101.1925	0 &amp;nbsp; 75.1595
&lt;br&gt;5221 278.67	0 &amp;nbsp; &amp;nbsp;101.1925	0 &amp;nbsp; 75.1595
&lt;br&gt;5223 278.67	0 &amp;nbsp; &amp;nbsp;101.1925	0 &amp;nbsp; 75.1595
&lt;br&gt;5224 278.67	0 &amp;nbsp; &amp;nbsp;101.1925	0 &amp;nbsp; 75.1595
&lt;br&gt;5225	0 &amp;nbsp; &amp;nbsp;129.01	0	0	0
&lt;br&gt;5226 278.67	0	0	0	0
&lt;br&gt;5227 278.67	0 &amp;nbsp; &amp;nbsp;101.1925	0 &amp;nbsp; 75.1595
&lt;br&gt;5228 278.67	0 &amp;nbsp; &amp;nbsp;101.1925	0 &amp;nbsp; 75.1595
&lt;br&gt;6010	0	0	0	0	0
&lt;br&gt;6011	0	0	0	0	0
&lt;br&gt;7056 278.67	0 &amp;nbsp; &amp;nbsp;101.1925	0 &amp;nbsp; 75.1595
&lt;br&gt;7058 278.67	0 &amp;nbsp; &amp;nbsp;101.1925	0 &amp;nbsp; 75.1595
&lt;br&gt;7059 278.67	0 &amp;nbsp; &amp;nbsp;101.1925	0 &amp;nbsp; 75.1595
&lt;br&gt;7061	0	0 &amp;nbsp; &amp;nbsp;101.1925	0 &amp;nbsp; 75.1595
&lt;br&gt;7062 278.67	0 &amp;nbsp; &amp;nbsp;101.1925	0 &amp;nbsp; 75.1595
&lt;br&gt;7078	0	0	0	0	0
&lt;br&gt;8000	0	0	0	0	0
&lt;br&gt;8007	0	0	0	0	0
&lt;br&gt;&lt;br&gt;: 421	440	442	444	445 :=
&lt;br&gt;&lt;br&gt;5047	0 &amp;nbsp; 144.935	0	0	0
&lt;br&gt;5048	0 &amp;nbsp; 144.935	0	0	0
&lt;br&gt;5049	0 &amp;nbsp; 144.935	0	0	0
&lt;br&gt;5050	0 &amp;nbsp; 144.935	0	0	0
&lt;br&gt;5051	0 &amp;nbsp; 144.935	0	0	0
&lt;br&gt;5052	0 &amp;nbsp; 144.935	0	0	0
&lt;br&gt;5053	0	0	0	0	0
&lt;br&gt;5200	0	0	0	0	0
&lt;br&gt;5203	0	0	0	0	0
&lt;br&gt;5206	0	0	0	0	0
&lt;br&gt;5221	0	0	0	0	0
&lt;br&gt;5223	0	0	0	0	0
&lt;br&gt;5224	0	0	0	0	0
&lt;br&gt;5225	0	0	0	0	0
&lt;br&gt;5226	0	0	0	0	0
&lt;br&gt;5227	0 &amp;nbsp; 144.935	0	0	0
&lt;br&gt;5228	0	0	0	0	0
&lt;br&gt;6010	0	0	0	0	0
&lt;br&gt;6011	0	0	0	0	0
&lt;br&gt;7056	0 &amp;nbsp; 144.935	0	0	0
&lt;br&gt;7058	0 &amp;nbsp; 144.935	0	0	0
&lt;br&gt;7059	0 &amp;nbsp; 144.935	0	0	0
&lt;br&gt;7061	0 &amp;nbsp; 144.935	0	0	0
&lt;br&gt;7062	0 &amp;nbsp; 144.935	0	0	0
&lt;br&gt;7078	0	0	0	0	0
&lt;br&gt;8000	0	0	0	0	0
&lt;br&gt;8007	0	0	0	0	0
&lt;br&gt;&lt;br&gt;: 446	491	531	131	842 :=
&lt;br&gt;&lt;br&gt;5047	0	0	0	0	0
&lt;br&gt;5048	0	0	0	0	0
&lt;br&gt;5049	0	0	0	0	0
&lt;br&gt;5050	0	0	0	0	0
&lt;br&gt;5051	0	0	0	0	0
&lt;br&gt;5052	0 &amp;nbsp; &amp;nbsp;527.884	0	0	0
&lt;br&gt;5053	0 &amp;nbsp; &amp;nbsp;527.884	0	0	0
&lt;br&gt;5200	0	0	0	0	0
&lt;br&gt;5203 &amp;nbsp; &amp;nbsp;28.6	0	0	0	0
&lt;br&gt;5206 &amp;nbsp; &amp;nbsp;28.6	0	0	0	0
&lt;br&gt;5221	0	0	0	0	0
&lt;br&gt;5223 &amp;nbsp; &amp;nbsp;28.6	0	0	0	0
&lt;br&gt;5224 &amp;nbsp; &amp;nbsp;28.6	0	0	0	0
&lt;br&gt;5225 &amp;nbsp; &amp;nbsp;28.6	0	0	0	0
&lt;br&gt;5226 &amp;nbsp; &amp;nbsp; 28.6 &amp;nbsp; 527.884	0	0	0
&lt;br&gt;5227 &amp;nbsp; &amp;nbsp;28.6	0	0	0	0
&lt;br&gt;5228	0	0	0	0	0
&lt;br&gt;6010	0	0	0	0	0
&lt;br&gt;6011	0	0	0	0	0
&lt;br&gt;7056	0	0	0	0	0
&lt;br&gt;7058	0	0	0	0	0
&lt;br&gt;7059	0	0	0	0	0
&lt;br&gt;7061	0	0	0	0	0
&lt;br&gt;7062	0	0	0	0	0
&lt;br&gt;7078	0	0	0	0	0
&lt;br&gt;8000	0	0	0	0	0
&lt;br&gt;8007	0	0	0	0	0
&lt;br&gt;&lt;br&gt;: 140	208	130	120	142 :=
&lt;br&gt;&lt;br&gt;5047	0	0	0	0	0
&lt;br&gt;5048	0	0	0	0	0
&lt;br&gt;5049	0	0	0	0	0
&lt;br&gt;5050	0	0	0	0	0
&lt;br&gt;5051	0	0	0	0	0
&lt;br&gt;5052	0	0	0	0	0
&lt;br&gt;5053	0	0	0	0	0
&lt;br&gt;5200	0	0	0	0	0
&lt;br&gt;5203	0	0	0	0	0
&lt;br&gt;5206	0	0	0	0	0
&lt;br&gt;5221	0	0	0	0	0
&lt;br&gt;5223	0	0	0	0	0
&lt;br&gt;5224	0	0	0	0	0
&lt;br&gt;5225	0	0	0	0	0
&lt;br&gt;5226	0	0	0	0	0
&lt;br&gt;5227	0	0	0	0	0
&lt;br&gt;5228	0	0	0	0	0
&lt;br&gt;6010	0	0	0	0	0
&lt;br&gt;6011	0	0	0	0	0
&lt;br&gt;7056	0	0	0	0	0
&lt;br&gt;7058	0	0	0	0	0
&lt;br&gt;7059	0	0	0	0	0
&lt;br&gt;7061	0	0	0	0	0
&lt;br&gt;7062	0	0	0	0	0
&lt;br&gt;7078	0	0	0	0	0
&lt;br&gt;8000	0	0	0	0	0
&lt;br&gt;8007	0	0	0	0	0 ;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;param cap_horas:=
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5047	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5048	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5049	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5050	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5051	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5052	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5053	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5200	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5203	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5206	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5221	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5223	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5224	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5225	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5226	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5227	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5228	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6010	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6011	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7056	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7058	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7059	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7061	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7062	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7078	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8000	100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8007	100;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26250119&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2968--Error-Executing-AMPL-tp26250119p26250119.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26250122</id>
	<title>[AMPL 2970] how to turn Cplex presolve off in AMPL</title>
	<published>2009-11-07T15:56:34Z</published>
	<updated>2009-11-07T15:56:34Z</updated>
	<author>
		<name>SORA-7</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I am using AMPL v10 together with CPLEX 11.
&lt;br&gt;I meet the following problem:
&lt;br&gt;I want to use CPLEX barrier algorithm without presolve in AMPL. I used
&lt;br&gt;the commands as below
&lt;br&gt;&lt;br&gt;option solver cplexamp;
&lt;br&gt;option presolve 0; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;--- turn off AMPL presolve.
&lt;br&gt;option show_stats 1;
&lt;br&gt;option cplex_options ' baropt presolve=0 crossover=0 prestats=1
&lt;br&gt;lpdisplay=1 ';
&lt;br&gt;solve;
&lt;br&gt;&lt;br&gt;Then, &amp;nbsp;I get the following output:
&lt;br&gt;&lt;br&gt;5255 variables, all linear
&lt;br&gt;2626 constraints, all linear; 15689 nonzeros
&lt;br&gt;1 linear objective; 5 nonzeros.
&lt;br&gt;&lt;br&gt;ILOG CPLEX 10.000, licensed to &amp;quot;university-edinburgh&amp;quot;, options: e m b
&lt;br&gt;q use=5
&lt;br&gt;CPLEX 10.0.0: baropt
&lt;br&gt;presolve=0
&lt;br&gt;crossover=0
&lt;br&gt;prestats=1
&lt;br&gt;lpdisplay=1
&lt;br&gt;Reduced presolve eliminated 72 rows and 2697 columns.
&lt;br&gt;Reduced LP has 2554 rows, 2558 columns, and 7751 nonzeros.
&lt;br&gt;Presolve time = &amp;nbsp; &amp;nbsp;0.01 sec.
&lt;br&gt;CPLEX 10.0.0: optimal solution; objective 5.494632119
&lt;br&gt;7 barrier iterations; no basis.
&lt;br&gt;&lt;br&gt;Hence, it seems presolve still exists in CPLEX. I wonder how to turn
&lt;br&gt;off it
&lt;br&gt;&lt;br&gt;Thank you very much in advance.
&lt;br&gt;&lt;br&gt;best regards,
&lt;br&gt;&lt;br&gt;Naiyuan
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26250122&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2970--how-to-turn-Cplex-presolve-off-in-AMPL-tp26250122p26250122.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26250121</id>
	<title>[AMPL 2969] Re: Different results on Windows vs. Linux</title>
	<published>2009-11-06T19:33:22Z</published>
	<updated>2009-11-06T19:33:22Z</updated>
	<author>
		<name>Dinakar gade</name>
	</author>
	<content type="html">Hi Paul,
&lt;br&gt;Thanks for your reply.
&lt;br&gt;Yes, I am using the same data input/output format for both windows and
&lt;br&gt;Linux - I am using a model file with 3 different models, a run file,
&lt;br&gt;and a data file. I am making parameter assignments from one model's
&lt;br&gt;solve as an input to another during the iterations using AMPL's 'let'
&lt;br&gt;command. All problems are LP's.
&lt;br&gt;&lt;br&gt;Would it be of any help if I used Callable libraries/Concert
&lt;br&gt;technology instead of making AMPL calls?
&lt;br&gt;&lt;br&gt;Thanks again
&lt;br&gt;Din
&lt;br&gt;&lt;br&gt;On Nov 6, 6:21 pm, Paul &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26250121&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ru...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Din wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt; I am running ILOG AMPL 10.000 on both my local machine (Windows) and a
&lt;br&gt;&amp;gt; &amp;gt; Linux Server. I am using a commands file to test a cutting plane
&lt;br&gt;&amp;gt; &amp;gt; scheme. When I run the same command file with the same model and data
&lt;br&gt;&amp;gt; &amp;gt; I am getting different results on Windows and Linux: In windows  my
&lt;br&gt;&amp;gt; &amp;gt; run finishes in 19 iterations, while in Linux, the run finishes in 35.
&lt;br&gt;&amp;gt; &amp;gt; I am also testing the feasibility of an intermediate problem during
&lt;br&gt;&amp;gt; &amp;gt; the iterative process. AMPL-CPLEX on Windows reports feasibility on
&lt;br&gt;&amp;gt; &amp;gt; all instances, where as on Linux there are some cases when the problem
&lt;br&gt;&amp;gt; &amp;gt; is reported infeasible.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I am using the following options in my commands file.
&lt;br&gt;&amp;gt; &amp;gt; option omit_zero_rows 1;
&lt;br&gt;&amp;gt; &amp;gt; option cplex_options  'feasibility 1.0e-9 presolve 0';
&lt;br&gt;&amp;gt; &amp;gt; option display_eps 0.000001;
&lt;br&gt;&amp;gt; &amp;gt; #option presolve_eps 1e-8;
&lt;br&gt;&amp;gt; &amp;gt; option presolve 0;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Could anyone shed some light?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Different compilers on different hardware platforms introduce some
&lt;br&gt;&amp;gt; &amp;quot;minor&amp;quot; differences in floating-point arithmetic, enough to alter the
&lt;br&gt;&amp;gt; branching sequence in a MIP and the pivot sequence in an LP in some
&lt;br&gt;&amp;gt; cases.  I think that Emilie Danna at CPLEX has documented this and
&lt;br&gt;&amp;gt; presented about it at conferences.  That might account for some
&lt;br&gt;&amp;gt; differences in iteration count.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; As far as feasibility v. infeasibility, if an LP/MIP has an ill-
&lt;br&gt;&amp;gt; conditioned constraint matrix, funny things can happen when it comes
&lt;br&gt;&amp;gt; to feasibility.  Combine that with the platform issue above and it
&lt;br&gt;&amp;gt; might explain why you're seeing different conclusions about
&lt;br&gt;&amp;gt; feasibility on the two platforms (although I can't be sure that's it).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I take it the problem data is entered the same way on both platforms
&lt;br&gt;&amp;gt; (calculated from the same script, read from the same file, ...)?
&lt;br&gt;&amp;gt; Solving a problem using data generated within the AMPL model/script
&lt;br&gt;&amp;gt; (or by a calling program) and solving the same problem after writing
&lt;br&gt;&amp;gt; out the data/model (say to an MPS file) and reading it into a solver
&lt;br&gt;&amp;gt; can produce entirely different results if the matrix is ill-
&lt;br&gt;&amp;gt; conditioned, because write to file/read back causes a loss of
&lt;br&gt;&amp;gt; precision (at least if the file being written is text rather than
&lt;br&gt;&amp;gt; binary).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /Paul
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26250121&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2964--Different-results-on-Windows-vs.-Linux-tp26238743p26250121.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26241068</id>
	<title>RE: [AMPL 2967] Impossible deduced bounds ...</title>
	<published>2009-11-06T16:53:15Z</published>
	<updated>2009-11-06T16:53:15Z</updated>
	<author>
		<name>Robert Fourer-2</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:st1=&quot;urn:schemas-microsoft-com:office:smarttags&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 11 (filtered medium)&quot;&gt;
&lt;!--[if !mso]&gt;
&lt;style&gt;
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
&lt;/style&gt;
&lt;![endif]--&gt;&lt;o:SmartTagType namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot; name=&quot;PersonName&quot; /&gt;
&lt;!--[if !mso]&gt;
&lt;style&gt;
st1\:*{behavior:url(#default#ieooui) }
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal style='margin-right:173.25pt'&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black'&gt;Notice that the TxRng2 constraints are like&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-right:173.25pt'&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-right:173.25pt'&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black'&gt;&amp;nbsp;&amp;nbsp; subject to TxRng2[2,6,1,3,1,2]:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-right:173.25pt'&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 57*S[2,6,1,3] &amp;gt;= 16.165;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-right:173.25pt'&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-right:173.25pt'&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black'&gt;Since the S-variables are binary, these force variables
S[2,6,1,3], S[3,6,1,3], ..., S[7,6,1,3] to be 1. &amp;nbsp;Setting them all to 1 in the
constraint&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-right:173.25pt'&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-right:173.25pt'&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black'&gt;&amp;nbsp;&amp;nbsp; subject to VisFlsA[6]:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-right:173.25pt'&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;0.002*S[1,6,1,3] + 0.001*S[2,6,1,3] + 0.001*S[3,6,1,3] + &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-right:173.25pt'&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;0.003*S[4,6,1,3] + 0.002*S[5,6,1,3] + 0.002*S[6,6,1,3] + &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-right:173.25pt'&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;0.002*S[7,6,1,3] &amp;lt;= 0.005;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-right:173.25pt'&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-right:173.25pt'&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black'&gt;and simplifying gives S[1,6,1,3] &amp;lt;= -3, hence the message about
the impossible deduced bound &amp;quot;upper = -3&amp;quot;. &amp;nbsp;There is not feasible
solution possible since also as a binary variable S[1,6,1,3] &amp;gt;= 0.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-right:173.25pt'&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-right:173.25pt'&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black'&gt;Bob Fourer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-right:173.25pt'&gt;&lt;st1:PersonName w:st=&quot;on&quot;&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;
 font-family:&quot;Courier New&quot;;color:black'&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26241068&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4er@...&lt;/a&gt;&lt;/span&gt;&lt;/font&gt;&lt;/st1:PersonName&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:
&quot;Courier New&quot;;color:black'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-right:173.25pt'&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-right:173.25pt'&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'&gt;

&lt;div&gt;

&lt;div class=MsoNormal align=center style='text-align:center'&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;

&lt;hr size=2 width=&quot;100%&quot; align=center tabindex=-1&gt;

&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'&gt;From:&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;font-family:Tahoma'&gt; Daniel Fokum
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26241068&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fokumdt@...&lt;/a&gt;] &lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Sent:&lt;/span&gt;&lt;/b&gt; Wednesday, November 04, 2009
5:15 PM&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;To:&lt;/span&gt;&lt;/b&gt; &lt;st1:PersonName w:st=&quot;on&quot;&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26241068&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;&lt;/st1:PersonName&gt;&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Subject:&lt;/span&gt;&lt;/b&gt; [AMPL 2962] Impossible
deduced bounds ...&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;Hello,&lt;br&gt;
&lt;br&gt;
When I try to solve the attached model I get a message that states:&lt;br&gt;
&lt;br&gt;
presolve, variable S[1,6,1,3]:&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; impossible deduced bounds: lower = 0, upper = -3&lt;br&gt;
&lt;br&gt;
However, S is a binary variable. I have executed a sequence of expand commands
as shown below to determine why the bounds are impossible, unfortunately I am
not able to resolve this error.&lt;br&gt;
&lt;br&gt;
ampl: expand S[1,6,1,3];&lt;br&gt;
Coefficients of S[1,6,1,3]:&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;
VisDtct[6]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
0.9&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;
VisFlsA[6]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
0.002&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;
VisTimely[6]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
0.96&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; TxRng2[1,6,1,3,1,2]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 52&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;
costMetric&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12586.8&lt;br&gt;
&lt;br&gt;
ampl: expand VisDtct[6];&lt;br&gt;
subject to VisDtct[6]:&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.9*S[1,6,1,3] + 0.93*S[2,6,1,3] + 0.97*S[3,6,1,3] +
0.905*S[4,6,1,3]&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;+ 0.915*S[5,6,1,3] + 0.925*S[6,6,1,3] +
0.895*S[7,6,1,3] &amp;gt;= 0.89;&lt;br&gt;
&lt;br&gt;
ampl: expand VisFlsA[6];&lt;br&gt;
subject to VisFlsA[6]:&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.002*S[1,6,1,3] + 0.001*S[2,6,1,3] + 0.001*S[3,6,1,3] + &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.003*S[4,6,1,3] + 0.002*S[5,6,1,3] + 0.002*S[6,6,1,3] + &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.002*S[7,6,1,3] &amp;lt;= 0.005;&lt;br&gt;
&lt;br&gt;
ampl: expand VisTimely[6];&lt;br&gt;
subject to VisTimely[6]:&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.96*S[1,6,1,3] + 0.98*S[2,6,1,3] + 0.97*S[3,6,1,3] +
0.955*S[4,6,1,3]&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;+ 0.965*S[5,6,1,3] + 0.95*S[6,6,1,3] + 0.96*S[7,6,1,3]
&amp;gt;= 0.91;&lt;br&gt;
&lt;br&gt;
ampl: expand TxRng2[1,6,1,3,1,2];&lt;br&gt;
subject to TxRng2[1,6,1,3,1,2]:&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 52*S[1,6,1,3] &amp;gt;= 16.165;&lt;br&gt;
&lt;br&gt;
Thanks in advance for any pointers.&lt;br&gt;
&lt;br&gt;
Daniel&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;AMPL Modeling Language&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26241068&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.&lt;br /&gt;



For more options, visit this group at http://groups.google.com/group/ampl?hl=en.&lt;br /&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2962--Impossible-deduced-bounds-...-tp26233142p26241068.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26240448</id>
	<title>[AMPL 2966] Re: Impossible deduced bounds ...</title>
	<published>2009-11-06T15:49:56Z</published>
	<updated>2009-11-06T15:49:56Z</updated>
	<author>
		<name>Paul A. Rubin</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;On Nov 4, 6:14 pm, Daniel Fokum &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26240448&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;foku...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When I try to solve the attached model I get a message that states:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; presolve, variable S[1,6,1,3]:
&lt;br&gt;&amp;gt;     impossible deduced bounds: lower = 0, upper = -3
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; However, S is a binary variable. I have executed a sequence of expand
&lt;br&gt;&amp;gt; commands as shown below to determine why the bounds are impossible,
&lt;br&gt;&amp;gt; unfortunately I am not able to resolve this error.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ampl: expand S[1,6,1,3];
&lt;br&gt;&amp;gt; Coefficients of S[1,6,1,3]:
&lt;br&gt;&amp;gt;     VisDtct[6]               0.9
&lt;br&gt;&amp;gt;     VisFlsA[6]               0.002
&lt;br&gt;&amp;gt;     VisTimely[6]             0.96
&lt;br&gt;&amp;gt;     TxRng2[1,6,1,3,1,2]     52
&lt;br&gt;&amp;gt;     costMetric           12586.8
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ampl: expand VisDtct[6];
&lt;br&gt;&amp;gt; subject to VisDtct[6]:
&lt;br&gt;&amp;gt;     0.9*S[1,6,1,3] + 0.93*S[2,6,1,3] + 0.97*S[3,6,1,3] + 0.905*S[4,6,1,3]
&lt;br&gt;&amp;gt;      + 0.915*S[5,6,1,3] + 0.925*S[6,6,1,3] + 0.895*S[7,6,1,3] &amp;gt;= 0.89;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ampl: expand VisFlsA[6];
&lt;br&gt;&amp;gt; subject to VisFlsA[6]:
&lt;br&gt;&amp;gt;     0.002*S[1,6,1,3] + 0.001*S[2,6,1,3] + 0.001*S[3,6,1,3] +
&lt;br&gt;&amp;gt;     0.003*S[4,6,1,3] + 0.002*S[5,6,1,3] + 0.002*S[6,6,1,3] +
&lt;br&gt;&amp;gt;     0.002*S[7,6,1,3] &amp;lt;= 0.005;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ampl: expand VisTimely[6];
&lt;br&gt;&amp;gt; subject to VisTimely[6]:
&lt;br&gt;&amp;gt;     0.96*S[1,6,1,3] + 0.98*S[2,6,1,3] + 0.97*S[3,6,1,3] + 0.955*S[4,6,1,3]
&lt;br&gt;&amp;gt;      + 0.965*S[5,6,1,3] + 0.95*S[6,6,1,3] + 0.96*S[7,6,1,3] &amp;gt;= 0.91;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ampl: expand TxRng2[1,6,1,3,1,2];
&lt;br&gt;&amp;gt; subject to TxRng2[1,6,1,3,1,2]:
&lt;br&gt;&amp;gt;     52*S[1,6,1,3] &amp;gt;= 16.165;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks in advance for any pointers.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Daniel
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  SnsrAssignRMtd.mod
&lt;br&gt;&amp;gt; 8KViewDownload
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  SnsrAssignRMtd7.dat
&lt;br&gt;&amp;gt; 3KViewDownload
&lt;/div&gt;&lt;br&gt;The LP relaxation is feasible, but with the binary restrictions the
&lt;br&gt;model is infeasible. &amp;nbsp;If you are convinced that the model should have
&lt;br&gt;a feasible binary solution, about the only suggestion I can make is to
&lt;br&gt;concoct one (it does not need a nice objective value, it just has to
&lt;br&gt;be feasible), plug the values in for S, and see which constraints are
&lt;br&gt;violated.
&lt;br&gt;&lt;br&gt;Another possibility, assuming you have the CPLEX interactive
&lt;br&gt;optimizer, would be to write the model out from AMPL to an MPS file,
&lt;br&gt;read it into CPLEX, and see if the CPLEX conflict refiner can point
&lt;br&gt;you to a set of constraints that collectively make the problem
&lt;br&gt;infeasible when S is binary.
&lt;br&gt;&lt;br&gt;/Paul
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26240448&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2962--Impossible-deduced-bounds-...-tp26233142p26240448.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26240208</id>
	<title>[AMPL 2965] Re: Different results on Windows vs. Linux</title>
	<published>2009-11-06T15:21:27Z</published>
	<updated>2009-11-06T15:21:27Z</updated>
	<author>
		<name>Paul A. Rubin</name>
	</author>
	<content type="html">&lt;br&gt;Din wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; I am running ILOG AMPL 10.000 on both my local machine (Windows) and a
&lt;br&gt;&amp;gt; Linux Server. I am using a commands file to test a cutting plane
&lt;br&gt;&amp;gt; scheme. When I run the same command file with the same model and data
&lt;br&gt;&amp;gt; I am getting different results on Windows and Linux: In windows &amp;nbsp;my
&lt;br&gt;&amp;gt; run finishes in 19 iterations, while in Linux, the run finishes in 35.
&lt;br&gt;&amp;gt; I am also testing the feasibility of an intermediate problem during
&lt;br&gt;&amp;gt; the iterative process. AMPL-CPLEX on Windows reports feasibility on
&lt;br&gt;&amp;gt; all instances, where as on Linux there are some cases when the problem
&lt;br&gt;&amp;gt; is reported infeasible.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am using the following options in my commands file.
&lt;br&gt;&amp;gt; option omit_zero_rows 1;
&lt;br&gt;&amp;gt; option cplex_options &amp;nbsp;'feasibility 1.0e-9 presolve 0';
&lt;br&gt;&amp;gt; option display_eps 0.000001;
&lt;br&gt;&amp;gt; #option presolve_eps 1e-8;
&lt;br&gt;&amp;gt; option presolve 0;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Could anyone shed some light?
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;Different compilers on different hardware platforms introduce some
&lt;br&gt;&amp;quot;minor&amp;quot; differences in floating-point arithmetic, enough to alter the
&lt;br&gt;branching sequence in a MIP and the pivot sequence in an LP in some
&lt;br&gt;cases. &amp;nbsp;I think that Emilie Danna at CPLEX has documented this and
&lt;br&gt;presented about it at conferences. &amp;nbsp;That might account for some
&lt;br&gt;differences in iteration count.
&lt;br&gt;&lt;br&gt;As far as feasibility v. infeasibility, if an LP/MIP has an ill-
&lt;br&gt;conditioned constraint matrix, funny things can happen when it comes
&lt;br&gt;to feasibility. &amp;nbsp;Combine that with the platform issue above and it
&lt;br&gt;might explain why you're seeing different conclusions about
&lt;br&gt;feasibility on the two platforms (although I can't be sure that's it).
&lt;br&gt;&lt;br&gt;I take it the problem data is entered the same way on both platforms
&lt;br&gt;(calculated from the same script, read from the same file, ...)?
&lt;br&gt;Solving a problem using data generated within the AMPL model/script
&lt;br&gt;(or by a calling program) and solving the same problem after writing
&lt;br&gt;out the data/model (say to an MPS file) and reading it into a solver
&lt;br&gt;can produce entirely different results if the matrix is ill-
&lt;br&gt;conditioned, because write to file/read back causes a loss of
&lt;br&gt;precision (at least if the file being written is text rather than
&lt;br&gt;binary).
&lt;br&gt;&lt;br&gt;/Paul
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26240208&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2964--Different-results-on-Windows-vs.-Linux-tp26238743p26240208.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26238743</id>
	<title>[AMPL 2964] Different results on Windows vs. Linux</title>
	<published>2009-11-06T13:09:45Z</published>
	<updated>2009-11-06T13:09:45Z</updated>
	<author>
		<name>Dinakar gade</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;I am running ILOG AMPL 10.000 on both my local machine (Windows) and a
&lt;br&gt;Linux Server. I am using a commands file to test a cutting plane
&lt;br&gt;scheme. When I run the same command file with the same model and data
&lt;br&gt;I am getting different results on Windows and Linux: In windows &amp;nbsp;my
&lt;br&gt;run finishes in 19 iterations, while in Linux, the run finishes in 35.
&lt;br&gt;I am also testing the feasibility of an intermediate problem during
&lt;br&gt;the iterative process. AMPL-CPLEX on Windows reports feasibility on
&lt;br&gt;all instances, where as on Linux there are some cases when the problem
&lt;br&gt;is reported infeasible.
&lt;br&gt;&lt;br&gt;I am using the following options in my commands file.
&lt;br&gt;option omit_zero_rows 1;
&lt;br&gt;option cplex_options &amp;nbsp;'feasibility 1.0e-9 presolve 0';
&lt;br&gt;option display_eps 0.000001;
&lt;br&gt;#option presolve_eps 1e-8;
&lt;br&gt;option presolve 0;
&lt;br&gt;&lt;br&gt;Could anyone shed some light?
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;Din
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26238743&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2964--Different-results-on-Windows-vs.-Linux-tp26238743p26238743.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26237334</id>
	<title>Re: [AMPL 2963] expanding defined variables</title>
	<published>2009-11-06T09:59:19Z</published>
	<updated>2009-11-06T09:59:19Z</updated>
	<author>
		<name>Ali Baharev</name>
	</author>
	<content type="html">Thank you for the response.
&lt;br&gt;&lt;br&gt;Unfortunately it is still not what I have been looking for. They still
&lt;br&gt;do not appear in the .fix file.
&lt;br&gt;&lt;br&gt;Are you suggesting that I should also expand the &amp;quot;defined variable&amp;quot;
&lt;br&gt;explicit constraints and then copy the corresponding part of the
&lt;br&gt;constraint to the .fix file with an appropriate script?
&lt;br&gt;&lt;br&gt;Is there another way to avoid writing a script for that?
&lt;br&gt;&lt;br&gt;Any help is appreciated.
&lt;br&gt;&lt;br&gt;Ali
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26237334&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2957--expanding-defined-variables-tp26222287p26237334.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26226692</id>
	<title>RE: [AMPL 2961] expanding defined variables</title>
	<published>2009-11-05T20:15:34Z</published>
	<updated>2009-11-05T20:15:34Z</updated>
	<author>
		<name>Robert Fourer-2</name>
	</author>
	<content type="html">&lt;br&gt;This is true, the definitions of defined variables are not expanded. &amp;nbsp;To
&lt;br&gt;export the problem using &amp;quot;expand&amp;quot; or &amp;quot;solexpand&amp;quot; you would have to replace
&lt;br&gt;these definitions by explicit constraints of the form &amp;lt;var&amp;gt; = &amp;lt;defining
&lt;br&gt;expression&amp;gt;.
&lt;br&gt;&lt;br&gt;Bob Fourer
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26226692&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4er@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: Ali Baharev [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26226692&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ali.baharev@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Thursday, November 05, 2009 10:53 AM
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26226692&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: [AMPL 2957] expanding defined variables
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I would like to transform my benchmarks into a form that can be used
&lt;br&gt;&amp;gt; by other researchers not using AMPL. (In my highly biased opinion they
&lt;br&gt;&amp;gt; should be using AMPL :) )
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I would like to expand the model sent to the solver after presolve and
&lt;br&gt;&amp;gt; i would like to achieve that in an automated manner.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am almost happy with &amp;quot;solexpand _scon;&amp;quot; and &amp;quot;option auxfiles cfr;&amp;quot;
&lt;br&gt;&amp;gt; with one notable exception. The expressions are not shown for those
&lt;br&gt;&amp;gt; variables in the .fix file that are not fixed to a constant value. How
&lt;br&gt;&amp;gt; can i &amp;quot;expand&amp;quot; those defined variables in an automated manner?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Any help is appreciated.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Ali
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26226692&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2957--expanding-defined-variables-tp26222287p26226692.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26223979</id>
	<title>[AMPL 2959] Re: Constraint formulation</title>
	<published>2009-11-05T15:06:18Z</published>
	<updated>2009-11-05T15:06:18Z</updated>
	<author>
		<name>Paul A. Rubin</name>
	</author>
	<content type="html">I agree with Bob that your question could use some refinement, but I
&lt;br&gt;think I know what you're getting at, so I'll take a shot.
&lt;br&gt;&lt;br&gt;I don't think you can do exactly what you want, but you may come
&lt;br&gt;close. &amp;nbsp;Let M be a sufficiently large positive constant and epsilon a
&lt;br&gt;sufficiently small (but strictly positive) constant, and let Y (a
&lt;br&gt;variable) be the output of your first IF. &amp;nbsp;Introduce a new binary
&lt;br&gt;variable Z together with the following constraints:
&lt;br&gt;&lt;br&gt;(1) epsilon*Z &amp;lt;= A &amp;lt;= M*Z
&lt;br&gt;(2) B - M*Z &amp;lt;= Y &amp;lt;= B + M*Z
&lt;br&gt;(3) -M*(1-Z) &amp;lt;= Y &amp;lt;= M*(1-Z).
&lt;br&gt;&lt;br&gt;A &amp;lt;= 0 forces Z = 0 in the left part of (1), which forces Y = B in (2)
&lt;br&gt;and makes (3) vacuous. &amp;nbsp;A &amp;gt;= epsilon forces Z = 1 in the right side of
&lt;br&gt;(1), which forces Y = 0 in (3) and makes (2) vacuous. &amp;nbsp;Besides
&lt;br&gt;introducing a binary variable, there is one catch: 0 &amp;lt; A &amp;lt; epsilon has
&lt;br&gt;been excised from the feasible region. &amp;nbsp;So this won't work if
&lt;br&gt;arbitrarily small but positive values of A are legitimate contenders
&lt;br&gt;for an optimal solution.
&lt;br&gt;&lt;br&gt;Incidentally, I used the same M in every constraint because I'm too
&lt;br&gt;lazy to type subscripts, but you can (and probably should) use a
&lt;br&gt;distinct M (the tightest value you can find that is guaranteed not to
&lt;br&gt;cut off an optimal solution) in each constraint.
&lt;br&gt;&lt;br&gt;/Paul
&lt;br&gt;&lt;br&gt;On Nov 1, 12:09 pm, AlisonT &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26223979&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;alisontho...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Can someone please advise me how I should formulate a constraint that
&lt;br&gt;&amp;gt; represents the following:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; IF( &amp;quot;decision variable A&amp;quot; &amp;gt; 0, then 0, else &amp;quot;decision variable B&amp;quot;)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I also need to formulate a similar constraint, where &amp;quot;decision
&lt;br&gt;&amp;gt; variable B&amp;quot; is 1 and is therefore a binary decision variable i.e.
&lt;br&gt;&amp;gt; IF( &amp;quot;decision variable C&amp;quot; &amp;gt; 0, then 0, else 1)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank you so much.
&lt;br&gt;&amp;gt; Alison
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26223979&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2939--Constraint-formulation-tp26152896p26223979.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26222287</id>
	<title>[AMPL 2957] expanding defined variables</title>
	<published>2009-11-05T08:53:22Z</published>
	<updated>2009-11-05T08:53:22Z</updated>
	<author>
		<name>Ali Baharev</name>
	</author>
	<content type="html">I would like to transform my benchmarks into a form that can be used
&lt;br&gt;by other researchers not using AMPL. (In my highly biased opinion they
&lt;br&gt;should be using AMPL :) )
&lt;br&gt;&lt;br&gt;I would like to expand the model sent to the solver after presolve and
&lt;br&gt;i would like to achieve that in an automated manner.
&lt;br&gt;&lt;br&gt;I am almost happy with &amp;quot;solexpand _scon;&amp;quot; and &amp;quot;option auxfiles cfr;&amp;quot;
&lt;br&gt;with one notable exception. The expressions are not shown for those
&lt;br&gt;variables in the .fix file that are not fixed to a constant value. How
&lt;br&gt;can i &amp;quot;expand&amp;quot; those defined variables in an automated manner?
&lt;br&gt;&lt;br&gt;Any help is appreciated.
&lt;br&gt;&lt;br&gt;Ali
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26222287&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2957--expanding-defined-variables-tp26222287p26222287.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26222959</id>
	<title>[AMPL 2958] bug in the Linux student version</title>
	<published>2009-11-05T08:52:43Z</published>
	<updated>2009-11-05T08:52:43Z</updated>
	<author>
		<name>Ali Baharev</name>
	</author>
	<content type="html">I have obtained the following weird output below. The true number of
&lt;br&gt;constraints after presolve is 280. The benchmark giving this result is
&lt;br&gt;here:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://reliablecomputing.eu/homoazeo40.mod&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://reliablecomputing.eu/homoazeo40.mod&lt;/a&gt;&lt;br&gt;&lt;br&gt;Output:
&lt;br&gt;&lt;br&gt;AMPL Student Version 20090926 (Linux 2.6.25.20-0.5-pae)
&lt;br&gt;&lt;br&gt;Presolve eliminates 120 constraints and 120 variables.
&lt;br&gt;Substitution eliminates 760 variables.
&lt;br&gt;Adjusted problem:
&lt;br&gt;280 variables, all nonlinear
&lt;br&gt;280 constraints; 1194 nonzeros
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;240 nonlinear constraints
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;40 linear constraints
&lt;br&gt;0 objectives.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Sorry, the student edition of AMPL is limited to 300 variables
&lt;br&gt;and 300 constraints and objectives (after presolve) for nonlinear
&lt;br&gt;problems. &amp;nbsp;You have 280 variables, 1040 constraints, and 0 objectives.
&lt;br&gt;&lt;br&gt;Ali
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26222959&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2958--bug-in-the-Linux-student-version-tp26222959p26222959.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26207241</id>
	<title>RE: [AMPL 2956] Constraint formulation</title>
	<published>2009-11-04T16:30:24Z</published>
	<updated>2009-11-04T16:30:24Z</updated>
	<author>
		<name>Robert Fourer-2</name>
	</author>
	<content type="html">Alison,
&lt;br&gt;&lt;br&gt;Your &amp;quot;IF ...&amp;quot; looks like an expression that you would like to have in your
&lt;br&gt;constraint, but it is not the whole constraint -- there is no &amp;quot;=&amp;quot; or &amp;quot;&amp;gt;=&amp;quot; or
&lt;br&gt;&amp;quot;&amp;lt;=&amp;quot; in it. &amp;nbsp;You would need to state the whole constraint in order for
&lt;br&gt;someone to say how it could be reformulated for a solver. &amp;nbsp;Also you would
&lt;br&gt;need to specify for every decision variable whether it is integer or
&lt;br&gt;continuous, and what its lower and upper bounds are.
&lt;br&gt;&lt;br&gt;Bob Fourer
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26207241&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4er@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: AlisonT [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26207241&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;alisonthomas@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Sunday, November 01, 2009 11:09 AM
&lt;br&gt;&amp;gt; To: AMPL Modeling Language
&lt;br&gt;&amp;gt; Subject: [AMPL 2939] Constraint formulation
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Can someone please advise me how I should formulate a constraint that
&lt;br&gt;&amp;gt; represents the following:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; IF( &amp;quot;decision variable A&amp;quot; &amp;gt; 0, then 0, else &amp;quot;decision variable B&amp;quot;)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I also need to formulate a similar constraint, where &amp;quot;decision
&lt;br&gt;&amp;gt; variable B&amp;quot; is 1 and is therefore a binary decision variable i.e.
&lt;br&gt;&amp;gt; IF( &amp;quot;decision variable C&amp;quot; &amp;gt; 0, then 0, else 1)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thank you so much.
&lt;br&gt;&amp;gt; Alison
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26207241&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2939--Constraint-formulation-tp26152896p26207241.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26206634</id>
	<title>RE: [AMPL 2955] Re: checking intersection of two sets</title>
	<published>2009-11-04T15:32:16Z</published>
	<updated>2009-11-04T15:32:16Z</updated>
	<author>
		<name>Robert Fourer-2</name>
	</author>
	<content type="html">Raffaele,
&lt;br&gt;&lt;br&gt;You can write something like
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;set A;
&lt;br&gt;&amp;nbsp; &amp;nbsp;set B;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; check: card(A inter B) = 0;
&lt;br&gt;&lt;br&gt;In fact you can write any statement of the form
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;check: &amp;lt;expr1&amp;gt; = &amp;lt;expr2&amp;gt;;
&lt;br&gt;&lt;br&gt;where &amp;lt;expr1&amp;gt; and &amp;lt;expr2&amp;gt; are expressions that evaluate to numbers. &amp;nbsp;This
&lt;br&gt;can be further generalized to allow an indexing expression between &amp;quot;check&amp;quot;
&lt;br&gt;and &amp;quot;:&amp;quot; and to use any other numerical comparison operator, such as &amp;quot;&amp;gt;=&amp;quot; or
&lt;br&gt;&amp;quot;&amp;lt;=&amp;quot;.
&lt;br&gt;&lt;br&gt;Bob Fourer
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26206634&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4er@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26206634&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ruf@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26206634&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rbo@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Monday, November 02, 2009 2:42 AM
&lt;br&gt;&amp;gt; To: AMPL Modeling Language
&lt;br&gt;&amp;gt; Subject: [AMPL 2945] Re: checking intersection of two sets
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thank you Paul and Bob for your replies.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In fact, I don't need the intersection to do something, but I must
&lt;br&gt;&amp;gt; ensure that the intersection is empty to keep my model coherent. So, I
&lt;br&gt;&amp;gt; think the &amp;quot;check&amp;quot; command is more useful in this case, since it throws
&lt;br&gt;&amp;gt; an error if the condition is not satisfied.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; My problem is that I didn't find any example on the usage of the
&lt;br&gt;&amp;gt; &amp;quot;check&amp;quot; command applied to sets. Is that possible? Or can I throw an
&lt;br&gt;&amp;gt; error using the &amp;quot;if&amp;quot; statement as you proposed?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thank you
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Raffaele
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Nov 2, 1:45 am, &amp;quot;Robert Fourer&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26206634&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; In fact you can write the expression for the intersection of A and B
&lt;br&gt;&amp;gt; &amp;gt; directly inside the cardinality function:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;    if card(A inter B) = 0 then {
&lt;br&gt;&amp;gt; &amp;gt;    #...
&lt;br&gt;&amp;gt; &amp;gt;    }
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; That way you don't have to define another set just in order to assign it
&lt;br&gt;&amp;gt; the
&lt;br&gt;&amp;gt; &amp;gt; value of A inter B.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Bob Fourer
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26206634&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4...@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26206634&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26206634&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; On Behalf Of Paul
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Sent: Friday, October 30, 2009 10:21 AM
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; To: AMPL Modeling Language
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Subject: [AMPL 2937] Re: checking intersection of two sets
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26206634&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r...@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Hello,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; how can I check that the intersection of two sets is empty?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Thank you
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; set A;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; set B;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; # ...
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; set C := A inter B;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; if card(C) == 0 then {
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; #...
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; }
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups
&lt;br&gt;&amp;gt; &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26206634&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;&amp;gt; For more options, visit this group at
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26206634&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2936--checking-intersection-of-two-sets-tp26130669p26206634.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26233142</id>
	<title>[AMPL 2962] Impossible deduced bounds ...</title>
	<published>2009-11-04T15:14:32Z</published>
	<updated>2009-11-04T15:14:32Z</updated>
	<author>
		<name>D.T. Fokum</name>
	</author>
	<content type="html">Hello,&lt;br&gt;&lt;br&gt;When I try to solve the attached model I get a message that states:&lt;br&gt;&lt;br&gt;presolve, variable S[1,6,1,3]:&lt;br&gt;    impossible deduced bounds: lower = 0, upper = -3&lt;br&gt;&lt;br&gt;However, S is a binary variable. I have executed a sequence of expand commands as shown below to determine why the bounds are impossible, unfortunately I am not able to resolve this error.&lt;br&gt;
&lt;br&gt;ampl: expand S[1,6,1,3];&lt;br&gt;Coefficients of S[1,6,1,3]:&lt;br&gt;    VisDtct[6]               0.9&lt;br&gt;    VisFlsA[6]               0.002&lt;br&gt;    VisTimely[6]             0.96&lt;br&gt;    TxRng2[1,6,1,3,1,2]     52&lt;br&gt;    costMetric           12586.8&lt;br&gt;
&lt;br&gt;ampl: expand VisDtct[6];&lt;br&gt;subject to VisDtct[6]:&lt;br&gt;    0.9*S[1,6,1,3] + 0.93*S[2,6,1,3] + 0.97*S[3,6,1,3] + 0.905*S[4,6,1,3]&lt;br&gt;     + 0.915*S[5,6,1,3] + 0.925*S[6,6,1,3] + 0.895*S[7,6,1,3] &amp;gt;= 0.89;&lt;br&gt;&lt;br&gt;ampl: expand VisFlsA[6];&lt;br&gt;
subject to VisFlsA[6]:&lt;br&gt;    0.002*S[1,6,1,3] + 0.001*S[2,6,1,3] + 0.001*S[3,6,1,3] + &lt;br&gt;    0.003*S[4,6,1,3] + 0.002*S[5,6,1,3] + 0.002*S[6,6,1,3] + &lt;br&gt;    0.002*S[7,6,1,3] &amp;lt;= 0.005;&lt;br&gt;&lt;br&gt;ampl: expand VisTimely[6];&lt;br&gt;
subject to VisTimely[6]:&lt;br&gt;    0.96*S[1,6,1,3] + 0.98*S[2,6,1,3] + 0.97*S[3,6,1,3] + 0.955*S[4,6,1,3]&lt;br&gt;     + 0.965*S[5,6,1,3] + 0.95*S[6,6,1,3] + 0.96*S[7,6,1,3] &amp;gt;= 0.91;&lt;br&gt;&lt;br&gt;ampl: expand TxRng2[1,6,1,3,1,2];&lt;br&gt;
subject to TxRng2[1,6,1,3,1,2]:&lt;br&gt;    52*S[1,6,1,3] &amp;gt;= 16.165;&lt;br&gt;&lt;br&gt;Thanks in advance for any pointers.&lt;br&gt;&lt;br&gt;Daniel&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;AMPL Modeling Language&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26233142&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.&lt;br /&gt;



For more options, visit this group at http://groups.google.com/group/ampl?hl=en.&lt;br /&gt;

&lt;br /&gt; &lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;SnsrAssignRMtd.mod&lt;/strong&gt; (8K) &lt;a href=&quot;http://old.nabble.com/attachment/26233142/0/SnsrAssignRMtd.mod&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;SnsrAssignRMtd7.dat&lt;/strong&gt; (3K) &lt;a href=&quot;http://old.nabble.com/attachment/26233142/1/SnsrAssignRMtd7.dat&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2962--Impossible-deduced-bounds-...-tp26233142p26233142.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26179727</id>
	<title>[AMPL 2954] Re: using branch and bound</title>
	<published>2009-11-03T05:39:01Z</published>
	<updated>2009-11-03T05:39:01Z</updated>
	<author>
		<name>Paul A. Rubin</name>
	</author>
	<content type="html">&lt;br&gt;enhany75 wrote:
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is branch and cut is the default algorithm to solve MIP models?
&lt;br&gt;&lt;br&gt;It is in all the solvers I'm familiar with.
&lt;br&gt;&lt;br&gt;&amp;gt; How to use branch and bound instead of branch and cut to solve MIP
&lt;br&gt;&amp;gt; problems?
&lt;br&gt;&lt;br&gt;The solver should allow you to set some parameters to turn off the
&lt;br&gt;various types of cuts.
&lt;br&gt;&lt;br&gt;/Paul
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26179727&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2948--using-branch-and-bound-tp26167538p26179727.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26226638</id>
	<title>[AMPL 2960] Re: Problem with AMPL 10 together with CPLEX 11</title>
	<published>2009-11-03T02:06:57Z</published>
	<updated>2009-11-03T02:06:57Z</updated>
	<author>
		<name>Andreas-52</name>
	</author>
	<content type="html">Thank you very much for your quick answers!
&lt;br&gt;&lt;br&gt;Yes, when I remove the line
&lt;br&gt;&lt;br&gt;option solver cplex;
&lt;br&gt;&lt;br&gt;then the problem disappears, however, then AMPL uses CPLEX 10 rather
&lt;br&gt;than CPLEX 11. I will do what Paul suggested and try to compile
&lt;br&gt;cplexampl with CPLEX 11.
&lt;br&gt;Best,
&lt;br&gt;Andy
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Mon, 02 Nov 2009, Andreas wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hello,
&lt;br&gt;&amp;gt; &amp;gt; I am having the following problem: I am usingAMPL10 together with
&lt;br&gt;&amp;gt; &amp;gt;CPLEX11. When I specify inAMPLto useCPLEXwith
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; option solvercplex;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; and then run the
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; solve;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; command, I get the following output:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; you dont have to use the 'option solvercplex' line. remove this line and your
&lt;br&gt;&amp;gt; problem should get solved.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; regards
&lt;br&gt;&amp;gt; Ashutosh Mahajanhttp://coral.ie.lehigh.edu/~asm4
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26226638&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2944--Problem-with-AMPL-10-together-with-CPLEX-11-tp26165043p26226638.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26169909</id>
	<title>RE: [AMPL 2950] Re: Why is ampl+snopt slow in my program?</title>
	<published>2009-11-02T12:08:50Z</published>
	<updated>2009-11-02T12:08:50Z</updated>
	<author>
		<name>Robert Fourer-2</name>
	</author>
	<content type="html">Cheng,
&lt;br&gt;&lt;br&gt;The #execute phase is devoted to executing AMPL commands -- this is why the
&lt;br&gt;line for #execute comes before the &amp;quot;solve&amp;quot; statement. &amp;nbsp;Do you have some AMPL
&lt;br&gt;statements that are run to set up the data or to perform some other tasks
&lt;br&gt;before solving? &amp;nbsp;Especially, a lot of looping can be time-consuming. &amp;nbsp;But
&lt;br&gt;possibly these statements won't have to be executed again before later
&lt;br&gt;solves.
&lt;br&gt;&lt;br&gt;At present AMPL is limited by the time it takes to exchange problem and
&lt;br&gt;solution files with the solver. &amp;nbsp;You'll have to experiment to see how many
&lt;br&gt;solves you can get per second. &amp;nbsp;Subsequent solves should be much faster than
&lt;br&gt;the first one, and you might be able to speed things up by incorporating
&lt;br&gt;some of the presolve phase's simplifications directly into your model, and
&lt;br&gt;then turning presolve off (&amp;quot;option presolve 0;&amp;quot;).
&lt;br&gt;&lt;br&gt;Bob Fourer
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26169909&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4er@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26169909&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26169909&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; On Behalf Of Cheng [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26169909&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rencheng.daniel@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Thursday, October 29, 2009 9:25 PM
&lt;br&gt;&amp;gt; To: AMPL Modeling Language
&lt;br&gt;&amp;gt; Subject: [AMPL 2935] Re: Why is ampl+snopt slow in my program?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thank you Robert.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I tested to use ipopt, but it took longer time than using snopt.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Here is the result of using &amp;quot;option times 1&amp;quot; with snopt:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Call SNOPT:
&lt;br&gt;&amp;gt; #				incremental	total
&lt;br&gt;&amp;gt; #phase		seconds		memory		memory
&lt;br&gt;&amp;gt; #execute	0.483603	99645780	99645784
&lt;br&gt;&amp;gt; ### .\ampl_files\optimization_solve.run:34(1649) &amp;nbsp; solve ...
&lt;br&gt;&amp;gt; #compile	0.0156001	0		99645784
&lt;br&gt;&amp;gt; #genmod		0		0		99645784
&lt;br&gt;&amp;gt; #merge		0		0		99645784
&lt;br&gt;&amp;gt; #collect	0.0468003	0		99645784
&lt;br&gt;&amp;gt; #presolve	0.124801	41984		99687768
&lt;br&gt;&amp;gt; #solveout	0.109201	0		99687768
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Presolve eliminates 16623 constraints and 17823 variables.
&lt;br&gt;&amp;gt; Substitution eliminates 83359 variables.
&lt;br&gt;&amp;gt; Adjusted problem:
&lt;br&gt;&amp;gt; 144 variables, all nonlinear
&lt;br&gt;&amp;gt; 0 constraints
&lt;br&gt;&amp;gt; 1 nonlinear objective; 144 nonzeros.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; #presolve	0		0		99687768
&lt;br&gt;&amp;gt; #output		0.0156001	0		99687768
&lt;br&gt;&amp;gt; SNOPT 6.2-1: Superbasics_limit=249
&lt;br&gt;&amp;gt; Crash_option=3
&lt;br&gt;&amp;gt; Crash_tolerance=0.1
&lt;br&gt;&amp;gt; #Total		0.795605
&lt;br&gt;&amp;gt; SNOPT 6.2-1: Optimal solution found.
&lt;br&gt;&amp;gt; 0 iterations, objective 0
&lt;br&gt;&amp;gt; #execute	0		1483800		101171568
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The first #execute took the most time, what does #execute represent
&lt;br&gt;&amp;gt; here?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Here is the result of using &amp;quot;option gentimes 1&amp;quot; with snopt:
&lt;br&gt;&amp;gt; Call SNOPT:
&lt;br&gt;&amp;gt; ### .\ampl_files\optimization_solve.run:34(1649) &amp;nbsp; solve ...
&lt;br&gt;&amp;gt; ##genmod times:
&lt;br&gt;&amp;gt; ##seq &amp;nbsp; &amp;nbsp; &amp;nbsp;seconds &amp;nbsp; &amp;nbsp;cum. sec. &amp;nbsp; &amp;nbsp;mem. inc. &amp;nbsp;name
&lt;br&gt;&amp;gt; ## 513 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp;phase_time_const
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Presolve eliminates 16623 constraints and 17823 variables.
&lt;br&gt;&amp;gt; Substitution eliminates 83359 variables.
&lt;br&gt;&amp;gt; Adjusted problem:
&lt;br&gt;&amp;gt; 144 variables, all nonlinear
&lt;br&gt;&amp;gt; 0 constraints
&lt;br&gt;&amp;gt; 1 nonlinear objective; 144 nonzeros.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; SNOPT 6.2-1: Superbasics_limit=249
&lt;br&gt;&amp;gt; Crash_option=3
&lt;br&gt;&amp;gt; Crash_tolerance=0.1
&lt;br&gt;&amp;gt; SNOPT 6.2-1: Optimal solution found.
&lt;br&gt;&amp;gt; 0 iterations, objective 0
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm doing work related with computer games, I'm wondering if AMPL is
&lt;br&gt;&amp;gt; applicable for highly interactive program(say run 30 times per
&lt;br&gt;&amp;gt; second)?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Oct 30, 12:49 am, &amp;quot;Robert Fourer&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26169909&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; _ampl_elapsed_time is the amount of time that you actually spent waiting
&lt;br&gt;&amp;gt; for
&lt;br&gt;&amp;gt; &amp;gt; your computer to run AMPL.  (It is sometimes called the &amp;quot;wall clock&amp;quot;
&lt;br&gt;&amp;gt; time
&lt;br&gt;&amp;gt; &amp;gt; because it is the time you would measure using a clock unconnected to
&lt;br&gt;&amp;gt; the
&lt;br&gt;&amp;gt; &amp;gt; computer.)  _ampl_time is an estimate of the amount of time that the
&lt;br&gt;&amp;gt; &amp;gt; computer's processor actually devoted to running AMPL (and not to the
&lt;br&gt;&amp;gt; other
&lt;br&gt;&amp;gt; &amp;gt; processes that were active at the same time); it is basically the sum of
&lt;br&gt;&amp;gt; &amp;gt; _ampl_system_time and _ampl_user_time, which are two components of the
&lt;br&gt;&amp;gt; &amp;gt; processor time that Unix-based systems (such as Linux) measure
&lt;br&gt;&amp;gt; separately.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I had interpreted your original post as implying that the excessive time
&lt;br&gt;&amp;gt; was
&lt;br&gt;&amp;gt; &amp;gt; spent in SNOPT.  If it's in AMPL then maybe the presolve phase is taking
&lt;br&gt;&amp;gt; a
&lt;br&gt;&amp;gt; &amp;gt; lot of time to eliminate all those variables and constraints, but you
&lt;br&gt;&amp;gt; can
&lt;br&gt;&amp;gt; &amp;gt; tell for sure where AMPL is spending its time by setting &amp;quot;option times
&lt;br&gt;&amp;gt; 1;&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; as described in question 3.6 ofwww.ampl.com/FAQ.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Bob Fourer
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26169909&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4...@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26169909&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26169909&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; On Behalf Of Cheng [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26169909&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rencheng.dan...@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Sent: Wednesday, October 28, 2009 9:10 PM
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; To: AMPL Modeling Language
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Subject: [AMPL 2929] Re: Why is ampl+snopt slow in my program?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Thanks.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I used the ampl command to test time:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; _ampl_elapsed_time = 0.887
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; _ampl_system_time = 0.0780005
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; _ampl_user_time = 0.780005
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; _ampl_time = 0.858005
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; _solve_system_time = 0
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; _total_solve_system_time  = 0
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; _total_solve_user_time   = 0
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; It seems that the solver didn't take time, but it's ampl which cost
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; much.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Can anyone explain to me what is _ampl_user_time, what's difference
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; between _ampl_elapsed_time and _ampl_time ?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Also I will try IPOPT.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Cheng
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; On Oct 29, 5:40 am, Hans Mittelmann &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26169909&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mittelm...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; You may be measuring the preprocessing time by AMPL and/or SNOPT. If
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; you want to solve problems with 10,000-100,000 variables, SNOPT-6
&lt;br&gt;&amp;gt; may
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; be slow and SNOPT-7 may be faster but better may be to use an
&lt;br&gt;&amp;gt; interior
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; point solver such as IPOPT.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; On Oct 27, 8:32 pm, Cheng &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26169909&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rencheng.dan...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; I'm using ampl with snopt6.2-1, I find it slow even if I give it
&lt;br&gt;&amp;gt; an
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; perfect initial guess(optimal solution as the initial guess).
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Just now I tested an easy problem, which has no constraints, and
&lt;br&gt;&amp;gt; all
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; the constraints could be kept as unchanged(all 0) for the optimal
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; solution, but still it took 0.99 seconds.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Here is the output:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Call snopt:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Presolve eliminates 16623 constraints and 17823 variables.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Substitution eliminates 83359 variables.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Adjusted problem:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; 144 variables, all nonlinear
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; 0 constraints,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; 1 nonlinear objective, 144 nonzeros.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; snopt 6.2-1: superbasics_limit=249
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; crash_option = 3
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; crash_tolerance = 0.1
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; snopt 6.2-1: optimal solution found
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; 0 iterations, objective 0
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Can anyone tell me why it took almost 1 second to solve? Thanks in
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; advance.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Cheng
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups
&lt;br&gt;&amp;gt; &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26169909&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;
&lt;br&gt;&amp;gt; To unsubscribe from this group, send email to
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26169909&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl+unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For more options, visit this group at
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;&lt;br&gt;&amp;gt; -~----------~----~----~----~------~----~------~--~---
&lt;/div&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26169909&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2924--Why-is-ampl%2Bsnopt-slow-in-my-program--tp26089303p26169909.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26170213</id>
	<title>RE: [AMPL 2952] I want to save my AMPL output as a matrix in a file</title>
	<published>2009-11-02T12:04:01Z</published>
	<updated>2009-11-02T12:04:01Z</updated>
	<author>
		<name>mkaspari</name>
	</author>
	<content type="html">Thank you Robert. I am working on some trickery right now, when I figure it out I will post it in case someone else ever needs to do that.
&lt;br&gt;&lt;br&gt;The AMPL book you co authored is a great resource.
&lt;br&gt;&lt;br&gt;Thank You, 
&lt;br&gt;Matt Kaspari 
&lt;br&gt;President 
&lt;br&gt;Kaspo Inc 
&lt;br&gt;cell: 720.373.3920 
&lt;br&gt;fax: 303.255.1740 
&lt;br&gt;www.kaspoinc.com
&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: &amp;quot;Robert Fourer&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26170213&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4er@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26170213&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;&amp;gt;, &amp;quot;'mkaspari'&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26170213&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mkaspari@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Date: Mon, 2 Nov 2009 13:47:59 -0600
&lt;br&gt;Subject: RE: [AMPL 2934] I want to save my AMPL output as a matrix in a file
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You can write a script that uses printf statements to create a text
&lt;br&gt;&amp;gt; file in
&lt;br&gt;&amp;gt; just about any format you would like. &amp;nbsp;Matlab has an option for reading
&lt;br&gt;&amp;gt; text
&lt;br&gt;&amp;gt; files into n-dimensional arrays. &amp;nbsp;So what you might need here is a
&lt;br&gt;&amp;gt; Matlab
&lt;br&gt;&amp;gt; guru who knows the format for those text files.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Bob Fourer
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26170213&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4er@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26170213&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26170213&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; On Behalf Of mkaspari [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26170213&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mkaspari@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; Sent: Thursday, October 29, 2009 1:08 PM
&lt;br&gt;&amp;gt; &amp;gt; To: AMPL Modeling Language
&lt;br&gt;&amp;gt; &amp;gt; Subject: [AMPL 2934] I want to save my AMPL output as a matrix in a
&lt;br&gt;&amp;gt; file
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Hello AMPL gurus. I am having trouble. My AMPL program is outputting
&lt;br&gt;&amp;gt; a
&lt;br&gt;&amp;gt; &amp;gt; 3 dimensional matrix. I want to be able to read the output in matlab.
&lt;br&gt;&amp;gt; &amp;gt; So I am trying to create a file that has the AMPL output as a matrix.
&lt;br&gt;&amp;gt; &amp;gt; I am looking at the printf command. Does anyone know a quick way of
&lt;br&gt;&amp;gt; &amp;gt; doing this? Thank you for your time.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26170213&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2934--I-want-to-save-my-AMPL-output-as-a-matrix-in-a-file-tp26124853p26170213.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26169625</id>
	<title>RE: [AMPL 2949] I want to save my AMPL output as a matrix in a file</title>
	<published>2009-11-02T11:47:59Z</published>
	<updated>2009-11-02T11:47:59Z</updated>
	<author>
		<name>Robert Fourer-2</name>
	</author>
	<content type="html">&lt;br&gt;You can write a script that uses printf statements to create a text file in
&lt;br&gt;just about any format you would like. &amp;nbsp;Matlab has an option for reading text
&lt;br&gt;files into n-dimensional arrays. &amp;nbsp;So what you might need here is a Matlab
&lt;br&gt;guru who knows the format for those text files.
&lt;br&gt;&lt;br&gt;Bob Fourer
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26169625&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4er@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26169625&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26169625&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; On Behalf Of mkaspari [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26169625&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mkaspari@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Thursday, October 29, 2009 1:08 PM
&lt;br&gt;&amp;gt; To: AMPL Modeling Language
&lt;br&gt;&amp;gt; Subject: [AMPL 2934] I want to save my AMPL output as a matrix in a file
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hello AMPL gurus. I am having trouble. My AMPL program is outputting a
&lt;br&gt;&amp;gt; 3 dimensional matrix. I want to be able to read the output in matlab.
&lt;br&gt;&amp;gt; So I am trying to create a file that has the AMPL output as a matrix.
&lt;br&gt;&amp;gt; I am looking at the printf command. Does anyone know a quick way of
&lt;br&gt;&amp;gt; doing this? Thank you for your time.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26169625&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2934--I-want-to-save-my-AMPL-output-as-a-matrix-in-a-file-tp26124853p26169625.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26167538</id>
	<title>[AMPL 2948] using branch and bound</title>
	<published>2009-11-02T09:22:46Z</published>
	<updated>2009-11-02T09:22:46Z</updated>
	<author>
		<name>enhany75</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Is branch and cut is the default algorithm to solve MIP models?
&lt;br&gt;How to use branch and bound instead of branch and cut to solve MIP
&lt;br&gt;problems?
&lt;br&gt;&lt;br&gt;thanks
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26167538&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2948--using-branch-and-bound-tp26167538p26167538.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26166586</id>
	<title>[AMPL 2947] Re: Problem with AMPL 10 together with CPLEX 11</title>
	<published>2009-11-02T08:25:24Z</published>
	<updated>2009-11-02T08:25:24Z</updated>
	<author>
		<name>Paul A. Rubin</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;On Nov 2, 5:57 am, Andreas &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26166586&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andreas.wiese.ber...@...&lt;/a&gt;&amp;gt;
&lt;br&gt;wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; I am having the following problem: I am using AMPL 10 together with
&lt;br&gt;&amp;gt; CPLEX 11. When I specify in AMPL to use CPLEX with
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; option solver cplex;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; and then run the
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; solve;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; command, I get the following output:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ILOG AMPL 10.000, licensed to &amp;quot;tu-berlin&amp;quot;.
&lt;br&gt;&amp;gt; AMPL Version 20051214 (Linux 2.6.9-5.ELsmp)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Presolve eliminates 1536 constraints and 720 variables.
&lt;br&gt;&amp;gt; Adjusted problem:
&lt;br&gt;&amp;gt; 11224 variables:
&lt;br&gt;&amp;gt;         4544 binary variables
&lt;br&gt;&amp;gt;         6680 linear variables
&lt;br&gt;&amp;gt; 36014 constraints, all linear; 176104 nonzeros
&lt;br&gt;&amp;gt; 0 objectives.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ILOG CPLEX 11.010, licensed to &amp;quot;tu-berlin&amp;quot;, options: e m b q use=10
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Welcome to CPLEX Interactive Optimizer 11.0.1
&lt;br&gt;&amp;gt;   with Simplex, Mixed Integer &amp; Barrier Optimizers
&lt;br&gt;&amp;gt; Copyright (c) ILOG 1997-2008
&lt;br&gt;&amp;gt; CPLEX is a registered trademark of ILOG
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Type 'help' for a list of available commands.
&lt;br&gt;&amp;gt; Type 'help' followed by a command name for more
&lt;br&gt;&amp;gt; information on commands.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; CPLEX&amp;gt; can't open /tmp/at6353.sol
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; this confuses me, since I thought that CPLEX reads the input and then
&lt;br&gt;&amp;gt; creates the output file (with the suffix .sol). If I add a command
&lt;br&gt;&amp;gt; like
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; write moutput;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I get a similar error message (&amp;quot;CPLEX&amp;gt; can't open output.sol&amp;quot;).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank you very much in advance!
&lt;br&gt;&amp;gt; Kind regards,
&lt;br&gt;&amp;gt; Andy
&lt;/div&gt;&lt;br&gt;To get AMPL to pass files directly to CPLEX, and CPLEX to pass
&lt;br&gt;solutions directly to AMPL, you need to use a &amp;nbsp;driver program that
&lt;br&gt;bridges the two. &amp;nbsp;(Not sure if my terminology is exactly correct
&lt;br&gt;there.) &amp;nbsp;CPLEX/ILOG/IBM/whoever sells an AMPL/CPLEX bundle that does
&lt;br&gt;this, but since you apparently have separate copies of AMPL and CPLEX,
&lt;br&gt;you'll need to compile the bridge program yourself. &amp;nbsp;There's C code
&lt;br&gt;available at &lt;a href=&quot;http://www.netlib.org/ampl/solvers/cplex/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.netlib.org/ampl/solvers/cplex/&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;/Paul
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26166586&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2944--Problem-with-AMPL-10-together-with-CPLEX-11-tp26165043p26166586.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26170214</id>
	<title>Re: [AMPL 2953] Problem with AMPL 10 together with CPLEX 11</title>
	<published>2009-11-02T07:28:40Z</published>
	<updated>2009-11-02T07:28:40Z</updated>
	<author>
		<name>Ashutosh Mahajan</name>
	</author>
	<content type="html">On Mon, 02 Nov 2009, Andreas wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; I am having the following problem: I am using AMPL 10 together with
&lt;br&gt;&amp;gt; CPLEX 11. When I specify in AMPL to use CPLEX with
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; option solver cplex;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; and then run the
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; solve;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; command, I get the following output:
&lt;/div&gt;&lt;br&gt;you dont have to use the 'option solver cplex' line. remove this line and your
&lt;br&gt;problem should get solved.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;regards
&lt;br&gt;Ashutosh Mahajan
&lt;br&gt;&lt;a href=&quot;http://coral.ie.lehigh.edu/~asm4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://coral.ie.lehigh.edu/~asm4&lt;/a&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26170214&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2944--Problem-with-AMPL-10-together-with-CPLEX-11-tp26165043p26170214.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26170212</id>
	<title>[AMPL 2951] Re: Problem with AMPL 10 together with CPLEX 11</title>
	<published>2009-11-02T07:23:30Z</published>
	<updated>2009-11-02T07:23:30Z</updated>
	<author>
		<name>Andreas-52</name>
	</author>
	<content type="html">I think the answer has been given in
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://groups.google.com/group/ampl/browse_thread/thread/46a3bf513b2b4f35/3b43882c2da298a2?lnk=gst&amp;q=solver+cplex#3b43882c2da298a2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl/browse_thread/thread/46a3bf513b2b4f35/3b43882c2da298a2?lnk=gst&amp;q=solver+cplex#3b43882c2da298a2&lt;/a&gt;&lt;br&gt;&lt;br&gt;the thread can be closed.
&lt;br&gt;Thanks,
&lt;br&gt;Andy
&lt;br&gt;&lt;br&gt;On Nov 2, 11:57 am, Andreas &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26170212&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andreas.wiese.ber...@...&lt;/a&gt;&amp;gt;
&lt;br&gt;wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; I am having the following problem: I am using AMPL 10 together with
&lt;br&gt;&amp;gt; CPLEX 11. When I specify in AMPL to use CPLEX with
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; option solver cplex;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; and then run the
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; solve;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; command, I get the following output:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ILOG AMPL 10.000, licensed to &amp;quot;tu-berlin&amp;quot;.
&lt;br&gt;&amp;gt; AMPL Version 20051214 (Linux 2.6.9-5.ELsmp)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Presolve eliminates 1536 constraints and 720 variables.
&lt;br&gt;&amp;gt; Adjusted problem:
&lt;br&gt;&amp;gt; 11224 variables:
&lt;br&gt;&amp;gt;         4544 binary variables
&lt;br&gt;&amp;gt;         6680 linear variables
&lt;br&gt;&amp;gt; 36014 constraints, all linear; 176104 nonzeros
&lt;br&gt;&amp;gt; 0 objectives.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ILOG CPLEX 11.010, licensed to &amp;quot;tu-berlin&amp;quot;, options: e m b q use=10
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Welcome to CPLEX Interactive Optimizer 11.0.1
&lt;br&gt;&amp;gt;   with Simplex, Mixed Integer &amp; Barrier Optimizers
&lt;br&gt;&amp;gt; Copyright (c) ILOG 1997-2008
&lt;br&gt;&amp;gt; CPLEX is a registered trademark of ILOG
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Type 'help' for a list of available commands.
&lt;br&gt;&amp;gt; Type 'help' followed by a command name for more
&lt;br&gt;&amp;gt; information on commands.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; CPLEX&amp;gt; can't open /tmp/at6353.sol
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; this confuses me, since I thought that CPLEX reads the input and then
&lt;br&gt;&amp;gt; creates the output file (with the suffix .sol). If I add a command
&lt;br&gt;&amp;gt; like
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; write moutput;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I get a similar error message (&amp;quot;CPLEX&amp;gt; can't open output.sol&amp;quot;).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank you very much in advance!
&lt;br&gt;&amp;gt; Kind regards,
&lt;br&gt;&amp;gt; Andy
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26170212&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2944--Problem-with-AMPL-10-together-with-CPLEX-11-tp26165043p26170212.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26165046</id>
	<title>[AMPL 2946] Poisson comand in AMPL</title>
	<published>2009-11-02T04:11:47Z</published>
	<updated>2009-11-02T04:11:47Z</updated>
	<author>
		<name>Mohapatra</name>
	</author>
	<content type="html">Hello can any body suggest me how to solve the below given problem
&lt;br&gt;model file:
&lt;br&gt;&lt;br&gt;&amp;nbsp;set N; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # N denotes the set of nodes
&lt;br&gt;&amp;nbsp;set L within {N,N}; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# L denotes the set of links
&lt;br&gt;&amp;nbsp;set T := 1..NP; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# T denotes the set all paths
&lt;br&gt;&amp;nbsp;set P{T} within {N,N}; &amp;nbsp; &amp;nbsp; # P[p] denotes the arcs in path p That is,
&lt;br&gt;&amp;nbsp;paths are directed.
&lt;br&gt;&amp;nbsp;set Q{N,N} within T; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Q[a,b] denotes the paths that can be
&lt;br&gt;used
&lt;br&gt;&amp;nbsp;to satisfy demand pair (a,b)
&lt;br&gt;&lt;br&gt;&amp;nbsp;param d{N,N} default 0.0; # &amp;nbsp;d[a,b] denotes the demand between node a
&lt;br&gt;&amp;nbsp;&amp; b
&lt;br&gt;&amp;nbsp;set lamda := 1..36;
&lt;br&gt;&lt;br&gt;&amp;nbsp;var y{T,lamda} binary;
&lt;br&gt;&amp;nbsp;var c{L} &amp;gt;= 0;
&lt;br&gt;&lt;br&gt;&amp;nbsp;minimize WorkingCapacity: sum {(i,j) in L} &amp;nbsp;c[i,j];
&lt;br&gt;&amp;nbsp;subject to WorkingDemand {(i,j) in D}:
&lt;br&gt;&amp;nbsp; &amp;nbsp;sum {b in lamda,p in Q[i,j]} y[p,b] = d[i,j];
&lt;br&gt;&lt;br&gt;&amp;nbsp;data file:
&lt;br&gt;&amp;nbsp;param d :=
&lt;br&gt;&amp;nbsp;2 4 10
&lt;br&gt;&amp;nbsp;3 5 10
&lt;br&gt;&amp;nbsp;1 5 10
&lt;br&gt;&amp;nbsp;;
&lt;br&gt;&lt;br&gt;&amp;nbsp;I try to route the above traffic and optimize, which is a static one.
&lt;br&gt;&lt;br&gt;&amp;nbsp;But I need these demand/traffic modelling as per poissons
&lt;br&gt;distribution
&lt;br&gt;&amp;nbsp;and comes with randomly and optimize the result. I think this may be
&lt;br&gt;&amp;nbsp;done using matlab.
&lt;br&gt;&lt;br&gt;Thanks to R.Fourer for the solution and on which I am trying.
&lt;br&gt;&lt;br&gt;Though one solution to the above problem is in AMPL
&lt;br&gt;param d {i in N,j in N: i &amp;lt; j} := &amp;nbsp;Poisson (2) ;
&lt;br&gt;&lt;br&gt;but I am unable to restrict the total number of demand by the above
&lt;br&gt;method, is it possible to resttict it
&lt;br&gt;&lt;br&gt;Secondly is it possible to generate the above data periodically in
&lt;br&gt;reference to system time in AMPL .
&lt;br&gt;&lt;br&gt;thanks &amp; regards,
&lt;br&gt;bm
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26165046&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2946--Poisson-comand-in-AMPL-tp26165046p26165046.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26165043</id>
	<title>[AMPL 2944] Problem with AMPL 10 together with CPLEX 11</title>
	<published>2009-11-02T02:57:09Z</published>
	<updated>2009-11-02T02:57:09Z</updated>
	<author>
		<name>Andreas-52</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;I am having the following problem: I am using AMPL 10 together with
&lt;br&gt;CPLEX 11. When I specify in AMPL to use CPLEX with
&lt;br&gt;&lt;br&gt;option solver cplex;
&lt;br&gt;&lt;br&gt;and then run the
&lt;br&gt;&lt;br&gt;solve;
&lt;br&gt;&lt;br&gt;command, I get the following output:
&lt;br&gt;&lt;br&gt;&lt;br&gt;ILOG AMPL 10.000, licensed to &amp;quot;tu-berlin&amp;quot;.
&lt;br&gt;AMPL Version 20051214 (Linux 2.6.9-5.ELsmp)
&lt;br&gt;&lt;br&gt;Presolve eliminates 1536 constraints and 720 variables.
&lt;br&gt;Adjusted problem:
&lt;br&gt;11224 variables:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4544 binary variables
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6680 linear variables
&lt;br&gt;36014 constraints, all linear; 176104 nonzeros
&lt;br&gt;0 objectives.
&lt;br&gt;&lt;br&gt;ILOG CPLEX 11.010, licensed to &amp;quot;tu-berlin&amp;quot;, options: e m b q use=10
&lt;br&gt;&lt;br&gt;Welcome to CPLEX Interactive Optimizer 11.0.1
&lt;br&gt;&amp;nbsp; with Simplex, Mixed Integer &amp; Barrier Optimizers
&lt;br&gt;Copyright (c) ILOG 1997-2008
&lt;br&gt;CPLEX is a registered trademark of ILOG
&lt;br&gt;&lt;br&gt;Type 'help' for a list of available commands.
&lt;br&gt;Type 'help' followed by a command name for more
&lt;br&gt;information on commands.
&lt;br&gt;&lt;br&gt;CPLEX&amp;gt; can't open /tmp/at6353.sol
&lt;br&gt;&lt;br&gt;this confuses me, since I thought that CPLEX reads the input and then
&lt;br&gt;creates the output file (with the suffix .sol). If I add a command
&lt;br&gt;like
&lt;br&gt;&lt;br&gt;write moutput;
&lt;br&gt;&lt;br&gt;I get a similar error message (&amp;quot;CPLEX&amp;gt; can't open output.sol&amp;quot;).
&lt;br&gt;&lt;br&gt;Thank you very much in advance!
&lt;br&gt;Kind regards,
&lt;br&gt;Andy
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26165043&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2944--Problem-with-AMPL-10-together-with-CPLEX-11-tp26165043p26165043.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26165044</id>
	<title>[AMPL 2945] Re: checking intersection of two sets</title>
	<published>2009-11-02T00:41:54Z</published>
	<updated>2009-11-02T00:41:54Z</updated>
	<author>
		<name>ruf@donax.ch</name>
	</author>
	<content type="html">Thank you Paul and Bob for your replies.
&lt;br&gt;&lt;br&gt;In fact, I don't need the intersection to do something, but I must
&lt;br&gt;ensure that the intersection is empty to keep my model coherent. So, I
&lt;br&gt;think the &amp;quot;check&amp;quot; command is more useful in this case, since it throws
&lt;br&gt;an error if the condition is not satisfied.
&lt;br&gt;&lt;br&gt;My problem is that I didn't find any example on the usage of the
&lt;br&gt;&amp;quot;check&amp;quot; command applied to sets. Is that possible? Or can I throw an
&lt;br&gt;error using the &amp;quot;if&amp;quot; statement as you proposed?
&lt;br&gt;&lt;br&gt;Thank you
&lt;br&gt;&lt;br&gt;Raffaele
&lt;br&gt;&lt;br&gt;On Nov 2, 1:45 am, &amp;quot;Robert Fourer&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26165044&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; In fact you can write the expression for the intersection of A and B
&lt;br&gt;&amp;gt; directly inside the cardinality function:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;    if card(A inter B) = 0 then {
&lt;br&gt;&amp;gt;    #...
&lt;br&gt;&amp;gt;    }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That way you don't have to define another set just in order to assign it the
&lt;br&gt;&amp;gt; value of A inter B.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Bob Fourer
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26165044&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4...@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26165044&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26165044&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; On Behalf Of Paul
&lt;br&gt;&amp;gt; &amp;gt; Sent: Friday, October 30, 2009 10:21 AM
&lt;br&gt;&amp;gt; &amp;gt; To: AMPL Modeling Language
&lt;br&gt;&amp;gt; &amp;gt; Subject: [AMPL 2937] Re: checking intersection of two sets
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26165044&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r...@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; how can I check that the intersection of two sets is empty?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Thank you
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; set A;
&lt;br&gt;&amp;gt; &amp;gt; set B;
&lt;br&gt;&amp;gt; &amp;gt; # ...
&lt;br&gt;&amp;gt; &amp;gt; set C := A inter B;
&lt;br&gt;&amp;gt; &amp;gt; if card(C) == 0 then {
&lt;br&gt;&amp;gt; &amp;gt; #...
&lt;br&gt;&amp;gt; &amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26165044&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2936--checking-intersection-of-two-sets-tp26130669p26165044.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26156793</id>
	<title>RE: [AMPL 2941] Re: checking intersection of two sets</title>
	<published>2009-11-01T16:45:55Z</published>
	<updated>2009-11-01T16:45:55Z</updated>
	<author>
		<name>Robert Fourer-2</name>
	</author>
	<content type="html">&lt;br&gt;In fact you can write the expression for the intersection of A and B
&lt;br&gt;directly inside the cardinality function:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;if card(A inter B) = 0 then {
&lt;br&gt;&amp;nbsp; &amp;nbsp;#...
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;That way you don't have to define another set just in order to assign it the
&lt;br&gt;value of A inter B.
&lt;br&gt;&lt;br&gt;Bob Fourer
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26156793&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4er@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26156793&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26156793&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; On Behalf Of Paul
&lt;br&gt;&amp;gt; Sent: Friday, October 30, 2009 10:21 AM
&lt;br&gt;&amp;gt; To: AMPL Modeling Language
&lt;br&gt;&amp;gt; Subject: [AMPL 2937] Re: checking intersection of two sets
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26156793&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ruf@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hello,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; how can I check that the intersection of two sets is empty?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thank you
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; set A;
&lt;br&gt;&amp;gt; set B;
&lt;br&gt;&amp;gt; # ...
&lt;br&gt;&amp;gt; set C := A inter B;
&lt;br&gt;&amp;gt; if card(C) == 0 then {
&lt;br&gt;&amp;gt; #...
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26156793&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2936--checking-intersection-of-two-sets-tp26130669p26156793.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26156152</id>
	<title>RE: [AMPL 2940] AMPL/CPLEX from Matlab</title>
	<published>2009-11-01T15:22:36Z</published>
	<updated>2009-11-01T15:22:36Z</updated>
	<author>
		<name>Robert Fourer-2</name>
	</author>
	<content type="html">&lt;br&gt;There is a random Poisson function built into AMPL -- see Table A-3 on page
&lt;br&gt;459 of the AMPL book (2nd edition).
&lt;br&gt;&lt;br&gt;If for some reason you need to generate the random values of d in MATLAB,
&lt;br&gt;you will need to communicate them to AMPL through a text file. &amp;nbsp;You can use
&lt;br&gt;MATLAB's formatted printing statements to create an AMPL data file (which
&lt;br&gt;can be separate from the file that contains all the other data -- just use
&lt;br&gt;two &amp;quot;data&amp;quot; statements). &amp;nbsp;Or you can write just the values into the file and
&lt;br&gt;use AMPL's &amp;quot;read&amp;quot; command to process them as described on page 163 of the
&lt;br&gt;book.
&lt;br&gt;&lt;br&gt;Bob Fourer
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26156152&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4er@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26156152&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26156152&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; On Behalf Of Mohapatra [&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26156152&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bmohapatra9@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Thursday, October 29, 2009 11:50 AM
&lt;br&gt;&amp;gt; To: AMPL Modeling Language
&lt;br&gt;&amp;gt; Subject: [AMPL 2933] AMPL/CPLEX from Matlab
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hello
&lt;br&gt;&amp;gt; Can any body plaease help me how to interface matlab with AMPL/CPLEX.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; model file:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; set N; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # N denotes the set of nodes
&lt;br&gt;&amp;gt; set L within {N,N}; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# L denotes the set of links
&lt;br&gt;&amp;gt; set T := 1..NP; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# T denotes the set all paths
&lt;br&gt;&amp;gt; set P{T} within {N,N}; &amp;nbsp; &amp;nbsp; # P[p] denotes the arcs in path p That is,
&lt;br&gt;&amp;gt; paths are directed.
&lt;br&gt;&amp;gt; set Q{N,N} within T; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Q[a,b] denotes the paths that can be used
&lt;br&gt;&amp;gt; to satisfy demand pair (a,b)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; param d{N,N} default 0.0; # &amp;nbsp;d[a,b] denotes the demand between node a
&lt;br&gt;&amp;gt; &amp; b
&lt;br&gt;&amp;gt; set lamda := 1..36;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; var y{T,lamda} binary;
&lt;br&gt;&amp;gt; var c{L} &amp;gt;= 0;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; minimize WorkingCapacity: sum {(i,j) in L} &amp;nbsp;c[i,j];
&lt;br&gt;&amp;gt; subject to WorkingDemand {(i,j) in D}:
&lt;br&gt;&amp;gt; &amp;nbsp; sum {b in lamda,p in Q[i,j]} y[p,b] = d[i,j];
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; data file:
&lt;br&gt;&amp;gt; param d :=
&lt;br&gt;&amp;gt; 2 4 10
&lt;br&gt;&amp;gt; 3 5 10
&lt;br&gt;&amp;gt; 1 5 10
&lt;br&gt;&amp;gt; ;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I try to route the above traffic and optimize, which is a static one.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; But I need these demand/traffic modelling as per poissons distribution
&lt;br&gt;&amp;gt; and comes with randomly and optimize the result. I think this may be
&lt;br&gt;&amp;gt; done using matlab.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; thanks &amp; regards,
&lt;br&gt;&amp;gt; bm
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups
&lt;br&gt;&amp;gt; &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26156152&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;
&lt;br&gt;&amp;gt; To unsubscribe from this group, send email to
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26156152&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl+unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For more options, visit this group at
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;&lt;br&gt;&amp;gt; -~----------~----~----~----~------~----~------~--~---
&lt;/div&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26156152&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2933--AMPL-CPLEX-from-Matlab-tp26117454p26156152.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26156797</id>
	<title>[AMPL 2943] bug in the Linux student version</title>
	<published>2009-11-01T15:06:48Z</published>
	<updated>2009-11-01T15:06:48Z</updated>
	<author>
		<name>Ali Baharev</name>
	</author>
	<content type="html">I have obtained the following weird output below. The true number of
&lt;br&gt;constraints after presolve is 280. The benchmark giving this result is
&lt;br&gt;here:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://reliablecomputing.eu/homoazeo40.mod&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://reliablecomputing.eu/homoazeo40.mod&lt;/a&gt;&lt;br&gt;&lt;br&gt;Output:
&lt;br&gt;&lt;br&gt;AMPL Student Version 20090926 (Linux 2.6.25.20-0.5-pae)
&lt;br&gt;&lt;br&gt;Presolve eliminates 120 constraints and 120 variables.
&lt;br&gt;Substitution eliminates 760 variables.
&lt;br&gt;Adjusted problem:
&lt;br&gt;280 variables, all nonlinear
&lt;br&gt;280 constraints; 1194 nonzeros
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 240 nonlinear constraints
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 40 linear constraints
&lt;br&gt;0 objectives.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Sorry, the student edition of AMPL is limited to 300 variables
&lt;br&gt;and 300 constraints and objectives (after presolve) for nonlinear
&lt;br&gt;problems. &amp;nbsp;You have 280 variables, 1040 constraints, and 0 objectives.
&lt;br&gt;&lt;br&gt;Ali
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;AMPL Modeling Language&amp;quot; group.
&lt;br&gt;To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26156797&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ampl@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/ampl?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ampl?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-AMPL-2943--bug-in-the-Linux-student-version-tp26156797p26156797.html" />
</entry>

</feed>
