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.enAMPL Displaying variables which are equal to 1
https://groups.google.com/d/msg/ampl/LwOkH2zNgvc/jgdy17SLCAAJ
Hello, I have a small Binary optimization problem(3600+ variable) in AMPL and after I'd solved that I would like to display only those variables which are 1. I tried using for and if-then but I always get a syntax error. Can Anyone help me with writing an AMPL script which will help me displayhttps://groups.google.com/d/topic/ampl/LwOkH2zNgvc
chaitany...@gmail.comSun, 29 Nov 2015 20:25:29 UTCrandom sampling matrix
https://groups.google.com/d/msg/ampl/fS16t5-glNE/I893nDeKCAAJ
Hi, I am trying to create err1 matrix (6*1) where first 5 entries of the matrix are random sample which follows Normal distribution with mean 0 and 5.23 standard deviation. The last element of the matrix is 0. What I tried - param nsample := 5; var z1 random = Normal(0,5.23); paramhttps://groups.google.com/d/topic/ampl/fS16t5-glNE
Gazi Md Daud IqbalSun, 29 Nov 2015 19:58:12 UTCMatching with regular expressions
https://groups.google.com/d/msg/ampl/v6jVd2vbraA/tFPgF8mCCAAJ
Hi, I am fairly new to AMPL and am having an issue. I am trying to evaluate a set of 5 binary numbers in a constraint. I want to prevent two sets of ones in the same row coming up (i.e. 10101 is ok, but 11011, 11100 is a violation). My constraint is: subject to c01 {b in 1..B}: match(sum{ahttps://groups.google.com/d/topic/ampl/v6jVd2vbraA
vm4850Sun, 29 Nov 2015 17:42:00 UTCNonlinear integer solver: How can I make KNITRO evaluate the objective at ALL points?
https://groups.google.com/d/msg/ampl/59tIngIrTLo/1WIJwkJ_CAAJ
I have nonlinear, non-convex problem. I basically just want to do a grid search. I have coded up the problem in AMPL. There are 7 variables, each of which have 10 possible integer values. Is there some option, or combination of options, that will effectively make KNITRO search over all 10^7https://groups.google.com/d/topic/ampl/59tIngIrTLo
clar...@umn.eduSun, 29 Nov 2015 16:37:25 UTCError while using NEOS solver
https://groups.google.com/d/msg/ampl/LtqRym2DOd8/26kI4SzCBwAJ
Hi, I tried to solve a constrained programming model using NEOS solver. But, regardless of the solver i use, the same error comes: Error (-11) in /opt/ampl/ampl -R amplin Can someone tell me what this signifies? Thank you.https://groups.google.com/d/topic/ampl/LtqRym2DOd8
manu narayananFri, 27 Nov 2015 06:52:23 UTC3- dimension Intersection in AMPL
https://groups.google.com/d/msg/ampl/BP3f9Pcp4oY/YPeD6h2lBwAJ
Hi Im using this following code to make a intersuction function between two different set of group which contain same content d & b . *param* abc{ d *in* g1, b *in* g2} = *sum*{i *in* group1[d]:i *in* group2[b] }1; where g1 and g2 is two different set of groups which contain the samehttps://groups.google.com/d/topic/ampl/BP3f9Pcp4oY
HAThu, 26 Nov 2015 21:59:53 UTCsolver environment variable
https://groups.google.com/d/msg/ampl/GOVWLt-nl40/fB5vYAhWBwAJ
I was wondering if there is an environment variable to indicate the name of the solver to be used, something like SET OPTIONS_SOLVER= gurobi instead of using the following line of code in RUN script file: option solver gurobi; Thanks Cuonghttps://groups.google.com/d/topic/ampl/GOVWLt-nl40
Cuong P. NguyenWed, 25 Nov 2015 21:50:39 UTCredundant constrants
https://groups.google.com/d/msg/ampl/7Ha9uP4Fh58/lx1TDfpJBwAJ
Hello! I'm working with cplex callable library in c. I have a problem and I want detect and delete redundant constraints (if them exists). I see that presolve in cplex optimize in this direction but it isn't a solution.... *Is possible detect and remove manually the redundant constraints?*https://groups.google.com/d/topic/ampl/7Ha9uP4Fh58
riccardo zanellaWed, 25 Nov 2015 18:09:44 UTCAMPL API beahving abnormal
https://groups.google.com/d/msg/ampl/ywdaqG5yFBc/o6sp-8BFBwAJ
Hey, Recently I came across a wierd problem. When I try to execute my optimization model it is giving wrong results. Is the API under development for causing these type of problems? Because I have encountered a similar problem before the new release of API. Thank you! Regards, Arthushttps://groups.google.com/d/topic/ampl/ywdaqG5yFBc
arthu...@gmail.comWed, 25 Nov 2015 16:52:21 UTCRE: [AMPL 11021] Non linear Constraint
https://groups.google.com/d/msg/ampl/PIpkt8t64RI/t3FmAUb_BgAJ
Can you re-post this question so that it also shows the AMPL definitions for F, y, and Pmax? Then it will be possible to give a more specific answer. Bob Fourer am...@googlegroups.com ======= From: am...@googlegroups.com [mailto:am...@googlegroups.com] On Behalf Of skyline Sent: Monday,https://groups.google.com/d/topic/ampl/PIpkt8t64RI
Robert FourerTue, 24 Nov 2015 19:20:46 UTCcan't convert to a number
https://groups.google.com/d/msg/ampl/QDnfWTq7WDw/IUk37xj4BgAJ
In my work when I give command solve there is an error: Error executing "solve" command: error processing constraint engines['mo','Y1']: can't convert 'mo' to a number. Where is: set J; set day; param G{i in day, j in J}; subject to engines {i in day, j in J}: y[i,j] + G[i,j] + (sum{m in J}https://groups.google.com/d/topic/ampl/QDnfWTq7WDw
Milan MarinkovicTue, 24 Nov 2015 17:09:16 UTCNon Linear Constraint
https://groups.google.com/d/msg/ampl/ngtI88h0LLU/9iQGsDLxBgAJ
Hello, I have Non linear Constraint in my problem given by : C4{i in N} : F[i] == Pmax / (y[i]); F{N} Variable such as 0=<F[i]<=Pmax y{N} variable such as 0=<y[i] Pmax is a positive paramater When I solve this problem with C4 constraint using : KnitroAmpl, Bonmin, IPOPT. The solvershttps://groups.google.com/d/topic/ampl/ngtI88h0LLU
skylineTue, 24 Nov 2015 15:02:50 UTCread_table does not seem to search for files in "ampl_include" paths
https://groups.google.com/d/msg/ampl/wOTuvQPtcvE/h4Xa7uTwBgAJ
I have defined paths to source code folder (where all *.mod files are located), and data folder (where all *.tab files are located, including mydata.tab file below) option ampl_include 'C:\ampl_source_foler \ C:\ampl_data_foler'; then I was trying to load mydata.tab file,https://groups.google.com/d/topic/ampl/wOTuvQPtcvE
Cuong P. NguyenTue, 24 Nov 2015 14:57:16 UTCScript in AMPL
https://groups.google.com/d/msg/ampl/dgMJ3T_DdOw/eHrYKWDLBgAJ
Dear Bob and Victor, I have a question. In my model in AMPL I have a parameter called generation and I have to run my model in a .run file for 5 times, this means using a for {1..5} but in every loop I have to change the values of all the parameter generation in different values on everyhttps://groups.google.com/d/topic/ampl/dgMJ3T_DdOw
Alessandro Oscar Gilardino AriasTue, 24 Nov 2015 03:29:44 UTCUpdate to COIN-OR solver binaries
https://groups.google.com/d/msg/ampl/XGag0c-Y-Ug/C5HetW_EBgAJ
COIN-OR solver binaries available for download from http://ampl.com/products/solvers/open-source/ have been updated to the following versions: Clp 1.16.9 Cbc 2.9.7 Ipopt 3.12.4 Bonmin 1.8.4 Couenne 0.5.6 (with patches) Enjoy! - Victorhttps://groups.google.com/d/topic/ampl/XGag0c-Y-Ug
VictorTue, 24 Nov 2015 01:22:34 UTC