To verify if NEOS solver is available or not

282 views
Skip to first unread message

Allan

unread,
Jun 25, 2017, 11:26:59 AM6/25/17
to am...@googlegroups.com
Dear Technical Assistance,

Recently, I am trying to use ampl to resolve some of my optimization problems through the matlab API (using an academic license). However, some of my problems can be large in size, which can hardly be handled by certain solvers (e.g. KNITRO), so I resort to the NEOS solver for help (type two: Local AMPL with remote solvers). I have installed the Kestrel client as well as Python, but when I start solving my problem, I get the following error message:

PS: I simply replace the original command
"ampl.setOption('solver','KNITRO');"
with 
"ampl.setOption('solver','kestrel');
ampl.setOption('kestrel_options','KNITRO');"
while keeping the rest part unchanged.

%-----------------------------------------------------------------------%
Connecting to: neos-server.org:3332

Error, NEOS solver is temporarily unavailable.

exit code 1
<BREAK>
%-----------------------------------------------------------------------%

So, I want to make sure if the NEOS solver is really temporarily unavailable or I have made some mistakes while programming. If the NEOS solver is indeed temporarily unavailable, I wonder if you can inform me when it will start working again.

I am looking forward to your reply, and thanks in advance.

Best regards,
Rui Tang

------------------
The school of Electronics and Information Engineering, Xi'an Jiaotong University.
No. 28, West Xianning Road, Xi'an 710049, Shaanxi, P. R. China.

Disclaimer: This email (including any attachments) is for the use of the intended recipient only and may contain confidential information and/or copyright material. If you are not the intended recipient, please notify the sender immediately and delete this email and all copies from your system. Any unauthorized use, disclosure, reproduction, copying, distribution, or other form of unauthorized dissemination of the contents is expressly prohibited.


 



 

ptiwari

unread,
Jun 25, 2017, 4:03:22 PM6/25/17
to AMPL Modeling Language, alla...@163.com
Can you tell us what operating system are you using? Is it Windows, Linux or Mac?

Thanks,
Paras


On Sunday, June 25, 2017 at 8:26:59 AM UTC-7, Allan wrote:
Dear Technical Assistance,

Recently, I am trying to use ampl to resolve some of my optimization problems through the matlab API (using an academic license). However, some of my problems can be large in size, which can hardly be handled by certain solvers (e.g. KNITRO), so I resort to the NEOS solver for help (type two: Local AMPL with remote solvers). I have installed the Kestrel client as well as Python, but when I start solving my problem, I get the following error message:

PS: I simply replace the original command
"ampl.setOption('solver','KNITRO');"
with 
"ampl.setOption('solver','kestrel');
ampl.setOption('kestrel_options','KNITRO');"
while keeping the rest part unchanged.

%-----------------------------------------------------------------------%
Connecting to: neos-server.org:3332

Error, NEOS solver is temporarily unavailable.

exit code 1
<BREAK>
%-----------------------------------------------------------------------%

So, I want to make sure if the NEOS solver is really temporarily unavailable or I have made some mistakes while programming. If the NEOS solver is indeed temporarily unavailable, I wonder if you can inform me when it will start working again.

I am looking forward to your reply, and thanks in advance.

Best regards,
Rui Tang

------------------
The school of Electronics and Information Engineering, Xi'an Jiaotong University.
No. 28, West Xianning Road, Xi'an 710049, Shaanxi, P. R. China.

Allan Tang

unread,
Jun 25, 2017, 8:25:29 PM6/25/17
to AMPL Modeling Language, alla...@163.com
Dear Paras,

I am currently using Window 7 (with matlab 2012b and Python 3.6.1).

Best regards,
Allan

Allan

unread,
Jun 25, 2017, 9:53:11 PM6/25/17
to ptiwari, ampl technical support group
Dear Paras,

Thanks so much for your prompt reply. I am currently using Window 7 (with matlab 2012b and Python 3.6.1).

Best regards,
Allan

------------------
The school of Electronics and Information Engineering, Xi'an Jiaotong University.
No. 28, West Xianning Road, Xi'an 710049, Shaanxi, P. R. China.

Disclaimer: This email (including any attachments) is for the use of the intended recipient only and may contain confidential information and/or copyright material. If you are not the intended recipient, please notify the sender immediately and delete this email and all copies from your system. Any unauthorized use, disclosure, reproduction, copying, distribution, or other form of unauthorized dissemination of the contents is expressly prohibited.
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

ptiwari

unread,
Jun 26, 2017, 1:44:02 AM6/26/17
to AMPL Modeling Language, pti...@ampl.com, alla...@163.com
There is a problem in the existing Kestrel application. I have attached the updated one. You need to unzip and copy it to your ampl folder. Could you please give this a try?

Thanks,
Paras


On Sunday, June 25, 2017 at 6:53:11 PM UTC-7, Allan wrote:
Dear Paras,

Thanks so much for your prompt reply. I am currently using Window 7 (with matlab 2012b and Python 3.6.1).

Best regards,
Allan

------------------
The school of Electronics and Information Engineering, Xi'an Jiaotong University.
No. 28, West Xianning Road, Xi'an 710049, Shaanxi, P. R. China.
kestrel

Allan Tang

unread,
Jun 26, 2017, 2:46:41 AM6/26/17
to AMPL Modeling Language, pti...@ampl.com, alla...@163.com
Dear Paras,

Is that a zip format file? I have downloaded it and tried to add ".zip", ".rar", ".7z" or even ".iso" behind its name before unzipping it. But the system informed me that it has been destroyed. So, I wonder if you can have a check of that file and resend it to me (PS: please be sure that the Kestrel application is used for Windows system (e.g. Win 7 in my case)).

I am looking forward to your reply and thanks in advance.

Best regards,
Allan


On Monday, June 26, 2017 at 1:44:02 PM UTC+8, ptiwari wrote:
There is a problem in the existing Kestrel application. I have attached the updated one. You need to unzip and copy it to your ampl folder. Could you please give this a try?

Thanks,
Paras

On Sunday, June 25, 2017 at 6:53:11 PM UTC-7, Allan wrote:
Dear Paras,

Thanks so much for your prompt reply. I am currently using Window 7 (with matlab 2012b and Python 3.6.1).

Best regards,
Allan

------------------
The school of Electronics and Information Engineering, Xi'an Jiaotong University.
No. 28, West Xianning Road, Xi'an 710049, Shaanxi, P. R. China.
Message has been deleted
Message has been deleted

Paras Tiwari

unread,
Jun 26, 2017, 4:06:41 AM6/26/17
to Allan, ampl technical support group
Sorry for the confusion. Could you please download from http://bit.ly/2t8pRvQ 

Thanks,
Paras

On Sun, Jun 25, 2017 at 11:44 PM, Allan <alla...@163.com> wrote:
Dear Paras,

Is that a zip format file? I have downloaded it and tried to add ".zip", ".rar", ".7z" or even ".iso" behind its name before unzipping it. But the system informed me that it has been destroyed. So, I wonder if you can have a check of that file and resend it to me (PS: please be sure that the Kestrel application is used for Windows system (e.g. Win 7 in my case)).

I am looking forward to your reply and thanks in advance.

Best regards,
Allan

------------------
The school of Electronics and Information Engineering, Xi'an Jiaotong University.
No. 28, West Xianning Road, Xi'an 710049, Shaanxi, P. R. China.

Disclaimer: This email (including any attachments) is for the use of the intended recipient only and may contain confidential information and/or copyright material. If you are not the intended recipient, please notify the sender immediately and delete this email and all copies from your system. Any unauthorized use, disclosure, reproduction, copying, distribution, or other form of unauthorized dissemination of the contents is expressly prohibited.

在 2017-06-26 13:44:02,"ptiwari" <pti...@ampl.com> 写道:
There is a problem in the existing Kestrel application. I have attached the updated one. You need to unzip and copy it to your ampl folder. Could you please give this a try?

Thanks,
Paras

On Sunday, June 25, 2017 at 6:53:11 PM UTC-7, Allan wrote:
Dear Paras,

Thanks so much for your prompt reply. I am currently using Window 7 (with matlab 2012b and Python 3.6.1).

Best regards,
Allan

------------------
The school of Electronics and Information Engineering, Xi'an Jiaotong University.
No. 28, West Xianning Road, Xi'an 710049, Shaanxi, P. R. China.

Allan Tang

unread,
Jun 26, 2017, 5:05:36 AM6/26/17
to AMPL Modeling Language, alla...@163.com
Problem solved. Thanks so much Paras! 

However, I have to say that it takes a much longer time to get the results and I may also encounter the case when the NEOS server is temporarily unavailable, which is fatal for the case when I have to solve some problems in a sequential order (e.g. when applying the sequential convex optimization technique to approximate to a non-convex optimization problem).

In the following, I give the complete outputs (from the matlab command window) when applying the sequential convex optimization technique to locate a KKT point of a D-C (difference-of-concave) programming (In each iteration, I resort to MOSEK or KNITRO to solve an convex optimization). As I have just mentioned, I may also encounter the case when the NEOS server is temporarily unavailable, so I get an unexpected results at the end of the calculation.

%-------------------------------------------------------------------------------------------------%

Connecting to: neos-server.org:3333

Connected to NEOS Server.

Job 5474060 submitted to NEOS, password='EdZXxwsV'

Check the following URL for progress report :


Job 5474060 dispatched

password: EdZXxwsV

---------- Begin Solver Output -----------

Condor submit: 'neos.submit'

Condor submit: 'watchdog.submit'

Job submitted to NEOS HTCondor pool.

MOSEK finished.
Problem status    : PRIMAL_AND_DUAL_FEASIBLE
Solution status   : OPTIMAL
Primal objective  : 3.3813129701654
Dual objective    : 3.3813129702991978

Connecting to: neos-server.org:3333

Error, NEOS solver is temporarily unavailable.

exit code 1
<BREAK>
Connecting to: neos-server.org:3333

Connected to NEOS Server.

Job 5474063 submitted to NEOS, password='USnCuPKi'

Check the following URL for progress report :


Job 5474063 dispatched

password: USnCuPKi

---------- Begin Solver Output -----------

Condor submit: 'neos.submit'

Condor submit: 'watchdog.submit'

Job submitted to NEOS HTCondor pool.

MOSEK finished.
Problem status    : PRIMAL_AND_DUAL_FEASIBLE
Solution status   : OPTIMAL
Primal objective  : 3.381312970160276
Dual objective    : 3.381312970296729

Connecting to: neos-server.org:3333

Connected to NEOS Server.

Job 5474064 submitted to NEOS, password='RiXPtqzb'

Check the following URL for progress report :


Job 5474064 dispatched

password: RiXPtqzb

---------- Begin Solver Output -----------

Condor submit: 'neos.submit'

Condor submit: 'watchdog.submit'

Job submitted to NEOS HTCondor pool.

MOSEK finished.
Problem status    : PRIMAL_AND_DUAL_FEASIBLE
Solution status   : OPTIMAL
Primal objective  : 3.4720699791323733
Dual objective    : 3.472069997328125

Connecting to: neos-server.org:3333

Connected to NEOS Server.

Job 5474065 submitted to NEOS, password='rQNcxHSX'

Check the following URL for progress report :


Job 5474065 dispatched

password: rQNcxHSX

---------- Begin Solver Output -----------

Condor submit: 'neos.submit'

Condor submit: 'watchdog.submit'

Job submitted to NEOS HTCondor pool.

MOSEK finished.
Problem status    : PRIMAL_AND_DUAL_FEASIBLE
Solution status   : OPTIMAL
Primal objective  : 3.4729159890729164
Dual objective    : 3.4729159893265455

Connecting to: neos-server.org:3333

Error, NEOS solver is temporarily unavailable.

exit code 1
<BREAK>
Connecting to: neos-server.org:3333

Error, NEOS solver is temporarily unavailable.

exit code 1
<BREAK>
Connecting to: neos-server.org:3333

Connected to NEOS Server.

Job 5474067 submitted to NEOS, password='pJgYOeIc'

Check the following URL for progress report :


Job 5474067 dispatched

password: pJgYOeIc

---------- Begin Solver Output -----------

Condor submit: 'neos.submit'

Condor submit: 'watchdog.submit'

Job submitted to NEOS HTCondor pool.

MOSEK finished.
Problem status    : PRIMAL_AND_DUAL_FEASIBLE
Solution status   : OPTIMAL
Primal objective  : 3.3813129701628792
Dual objective    : 3.3813129702989433

Connecting to: neos-server.org:3333

Connected to NEOS Server.

Job 5474069 submitted to NEOS, password='eWaTqyVo'

Check the following URL for progress report :


Job 5474069 dispatched

password: eWaTqyVo

---------- Begin Solver Output -----------

Condor submit: 'neos.submit'

Condor submit: 'watchdog.submit'

Job submitted to NEOS HTCondor pool.

MOSEK finished.
Problem status    : PRIMAL_AND_DUAL_FEASIBLE
Solution status   : OPTIMAL
Primal objective  : 3.4720699766426013
Dual objective    : 3.47206999541702

Connecting to: neos-server.org:3333

Connected to NEOS Server.

Job 5474070 submitted to NEOS, password='quyaUnVh'

Check the following URL for progress report :


Job 5474070 dispatched

password: quyaUnVh

---------- Begin Solver Output -----------

Condor submit: 'neos.submit'

Condor submit: 'watchdog.submit'

Job submitted to NEOS HTCondor pool.

MOSEK finished.
Problem status    : PRIMAL_AND_DUAL_FEASIBLE
Solution status   : OPTIMAL
Primal objective  : 3.4729159890711374
Dual objective    : 3.472915989324676

Allan

unread,
Jun 26, 2017, 8:23:38 AM6/26/17
to ptiwari, ampl technical support group
Dear Paras,

Is that a zip format file? I have downloaded it and tried to add ".zip", ".rar", ".7z" or even ".iso" behind its name before unzipping it. But the system informed me that it has been destroyed. So, I wonder if you can have a check of that file and resend it to me (PS: please be sure that the Kestrel application is used for Windows system (e.g. Win 7 in my case)).

I am looking forward to your reply and thanks in advance.

Best regards,
Allan

------------------
The school of Electronics and Information Engineering, Xi'an Jiaotong University.
No. 28, West Xianning Road, Xi'an 710049, Shaanxi, P. R. China.

Disclaimer: This email (including any attachments) is for the use of the intended recipient only and may contain confidential information and/or copyright material. If you are not the intended recipient, please notify the sender immediately and delete this email and all copies from your system. Any unauthorized use, disclosure, reproduction, copying, distribution, or other form of unauthorized dissemination of the contents is expressly prohibited.
在 2017-06-26 13:44:02,"ptiwari" <pti...@ampl.com> 写道:

Robert Fourer

unread,
Jun 28, 2017, 11:07:50 PM6/28/17
to am...@googlegroups.com
If NEOS is usually successful, you could try setting "option solve_exitcode_max 10;" and then surrounding your solve with a loop like this:

repeat {
solve;
} until solve_result != "failure";

But if the number of failures is unacceptably large then you may want to report this problem to sup...@neos-server.org.

Bob Fourer
am...@googlegroups.com

=======
...


Reply all
Reply to author
Forward
0 new messages