[AMPL 15296] Nonlinear mixed integer programming constraint violation

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[AMPL 15296] Nonlinear mixed integer programming constraint violation

t.t.teo
Hi all,

I have been trying to solve an energy storage scheduling problem formulated in nonlinear mixed integer programming.

From the model, uc and ud are declared as an integer. However, when I solved it using AMPL IDE without specifying any solver, the results violates my constraints.

ampl: include MOO_test.run
MINOS 5.51: ignoring integrality of 40 variables
MINOS 5.51: optimal solution found.
21 iterations, objective 0.3333333333
Nonlin evals: obj = 3, grad = 2.
load_factor = 0.333333
:   pc    pd         uc           ud        SOC       :=
1    .     .          .            .      45
2    0   15      0             1          41.0526
3    0   15     -3.26667e-12   1          37.1053
4    0   15     -3.26667e-12   1          33.1579
5    0   15     -3.26667e-12   1          29.2105
6    0   15     -3.26667e-12   1          25.2632
7    0   15     -3.26667e-12   1          21.3158
8    0   15     -3.26667e-12   1          17.3684
9    0   15     -3.26667e-12   1          13.4211
10   0   15     -3.26667e-12   1           9.47368
11   0   15     -3.26667e-12   1           5.52632
12   0    5.8   -3.26667e-12   0.386667    4
13   0    0      0             0           4
14   0    0      0             0           4
15   0    0      0             0           4
16   0    0      0             0           4
17   0    0      0             0           4
18   0    0      0             0           4
19   0    0      0             0           4
20   0    0      0             0           4
21   0    0      0             0           4
;

I have also tried solving it using neo-server under mixed integer nonlinearly constrained optimization solved using BARON with AMPL input.

*************************************************************
NEOS Server Version 5.0
Job# : 5734136
Password : TUiNKvnq
Solver : minco:BARON:AMPL
Start : 2017-12-04 20:55:08
Host : NEOS HTCondor Pool
Disclaimer:
This information is provided without any express or
implied warranty. In particular, there is no warranty
of any kind concerning the fitness of this
information for any particular purpose.
*************************************************************
No results yet. Try reloading page later.

I have previously solved model with a linear objective function without any problem. 

--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.

MOO.dat (681 bytes) Download Attachment
MOO_APL.mod (1K) Download Attachment
MOO_test.run (282 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: [AMPL 15299] Nonlinear mixed integer programming constraint violation

Robert Fourer-2
Add "option solver baron;" before "solve;".  
The NEOS Server inserts this statement automatically when you ask it to solve with BARON.

Bob Fourer
[hidden email]

=======

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Monday, December 4, 2017 9:09 PM
To: AMPL Modeling Language
Subject: [AMPL 15296] Nonlinear mixed integer programming constraint violation

I have been trying to solve an energy storage scheduling problem formulated in nonlinear mixed integer programming.

From the model, uc and ud are declared as an integer. However, when I solved it using AMPL IDE without specifying any solver, the results violates my constraints.

ampl: include MOO_test.run
MINOS 5.51: ignoring integrality of 40 variables
MINOS 5.51: optimal solution found.
21 iterations, objective 0.3333333333
Nonlin evals: obj = 3, grad = 2.
load_factor = 0.333333
:   pc    pd         uc           ud        SOC       :=
1    .     .          .            .      45
2    0   15      0             1          41.0526
3    0   15     -3.26667e-12   1          37.1053
4    0   15     -3.26667e-12   1          33.1579
5    0   15     -3.26667e-12   1          29.2105
6    0   15     -3.26667e-12   1          25.2632
7    0   15     -3.26667e-12   1          21.3158
8    0   15     -3.26667e-12   1          17.3684
9    0   15     -3.26667e-12   1          13.4211
10   0   15     -3.26667e-12   1           9.47368
11   0   15     -3.26667e-12   1           5.52632
12   0    5.8   -3.26667e-12   0.386667    4
13   0    0      0             0           4
14   0    0      0             0           4
15   0    0      0             0           4
16   0    0      0             0           4
17   0    0      0             0           4
18   0    0      0             0           4
19   0    0      0             0           4
20   0    0      0             0           4
21   0    0      0             0           4
;

I have also tried solving it using neo-server under mixed integer nonlinearly constrained optimization solved using BARON with AMPL input.

.......


--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [AMPL 15310] Nonlinear mixed integer programming constraint violation

t.t.teo
Thanks Robert!

On Tuesday, December 5, 2017 at 1:56:20 PM UTC+8, Robert Fourer wrote:
Add "option solver baron;" before "solve;".  
The NEOS Server inserts this statement automatically when you ask it to solve with BARON.

Bob Fourer
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="H0wss45wAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">am...@...

=======

From: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="H0wss45wAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">am...@... [mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="H0wss45wAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">am...@...] On Behalf Of <a href="javascript:" target="_blank" gdf-obfuscated-mailto="H0wss45wAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">t.t...@...
Sent: Monday, December 4, 2017 9:09 PM
To: AMPL Modeling Language
Subject: [AMPL 15296] Nonlinear mixed integer programming constraint violation

I have been trying to solve an energy storage scheduling problem formulated in nonlinear mixed integer programming.

From the model, uc and ud are declared as an integer. However, when I solved it using AMPL IDE without specifying any solver, the results violates my constraints.

ampl: include MOO_test.run
MINOS 5.51: ignoring integrality of 40 variables
MINOS 5.51: optimal solution found.
21 iterations, objective 0.3333333333
Nonlin evals: obj = 3, grad = 2.
load_factor = 0.333333
:   pc    pd         uc           ud        SOC       :=
1    .     .          .            .      45
2    0   15      0             1          41.0526
3    0   15     -3.26667e-12   1          37.1053
4    0   15     -3.26667e-12   1          33.1579
5    0   15     -3.26667e-12   1          29.2105
6    0   15     -3.26667e-12   1          25.2632
7    0   15     -3.26667e-12   1          21.3158
8    0   15     -3.26667e-12   1          17.3684
9    0   15     -3.26667e-12   1          13.4211
10   0   15     -3.26667e-12   1           9.47368
11   0   15     -3.26667e-12   1           5.52632
12   0    5.8   -3.26667e-12   0.386667    4
13   0    0      0             0           4
14   0    0      0             0           4
15   0    0      0             0           4
16   0    0      0             0           4
17   0    0      0             0           4
18   0    0      0             0           4
19   0    0      0             0           4
20   0    0      0             0           4
21   0    0      0             0           4
;

I have also tried solving it using neo-server under mixed integer nonlinearly constrained optimization solved using BARON with AMPL input.

.......


--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.