annoying error

220 views
Skip to first unread message

mahraz amini

unread,
Mar 24, 2016, 8:02:53 PM3/24/16
to AMPL Modeling Language
Hi all


when I run my code I face this error : 

"The AMPL process has terminated. would you like to restart it? " even when it shows the problem is solved and the optimal solution is changed. does anyone have any idea why it happens and how I can fix this?

I am using El Capitan 10.11.4 and  AMPL IDE  Version: 3.1.0.201510231952

Thanks,
Mahraz


 

Robert Fourer

unread,
Mar 25, 2016, 4:43:15 PM3/25/16
to am...@googlegroups.com
We see this message when executing a script (run file) that ends with a statement such as "quit;" that terminates the AMPL session while the IDE is still running. If you do not find a "quite;" or similar statement in your script, or see any other reason why your run would be terminating AMPL, then please send us a complete transcript of your AMPL session -- by copying it and pasting it into an email, or by pasting a screenshot into your email if the whole session fits into one IDE screen. Also you may want to attach your files if there are only a few small ones.

Bob Fourer
am...@googlegroups.com

=======

mahraz amini

unread,
Mar 25, 2016, 6:56:08 PM3/25/16
to AMPL Modeling Language, 4...@ampl.com
when I run the same code on another computer it works properly but when I just use it on my computer I face this error so it seems it dose not relate to my code. it happens after I updated the system to OS El Capitan. do you think I need to reinstall AMPL? as the code works properly on other computer do you still need the code? I would really appreciate your help.

Thanks,
Mahraz

Robert Fourer

unread,
Mar 28, 2016, 1:26:50 PM3/28/16
to am...@googlegroups.com
You could try reinstalling, using the latest IDE download at http://ampl.com/products/ide/. Note that in order to fully reinstall the AMPL IDE, you must delete the amplide folder that you put inside your AMPL folder, and you must also delete the IDE settings folder, which in MacOSX is of the form

~/Library/Application Support/amplide

where ~ stands for the path to your home folder; you can use the Mac Finder search to locate it.

We have no other reports of a problem like this, so if it persists after you reinstall the IDE, then we will need some files from you that we can run on our computers to reproduce the problem. After we have observed the problem on our computers, we can give some advice for fixing it.

Xuezhou Zhang

unread,
Jan 21, 2018, 10:52:46 PM1/21/18
to AMPL Modeling Language
The same problem occurs to me, with IDE version: 3.1.0.201510231952
I'm using High Sierra 10.13.2.
I've attached my commands and model and data files for reproducibility.
model in attachment
Command:
option solver knitro;
model camouflage/minlp.mod;
data camouflage/image/data.txt;
option randseed 1;
option presolve 0;
let d:=2049;
let n:=1200;
let m:=1000;
let sigma:= 21.84;
let alpha:= 0.05;
let s1:=100;
let s2:=n;
solve;

display sqrt(1/n^2 * sum{i in 1..n, j in 1..n}K[i,j] - 2/n * 1/(sum{i in 1..n}b[i]) * sum{i in 1..n, j in 1..n}(b[i]*K[i,j]) + 1/(sum{i in 1..n}b[i])^2 * sum{i in 1..n, j in 1..n}(b[i]*b[j]*K[i,j])); # MMD
display (2 * (sqrt(1/n) + sqrt(1/(sum{i in 1..n}b[i]))) + sqrt(2*(n + (sum{i in 1..n}b[i]))/(n*(sum{i in 1..n}b[i]))*log(1/alpha))); # MMD bound

display risk;
display b;
display theta;
for {s in 1..d}{
display ((-sum{i in 1..n} (b[i]/(1+exp(y_train[i]*(sum{j in 1..d} (x_train[i,j]*theta[j]))))*y_train[i]*x_train[i,s])) + lambda*theta[s]);
}
display sum{i in 1..n}b[i];
display _solve_time;
minlp.mod

ptiwari

unread,
Jan 22, 2018, 3:41:58 PM1/22/18
to AMPL Modeling Language
We have been working in the new version of IDE. Can you try the new IDE at http://bit.ly/2Ds7tjW and let us know if you get the same problem?
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Xuezhou Zhang

unread,
Jan 22, 2018, 10:06:49 PM1/22/18
to am...@googlegroups.com
Just tried it. The problem still persists. Have you had a chance to try running my code? Do you get the same problem?

--
You received this message because you are subscribed to a topic in the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ampl/f1fJ6G9q-qQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ampl+unsubscribe@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.

Xuezhou Zhang

unread,
Jan 23, 2018, 2:29:49 PM1/23/18
to am...@googlegroups.com
I tried submitting the problem to the NEOS server. It also fails to solve the problem, due to running out of memory limit (3GB). Do you think it could be similar issues for my laptop version?

Thanks
Message has been deleted

Xuezhou Zhang

unread,
Jan 23, 2018, 4:56:01 PM1/23/18
to am...@googlegroups.com
If I run it with the AMPL shell instead of using the IDE, I do get the AMPL killed: 9 message, which indicates memory overflow. Any ideas on possible ways of mitigating memory burden?

Thanks
Reply all
Reply to author
Forward
Message has been deleted
0 new messages