List of Contributions

ALEX FLEISCHER

Contact Details

My Content

1 to 20 of 50+ total
Posted By ALEX FLEISCHER Jan 4, 2021 8:40 AM
Found In Egroup: Decision Optimization
\ view thread
Hi using CP; range sequences = 1..2; range intervals = 1..10; int charac[intervals]=[0 ,1 ,0, 0 ,0 ,0 ,0 ,0, 0, 1]; dvar interval intv[i in intervals][a in sequences] optional size 1; dvar sequence s[a in sequences] in all(i in intervals) intv[i][a]; cumulFunction f[a in sequences]=sum(i in intervals) ...
Posted By ALEX FLEISCHER Dec 31, 2020 4:33 AM
Found In Egroup: Decision Optimization
\ view thread
Hi, if you label your demand constraint forall(o in ORDER,t in PRODUCT:Demand[t][o]>0)( ctDemand:S[t][o] - Y[t][o]*Demand[t][o] >= 0; )​ then you ll get which demand cannot be met in the relaxation tab ------------------------------ [Alex] [Fleischer] [EMEA CPLEX Optimization Technical Sales] ...
Posted By ALEX FLEISCHER Dec 31, 2020 3:55 AM
Found In Egroup: Decision Optimization
\ view thread
Hi using CP; range sequences = 1..2; range intervals = 1..10; int charac[intervals]=[0 ,1 ,0, 0 ,0 ,0 ,0 ,0, 0, 1]; dvar interval intv[i in intervals][a in sequences] size 1; dvar sequence s[a in sequences] in all(i in intervals) intv[i][a]; cumulFunction f[a in sequences]=sum(i in intervals) ...
Posted By ALEX FLEISCHER Dec 30, 2020 2:48 AM
Found In Egroup: Data and AI Learning Group
\ view thread
Hi, @Sajan Kuttappa wrote this a few months ago and specific to Covid I shared that regards ------------------------------ [Alex] [Fleischer] [EMEA CPLEX Optimization Technical Sales] [IBM] ------------------------------
Posted By ALEX FLEISCHER Dec 29, 2020 2:56 AM
Found In Egroup: Decision Optimization
\ view thread
Hi Is it correct that there is no MATLAB interface for 20.1.0.0? ==> Yes If so, are there any plans to add it at a later date, or is 12.10 the end of the line for MATLAB interface for CPLEX? ==> Do not hesitate to log a wish in Aha to have this back : https://ibm-data-and-ai.ideas.ah ...
Posted By ALEX FLEISCHER Dec 18, 2020 5:33 AM
Found In Egroup: Planning Analytics
\ view thread
Thanks for organizing all this and all presentations https://www.linkedin.com/posts/matekiss_covid-planninganalytics-tm1-activity-6742389806698913792-SgCo ------------------------------ [Alex] [Fleischer] [EMEA CPLEX Optimization Technical Sales] [IBM] ------------------------------
Posted By ALEX FLEISCHER Dec 15, 2020 7:08 AM
Found In Egroup: Decision Optimization
\ view thread
Hi, how would I read from an Excel spreadsheet on non Windows platforms ? I would use an external program call to some python code I would generate from OPL. See example at https://github.com/AlexFleischerParis/oplexcel/blob/main/readwithoutsheetread.mod The input is Which generates python code ...
Posted By ALEX FLEISCHER Dec 14, 2020 11:58 AM
Found In Egroup: Decision Optimization
\ view thread
Hi, let me give you a tiny example in python docplex: from docplex.mp.model import Model tm = Model(name="MyModel") x = tm.continuous_var() y = tm.continuous_var() tm.add_constraint(2*x+y <= 8) tm.add_constraint(x+2*y <= 6) expr = 3*x+2*y tm.maximize(expr) result = tm.solve() cpx = tm.get_e ...
Posted By ALEX FLEISCHER Dec 14, 2020 10:13 AM
Found In Egroup: Decision Optimization
\ view thread
Hi in the IDE and in scripting you have access to some sensitivity info. If you need more, you may use an external java call as suggested at https://community.ibm.com/community/user/datascience/communities/community-home/digestviewer/viewthread?MessageKey=b87c6329-72d7-4aaa-ae96-74ac82a33b6d&Com ...
Posted By ALEX FLEISCHER Dec 9, 2020 1:26 AM
Found In Egroup: Decision Optimization
\ view thread
Hi from docplex.mp.model import Model mdl = Model(name='qpex1') #decision variables x = (b: mdl.continuous_var(0,40,name="x"+str(b)) for b in range(0,3)) # Constraint mdl.add_constraint( - x[0] + x[1] + x[2] <= 20, 'ct1') mdl.add_constraint(x[0] - 3 * x[1] + x[2] <= 30,'ct2') mdl.add_constraint(x[0] ...
Posted By ALEX FLEISCHER Dec 9, 2020 1:23 AM
Found In Egroup: Decision Optimization
\ view thread
Hi at https://pypi.org/project/docplex/ Dec 9 2020 you can download docplex 2.18.200 ------------------------------ [Alex] [Fleischer] [EMEA CPLEX Optimization Technical Sales] [IBM] ------------------------------
Posted By ALEX FLEISCHER Dec 7, 2020 2:51 AM
Found In Egroup: Decision Optimization
\ view thread
Hi, you can set the log file in the settings editor. (.ops files) ------------------------------ [Alex] [Fleischer] [EMEA CPLEX Optimization Technical Sales] [IBM] ------------------------------
Posted By ALEX FLEISCHER Dec 2, 2020 4:49 AM
Found In Egroup: Decision Optimization
\ view thread
Hi, "So my question is, how can I get the tuple schema defined in the model before I read any data and generate the model?" ==> Can you try to use a dummy .dat so that you can call generate ? For reading json, have you tried a converter from json to dat like Turn json into dat files in https://ww ...
Posted By ALEX FLEISCHER Dec 1, 2020 9:12 AM
Found In Egroup: Decision Optimization
\ view thread
Hi could https://stackoverflow.com/questions/65024457/cplexapi-1-4-0-installiation-on-r4-0-3/65092088#65092088 help ? regards ------------------------------ [Alex] [Fleischer] [EMEA CPLEX Optimization Technical Sales] [IBM] ------------------------------
Posted By ALEX FLEISCHER Nov 30, 2020 12:40 PM
Found In Egroup: Decision Optimization
\ view thread
Hi, your .mod and .dat have some issues. Let me fix that and convert the duedates: .mod // MOD: int nbJobs = ...; int nbMchs = ...; int nbOps = ...; int M=...; range Jobs = 1..nbJobs; range Mchs = 1..nbMchs; range ops = 1..nbOps; // Mchs is used both to index machines and operation position in job ...
Posted By ALEX FLEISCHER Nov 30, 2020 9:59 AM
Found In Egroup: Decision Optimization
\ view thread
Hi tuple t ( int a; string b; ) (t) tupleSet=(<1,"2">); execute ( var nbFields=tupleSet.getNFields(); for(var j=0;j<nbFields;j++) write(tupleSet.getFieldName(j),";"); writeln(); ) ​ gives a;b; and tuple t ( int a; string b; ) (t) tupleSet=(<1,"2">); execute ...
Posted By ALEX FLEISCHER Nov 30, 2020 6:19 AM
Found In Egroup: Decision Optimization
\ view thread
Hi, if your model is scheduling why do you prefer to rely on MIP ? Anyway the change of dates to integer work the same string horizonstart="01/01/2020"; string duedate="11/05/2020"; range horizon=0..365; int duedateday; execute ( var hs=new Date(horizonstart); var d=new Date(duedate); duedate ...
Posted By ALEX FLEISCHER Nov 30, 2020 5:20 AM
Found In Egroup: Decision Optimization
\ view thread
Hi, in OPL scripting you could use the object Date: using CP; string horizonstart="01/01/2020"; string duedate="11/05/2020"; range horizon=0..365; int duedateday; execute ( var hs=new Date(horizonstart); var d=new Date(duedate); duedateday=Opl.ftoi(Opl.round((d-hs)/1000/3600/24)); ) // Suppose ...
Posted By ALEX FLEISCHER Nov 30, 2020 1:21 AM
Found In Egroup: Decision Optimization
\ view thread
Hi have you tried pip install wikipedia​ ? regards ------------------------------ [Alex] [Fleischer] [EMEA CPLEX Optimization Technical Sales] [IBM] ------------------------------
Posted By ALEX FLEISCHER Nov 27, 2020 8:31 AM
Found In Egroup: Decision Optimization
\ view thread
In https://www.linkedin.com/pulse/making-decision-optimization-simple-alex-fleischer/ I added a line for you array variable indexer size - 3 ways : union , tuple set , decision expression regards ------------------------------ [Alex] [Fleischer] [EMEA CPLEX Optimization Technical Sales] [IBM] ------ ...