# List of Contributions

## My Content

1 to 20 of 50+ total

### RE: Sequence of an interval?

Posted By ALEX FLEISCHER Jan 4, 2021 8:40 AM
Found In Egroup: Decision Optimization
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) ...

### RE: Relaxed solution

Posted By ALEX FLEISCHER Dec 31, 2020 4:33 AM
Found In Egroup: Decision Optimization
Hi, if you label your demand constraint forall(o in ORDER,t in PRODUCT:Demand[t][o]&gt;0)( ctDemand:S[t][o] - Y[t][o]*Demand[t][o] &gt;= 0; )​ then you ll get which demand cannot be met in the relaxation tab ------------------------------ [Alex] [Fleischer] [EMEA CPLEX Optimization Technical Sales] ...

### RE: Sequence of an interval?

Posted By ALEX FLEISCHER Dec 31, 2020 3:55 AM
Found In Egroup: Decision Optimization
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) ...

### RE: How AI be helpful in Healthcare Sector

Posted By ALEX FLEISCHER Dec 30, 2020 2:48 AM
Found In Egroup: Data and AI Learning Group
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] ------------------------------

### RE: No MATLAB Interface for 20.1?

Posted By ALEX FLEISCHER Dec 29, 2020 2:56 AM
Found In Egroup: Decision Optimization
Hi Is it correct that there is no MATLAB interface for 20.1.0.0? ==&gt; 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? ==&gt; Do not hesitate to log a wish in Aha to have this back : https://ibm-data-and-ai.ideas.ah ...

### RE: IBM Planning Analytics Tech Talks

Posted By ALEX FLEISCHER Dec 18, 2020 5:33 AM
Found In Egroup: Planning Analytics
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] ------------------------------

### RE: Accessing Spreadsheet in LINUX (CPLEX)

Posted By ALEX FLEISCHER Dec 15, 2020 7:08 AM
Found In Egroup: Decision Optimization
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 ...

### RE: Sensitivity analysis in OPL

Posted By ALEX FLEISCHER Dec 14, 2020 11:58 AM
Found In Egroup: Decision Optimization
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 &lt;= 8) tm.add_constraint(x+2*y &lt;= 6) expr = 3*x+2*y tm.maximize(expr) result = tm.solve() cpx = tm.get_e ...

### RE: Sensitivity analysis in OPL

Posted By ALEX FLEISCHER Dec 14, 2020 10:13 AM
Found In Egroup: Decision Optimization
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&amp;Com ...

### RE: Quad Constraints in DOCplex 2.11

Posted By ALEX FLEISCHER Dec 9, 2020 1:26 AM
Found In Egroup: Decision Optimization
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] &lt;= 20, 'ct1') mdl.add_constraint(x[0] - 3 * x[1] + x[2] &lt;= 30,'ct2') mdl.add_constraint(x[0] ...

### RE: DOCplex in Edu version is still 2.11.176

Posted By ALEX FLEISCHER Dec 9, 2020 1:23 AM
Found In Egroup: Decision Optimization
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] ------------------------------

### RE: Where to find cplex log file

Posted By ALEX FLEISCHER Dec 7, 2020 2:51 AM
Found In Egroup: Decision Optimization
Hi, you can set the log file in the settings editor. (.ops files) ------------------------------ [Alex] [Fleischer] [EMEA CPLEX Optimization Technical Sales] [IBM] ------------------------------

### RE: Tuple Schema

Posted By ALEX FLEISCHER Dec 2, 2020 4:49 AM
Found In Egroup: Decision Optimization
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?" ==&gt; 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 ...

### RE: Using Rcplex on CPLEX (studio) 129 or later

Posted By ALEX FLEISCHER Dec 1, 2020 9:12 AM
Found In Egroup: Decision Optimization
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] ------------------------------

### RE: How to use duedates in opl

Posted By ALEX FLEISCHER Nov 30, 2020 12:40 PM
Found In Egroup: Decision Optimization
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 ...

### RE: Tuple Schema

Posted By ALEX FLEISCHER Nov 30, 2020 9:59 AM
Found In Egroup: Decision Optimization
Hi tuple t ( int a; string b; ) (t) tupleSet=(&lt;1,"2"&gt;); execute ( var nbFields=tupleSet.getNFields(); for(var j=0;j&lt;nbFields;j++) write(tupleSet.getFieldName(j),";"); writeln(); ) ​ gives a;b; and tuple t ( int a; string b; ) (t) tupleSet=(&lt;1,"2"&gt;); execute ...

### RE: How to use duedates in opl

Posted By ALEX FLEISCHER Nov 30, 2020 6:19 AM
Found In Egroup: Decision Optimization
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 ...

### RE: How to use duedates in opl

Posted By ALEX FLEISCHER Nov 30, 2020 5:20 AM
Found In Egroup: Decision Optimization
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 ...

### RE: how can I use Wikipedia-api

Posted By ALEX FLEISCHER Nov 30, 2020 1:21 AM
Found In Egroup: Decision Optimization