Your problem 2 was addressed here:
https://groups.google.com/d/msg/ampl/zrHLXvoYlGo/d0gPf5o0BQAJ
A separate reply to your problem 1 will be posted soon to this group.
--
Robert Fourer
am...@googlegroups.com
On Sun, Feb 24, 2019 at 6:00 PM UTC, Ampl Modeling Language <am...@googlegroups.com> wrote:
I done your algorithm, but I can't solve it. I attached screen of this error.
On Wed, Feb 27, 2019 at 4:26 PM UTC, Ampl Modeling Language <am...@googlegroups.com> wrote:
I done your tips, but shows me this error:
ampl: model 'C:\Users\Ahmad\Desktop\code\OperFin.mod';
ampl: data 'C:\Users\Ahmad\Desktop\code\OperFebCL - Copy.dat';
ampl: solve;
Error executing "solve" command:
error processing param PN:
144 invalid subscripts discarded:
PN[1,'TA5X6']
PN[1,'TA5X5']
PN[1,'TA4X5']
and 141 more.
Error executing "solve" command:
error processing param PC:
432 invalid subscripts discarded:
PC[1,'TA5X6','CH']
PC[1,'TA5X5','CH']
PC[1,'TA4X5','CH']
and 429 more.
Error executing "solve" command:
error processing param ES:
600 invalid subscripts discarded:
ES[1,'T1',1]
ES[1,'T2',1]
ES[1,'T3',1]
and 597 more.
Error executing "solve" command:
error processing param SH:
600 invalid subscripts discarded:
SH[1,'T1',1]
SH[1,'T2',1]
SH[1,'T3',1]
and 597 more.
Error executing "solve" command:
error processing param Freq:
10 invalid subscripts discarded:
Freq[1]
Freq[2]
Freq[3]
and 7 more.
Error executing "solve" command:
error processing param VG:
240 invalid subscripts discarded:
VG[1,'T1','TA5X6']
VG[1,'T2','TA5X6']
VG[1,'T3','TA5X6']
and 237 more.
Error executing "solve" command:
error processing param VQ:
80 invalid subscripts discarded:
VQ[1,'TA','Q2']
VQ[1,'CA','Q2']
VQ[2,'TA','Q2']
and 77 more.
Error executing "solve" command:
error processing param COL:
96 invalid subscripts discarded:
COL[1,'TA','Q2']
COL[1,'CA','Q2']
COL[2,'TA','Q2']
and 93 more.
Error executing "solve" command:
error processing param PROB:
96 invalid subscripts discarded:
PROB[1,'TA','Q2']
PROB[1,'CA','Q2']
PROB[2,'TA','Q2']
and 93 more.
Error executing "solve" command:
error processing param LAH:
12 invalid subscripts discarded:
LAH[1]
LAH[2]
LAH[3]
In your data file, you cannot write set expressions like this:
set DAYD := 1..18;
set DAYH := 1..12;
set Tm := 1..14;
set SCHE:=1..10;
These lead to unexpected results, as explained in this FAQ entry: https://ampl.com/faqs/why-does-set-s-50-70-give-me-a-set-of-only-3-members/. Instead you should write something like this in your model:
param nDAYD; set DAYD := 1..nDAYD;
param nDAYH; set DAYH := 1..nDAYH;
param nTm; set Tm := 1..nTm;
param nSCHE; set SCHE:=1..nSCHE;
and then in your data file you should remove the entries for DAYD, DAYH, Tm, and SCHE, and replace them by these param settings:
param nDAYD := 18;
param nDAYH := 12;
param nTm := 14;
param nSCHE := 10;
It is not necessary to define DAYD and DAYH as ordered. Instead of first(DAYD) or first(DAYH) you can write 1. Instead of last(DAYD) and last(DAYH) you can write nDAYD and nDAYH.
On Wed, Feb 27, 2019 at 4:26 PM UTC, Ampl Modeling Language <am...@googlegroups.com> wrote:
I done your algorithm, but I can't solve it. I attached screen of this error.
On Wed, Feb 27, 2019 at 4:26 PM UTC, Ampl Modeling Language <am...@googlegroups.com> wrote:
I done your tips, but shows me this error:
ampl: model 'C:\Users\Ahmad\Desktop\code\OperFin.mod';
ampl: data 'C:\Users\Ahmad\Desktop\code\OperFebCL - Copy.dat';
ampl: solve;
Error executing "solve" command:
error processing param PN:
144 invalid subscripts discarded:
PN[1,'TA5X6']
PN[1,'TA5X5']
PN[1,'TA4X5']
and 141 more.
Error executing "solve" command:
error processing param PC:
432 invalid subscripts discarded:
PC[1,'TA5X6','CH']
PC[1,'TA5X5','CH']
PC[1,'TA4X5','CH']
and 429 more.
Error executing "solve" command:
error processing param ES:
600 invalid subscripts discarded:
ES[1,'T1',1]
ES[1,'T2',1]
ES[1,'T3',1]
and 597 more.
Error executing "solve" command:
error processing param SH:
600 invalid subscripts discarded:
SH[1,'T1',1]
SH[1,'T2',1]
SH[1,'T3',1]
and 597 more.
Error executing "solve" command:
error processing param Freq:
10 invalid subscripts discarded:
Freq[1]
Freq[2]
Freq[3]
and 7 more.
Error executing "solve" command:
error processing param VG:
240 invalid subscripts discarded:
VG[1,'T1','TA5X6']
VG[1,'T2','TA5X6']
VG[1,'T3','TA5X6']
and 237 more.
Error executing "solve" command:
error processing param VQ:
80 invalid subscripts discarded:
VQ[1,'TA','Q2']
VQ[1,'CA','Q2']
VQ[2,'TA','Q2']
and 77 more.
Error executing "solve" command:
error processing param COL:
96 invalid subscripts discarded:
COL[1,'TA','Q2']
COL[1,'CA','Q2']
COL[2,'TA','Q2']
and 93 more.
Error executing "solve" command:
error processing param PROB:
96 invalid subscripts discarded:
PROB[1,'TA','Q2']
PROB[1,'CA','Q2']
PROB[2,'TA','Q2']
and 93 more.
Error executing "solve" command:
error processing param LAH:
12 invalid subscripts discarded:
LAH[1]
LAH[2]
LAH[3]
How to run the commands directly in the AMPL prompt without using the IDE??
On Fri, Mar 1, 2019 at 4:46 PM UTC, Ampl Modeling Language <am...@googlegroups.com> wrote:
On Fri, Mar 1, 2019 at 4:45 PM UTC, Ampl Modeling Language <am...@googlegroups.com> wrote:I done and showed me:
ampl: model 'C:\Users\Ahmad\Desktop\code\OperFin.mod';
ampl: data 'C:\Users\Ahmad\Desktop\code\OperFebCL - Copy.dat';
ampl: solve;
Error executing "solve" command:
error processing param PN:
18 invalid subscripts discarded:
PN[1,'C1LX']
PN[2,'C1LX']
PN[3,'C1LX']
and 15 more.
Error executing "solve" command:
error processing param PC:
54 invalid subscripts discarded:
PC[1,'C1LX','CH']
PC[2,'C1LX','CH']
PC[3,'C1LX','CH']
and 51 more.
Error executing "solve" command:
error processing param DW:
54 invalid subscripts discarded:
DW[1,'C1LX','CD']
DW[2,'C1LX','CD']
DW[3,'C1LX','CD']
and 51 more.
Error executing "solve" command:
error processing param DM:
18 invalid subscripts discarded:
DM[1,'C1LX']
DM[2,'C1LX']
DM[3,'C1LX']
and 15 more.
Error executing "solve" command:
error processing objective total_revenue:
no value for PC[1,'C1XL','CD']
On Wed, Feb 27, 2019 at 7:07 PM UTC, AMPL Google Group <am...@googlegroups.com> wrote:
Regarding the messages "The AMPL Process has terminated", please run the commands directly in the AMPL prompt without using the IDE and send us screenshots of the output.
--
Filipe Brandão
am...@googlegroups.com
You need to run cmd.exe and then run "cd complete/path/to/the/folder/containing/the/ampl/executable". Once you are in the folder containing ampl.exe you can run it by typing "ampl.exe".
On Fri, Mar 1, 2019 at 4:46 PM UTC, Ampl Modeling Language <am...@googlegroups.com> wrote:
How to run the commands directly in the AMPL prompt without using the IDE??
On Fri, Mar 1, 2019 at 4:46 PM UTC, Ampl Modeling Language <am...@googlegroups.com> wrote:
On Fri, Mar 1, 2019 at 4:45 PM UTC, Ampl Modeling Language <am...@googlegroups.com> wrote:I done and showed me:
ampl: model 'C:\Users\Ahmad\Desktop\code\OperFin.mod';
ampl: data 'C:\Users\Ahmad\Desktop\code\OperFebCL - Copy.dat';
ampl: solve;
Error executing "solve" command:
error processing param PN:
18 invalid subscripts discarded:
PN[1,'C1LX']
PN[2,'C1LX']
PN[3,'C1LX']
and 15 more.
Error executing "solve" command:
error processing param PC:
54 invalid subscripts discarded:
PC[1,'C1LX','CH']
PC[2,'C1LX','CH']
PC[3,'C1LX','CH']
and 51 more.
Error executing "solve" command:
error processing param DW:
54 invalid subscripts discarded:
DW[1,'C1LX','CD']
DW[2,'C1LX','CD']
DW[3,'C1LX','CD']
and 51 more.
Error executing "solve" command:
error processing param DM:
18 invalid subscripts discarded:
DM[1,'C1LX']
DM[2,'C1LX']
DM[3,'C1LX']
and 15 more.
Error executing "solve" command:
error processing objective total_revenue:
no value for PC[1,'C1XL','CD']
On Wed, Feb 27, 2019 at 7:07 PM UTC, AMPL Google Group <am...@googlegroups.com> wrote:
Regarding the messages "The AMPL Process has terminated", please run the commands directly in the AMPL prompt without using the IDE and send us screenshots of the output.
--
Filipe Brandão
am...@googlegroups.com
Job# : 6651309 Password : WyDoNFcH Solver : lp:CPLEX:AMPL Start : 2019-03-04 23:22:00 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." what should I do to solve my problem?
You right about it, when I run solve button, shows me:
"Sorry, a demo licenses for AMPL is limited to 500 variables
and 500 constraints and objectives (after presolve) for linear
problems. You have 193390 variables, 176235 constraints, and 1 objective."
I upload these files to NEOS and run it, and shows me:
" NEOS Server Version 5.0
Job# : 6651309
Password : WyDoNFcH
Solver : lp:CPLEX:AMPL
Start : 2019-03-04 23:22:00
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."
what should I do to solve my problem?
On Sun, Mar 3, 2019 at 5:46 AM UTC, Ampl Modeling Language <am...@googlegroups.com> wrote:
On Sun, Mar 3, 2019 at 5:46 AM UTC, Ampl Modeling Language <am...@googlegroups.com> wrote:
I don't understand completely, Are you meaning it?
On Sun, Mar 3, 2019 at 1:00 AM UTC, AMPL Google Group <am...@googlegroups.com> wrote:
In your data for set PROD, you have a member C1XL; but in the data for some of your params you call it C1LX. Hence you see many "invalid subscript" messages involving C1LX.
--
Robert Fourer
am...@googlegroups.com
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. ************************************************************* amplin, line 1360 (offset 39193): missing ' context: >>> option cplex_options 'mipdisplay=2 time=3600"; <<< pdisplay=2 time=3600"; solve; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Checking ampl.mod for cplex_options... Checking ampl.com for cplex_options... Executing AMPL. processing data. processing commands. Executing on prod-exec-2.neos-server.org Error (2) in /opt/ampl/ampl -R amplin
I wrote "option cplex_options 'mipdisplay=2 time=3600';" in command.run file and upload it but no solved and showed me previous error that send you,what is your main mean?
On Thu, Mar 7, 2019 at 4:02 PM UTC, AMPL Google Group <am...@googlegroups.com> wrote:
Sorry, a string should not start with ' and end with " -- try:
option cplex_options 'mipdisplay=2 time=3600';
--
Robert Fourer
am...@googlegroups.com