AMPL Modeling Language
https://groups.google.com/d/forum/ampl
A discussion and help group for AMPL, an algebraic modeling language for optimization problems of many kinds. AMPL lets people use common notation and familiar concepts to formulate models and examine solutions, while the computer manages communication with appropriate solvers.enParametrize solver options
https://groups.google.com/d/msg/ampl/V2_f0He-W-M/JKRC3SVEAAAJ
I'm writing a run file which solves iteratively a problem adding cuts after each iteration. I want to run this until a maximum of T minutes (with T a parameter). I'm using baron and I would like to say something like option baron_options 'maxtime=%d', (T - timePassed); where timePassed is thehttps://groups.google.com/d/topic/ampl/V2_f0He-W-M
easalgado...@gmail.comSat, 17 Mar 2018 19:53:20 UTCExpression whose definition is dependent of a set
https://groups.google.com/d/msg/ampl/9IJH5PdRx9w/aQ7WOjjWBAAJ
Hi, I need a to use an expression like this: *s.t.* Max_Raw_Inv {t *in* TIME: t>lt[r]}: *sum*{r *in* RAWMAT} lotSize[r]*Order[r,t-lt[r]] <= invRawCap; where the *t in TIME* starts form a *lt[r]* defined in *RAWMAT*. If I write the expression above I have an error, because *r *ishttps://groups.google.com/d/topic/ampl/9IJH5PdRx9w
Erry OldenFri, 16 Mar 2018 15:12:00 UTCConstraint with a set defined in a set
https://groups.google.com/d/msg/ampl/zXxobtGXr_M/i0u_4mrQBAAJ
Hi, I cannot write correctly the following expression: *s.t.* Max_Raw_Inv {t *in* TIME: t>lt[r]}: *sum*{r *in* RAWMAT} lotSize[r]*Order[r,t-lt[r]] <= invRawCap; the problem is that the "t in time" must start after a value define by "lt[r]" and lt is defined in RAWMAT. If I writehttps://groups.google.com/d/topic/ampl/zXxobtGXr_M
Erry OldenFri, 16 Mar 2018 13:25:40 UTCInitial condition in mod or run
https://groups.google.com/d/msg/ampl/Aukz8A0IP_A/lYBiP3mEBAAJ
I write initial condition of the model inside run file before solve, whereas a friend of mine suggested me to write it in mod. What are the pros and cons?https://groups.google.com/d/topic/ampl/Aukz8A0IP_A
shiThu, 15 Mar 2018 14:13:59 UTCUnexpected end of file
https://groups.google.com/d/msg/ampl/9LuK6Ch9jqA/usiqI3mEBAAJ
Hello, I am trying to read Text files in AMPL and I keep getting the error message: unexpected end of file My commands in my data file are as follows: set SUPPLIERS := 1 .. supplier_num; # set of suppliers set PORTS := 1 .. ports_num; # set of Ports param supplier_num := 1; paramhttps://groups.google.com/d/topic/ampl/9LuK6Ch9jqA
Shahd TagelsirThu, 15 Mar 2018 14:13:59 UTCnode arc notation demand constraint
https://groups.google.com/d/msg/ampl/chB9-r6ZbY8/-KPhka5ABAAJ
I'm building a reverse logistics network and I'm using a the node-arc notation of AMPL. My question is: how can I implement demand constraint over the network? In the model proposed in Ch 15 such constraints are at the end of the network. A solution I found is the following: subject tohttps://groups.google.com/d/topic/ampl/chB9-r6ZbY8
Marco RepettoWed, 14 Mar 2018 17:31:41 UTCerror
https://groups.google.com/d/msg/ampl/UIpm3flnicw/NbNd0lbzAwAJ
Hi, I encountered issue when running below at amplide.exe. I did not encounter the same error when running at ampl.exe. Your advice would be appreciated. Thanks and regards, can't open C:\Users\PML\AppData\Local\Temp\at13564.sol [cid:image001.png@01D3BAE2.F098D740] [cid:image002.png@01https://groups.google.com/d/topic/ampl/UIpm3flnicw
Pang Mei LingTue, 13 Mar 2018 17:54:22 UTCReformulation of a model with ASL
https://groups.google.com/d/msg/ampl/lMdDLDqg2u8/7Mdcxh2VAwAJ
Hello, We have implemented a solver for Polynomial Programming problems, which needs to know the complete information about all the monomials in the objective function and the constraints in order to do a reformulation/linearization technique. Now that the solver has been tested, we arehttps://groups.google.com/d/topic/ampl/lMdDLDqg2u8
jqn...@gmail.comMon, 12 Mar 2018 13:07:43 UTCAMPL does not response to the commands and not catch errors in the code
https://groups.google.com/d/msg/ampl/18yzKRQySXE/QmTJL4tPAwAJ
Hello, Surprisingly, since yesterday I've been run into an annoying problem with my AMPL, sometimes the AMPL does not respond to commands, I first try to read the model, then display the data (the display control is there), but seems the AMPL neither sensitive to catch errors in the code norhttps://groups.google.com/d/topic/ampl/18yzKRQySXE
Eric E SättarSun, 11 Mar 2018 15:52:47 UTCQuestion on decrease the capacity of the Eclipse output console + Increasing Heap size in AMPL
https://groups.google.com/d/msg/ampl/Gg07AdQq7GA/74WniknGAgAJ
Hello, Today I run into a creepy problem with my AMPL machine, during running a large-scale model, I wonder this error may cause for being insufficient memory with my computer ? or some other reason? Please look at the first image, it says during the run the AMPL cannot access to the entirehttps://groups.google.com/d/topic/ampl/Gg07AdQq7GA
Eric E SättarFri, 09 Mar 2018 21:57:32 UTCExcel Tables in AMPL
https://groups.google.com/d/msg/ampl/vAgaaWPsbFU/MsWfhs-6AgAJ
Hello, I am trying to use datasets from excel in my model. I have a mac and AMPL 64-bit version. I was told in an email from AMPL support that I need to install an ODBC driver. I followed this thread: https://groups.google.com/forum/#!msg/ampl/8sne3XHNUlw/qKN-CfxP_z8J and downloaded the ODBChttps://groups.google.com/d/topic/ampl/vAgaaWPsbFU
stag...@college.harvard.eduFri, 09 Mar 2018 18:27:13 UTCProblem with IF-THEN-ELSE constraint
https://groups.google.com/d/msg/ampl/OafhlSSMLmU/o-HFUzRtAgAJ
Hi! I have a problem with a constraint with if-then-else. First of all, I try to explain what I would like to reach. Index s - surgical ward; i - kind of surgical operation; t - planning days{1, ..., 20}; Var N_int_in[i,s,t] - number of operation of kind i belonging to ward s plannedhttps://groups.google.com/d/topic/ampl/OafhlSSMLmU
Marco LeonessiThu, 08 Mar 2018 18:45:04 UTCASL: Scaling of Lagrangian Hessian
https://groups.google.com/d/msg/ampl/GZS_PxRwCg0/0a_6fKwiAgAJ
Hi, I'm developing a penalty SQP method, and I'm facing a weird problem. I need to scale the objective part in the Lagrangian Hessian by a factor *rho*, so I call something like: sphes(hessian, 0, &rho, multipliers) On this particular problem < http://www.mat.univie.ac.at/~neum/glopt/coconuhttps://groups.google.com/d/topic/ampl/GZS_PxRwCg0
cvan...@gmail.comWed, 07 Mar 2018 19:59:17 UTCproblem with writing inventory_cons.
https://groups.google.com/d/msg/ampl/e8J10JOZn48/YPpaYzXiAQAJ
Hi, I am trying to write the following inventory constraint, set H; set A; set T; #starts from 1..25 param init_inv = 0; inventoryForCons2 {h in H, a in A, t in T}: invForet_A [h,a,t] +B_ht[h,t]= if t >0 then invForet_A [h,a,t-1] else 0+ sum {w in W} f_hw[h,w,a,t] ;https://groups.google.com/d/topic/ampl/e8J10JOZn48
Eric E SättarWed, 07 Mar 2018 00:17:57 UTCUsing Cplex as lp solver in baron
https://groups.google.com/d/msg/ampl/LSdDa1XucbE/GiQBBoXKAQAJ
Hello, I have trouble setting cplex as linear solver of baron; baron is not recognising the licence (License not available for "lpsolver=cplex"; assuming "lpsolver=cbc"). However, i have cplex.exe and cplex124.dll that works perfectly well in another folder. But when ampl.exe , ampl.lic ,https://groups.google.com/d/topic/ampl/LSdDa1XucbE
Christina KachachaTue, 06 Mar 2018 17:03:51 UTC