List of Contributions

Christiane Bracchi

Contact Details

My Content

1 to 20 of 35 total
Posted By Christiane Bracchi Fri March 29, 2024 11:32 AM
Found In Egroup: Decision Optimization
\ view thread
Hello Miguel, You should take a look at this discussion that might help you. Regards, ------------------------------ Christiane Bracchi ------------------------------
Posted By Christiane Bracchi Mon March 18, 2024 10:46 AM
Found In Egroup: Decision Optimization
\ view thread
Hello Rustam, Unfortunately, you've found a bug in the OPL. We are working to fix it. We are very sorry for the inconvenience. In the meantime you can use the following workaround. range steps1 = 0..4; int k[i in steps1]= i*period_size; ... alwaysConstant(my_state_function, k[h], k[h+1]); I hope ...
Posted By Christiane Bracchi Tue December 28, 2021 01:29 PM
Found In Egroup: Decision Optimization
\ view thread
Hello Javier, IloFunction was in ILOG Solver API which isn't available any more How would you have liked to use it? Regards, ------------------------------ Christiane Bracchi ------------------------------
Posted By Christiane Bracchi Wed July 21, 2021 11:58 AM
Found In Egroup: Decision Optimization
\ view thread
Hello Sebastian, A way to improve your first proposal is using StartingPoint. So you would have something like: minimize f1 get the value F1 (objective) and solution S (some variables) add a constraint f1 =1 ) add starting point S (set_starting_point(S)) minimize f2​ See set_starting_point. ...
Posted By Christiane Bracchi Tue July 20, 2021 11:49 AM
Found In Egroup: Decision Optimization
\ view thread
Hello Sebastian, Sure what you suggested is possible, but why don't use minimize_static_lex? What is your need which wouldn't be addressed by multi-criteria objectives? Regards, ------------------------------ Christiane Bracchi ------------------------------
Posted By Christiane Bracchi Mon July 19, 2021 01:46 PM
Found In Egroup: Decision Optimization
\ view thread
Hello, Depending on your needs, there are different ways to do. Here are 2 of those: You can define and populate the array varValues in the post-processing part of the model then use theModel.varvalues in the main function. See the attached files opl.mod/iterate.mod. Or you can define the ...
Posted By Christiane Bracchi Mon July 19, 2021 12:09 PM
Found In Egroup: Decision Optimization
\ view thread
Hello, You might have a look to the search log documentation. I hope it helps, ------------------------------ Christiane Bracchi ------------------------------
Posted By Christiane Bracchi Mon July 19, 2021 12:01 PM
Found In Egroup: Decision Optimization
\ view thread
Hi David, There isn't a generic answer to your question. The consistency level depends on the type of the constraint and the most often can be be leveled up or down using Inference levels. You would find more information here. Regards, ------------------------------ Christiane Bracchi --- ...
Posted By Christiane Bracchi Fri July 16, 2021 12:34 PM
Found In Egroup: Decision Optimization
\ view thread
Hello Brandon, I think Alex's answer in the other thread answered this question, did it? Regards, ------------------------------ Christiane Bracchi ------------------------------
Posted By Christiane Bracchi Wed July 14, 2021 12:42 PM
Found In Egroup: Decision Optimization
\ view thread
Hello, You have to call postProcess. if(cplex.solve())( writeln(cplex.getObjValue()); theModel.postProcess(); ) And there is an error in iterate.mod: Replace for(var i in thisOplModel.NOVARS)( by for(var i = 1; i <= thisOplModel.NOVARS; i++)( I hope this helps, ------ ...
Posted By Christiane Bracchi Tue July 13, 2021 12:53 PM
Found In Library: Decision Optimization
#DecisionOptimization
Posted By Christiane Bracchi Tue July 13, 2021 12:53 PM
Found In Egroup: Decision Optimization
\ view thread
Hello, You should use ".dat" files which must follow the right format. For example, here is what can be declared in .mod file: int k = ...; float d = ...; (int) is = ...; string s = ...; (string) ss = ...; int a[1..2] = ...; int a2[1..2][1..3] = ...;​ and the corresponding values in ...
Posted By Christiane Bracchi Tue July 13, 2021 11:10 AM
Found In Egroup: Decision Optimization
\ view thread
Hello, A way to do that is: First, convert the Starting Point to a set of constraints and add it to the model. Then use the conflict refiner. I hope this helps, ------------------------------ Christiane Bracchi ------------------------------
Posted By Christiane Bracchi Mon July 12, 2021 01:52 PM
Found In Egroup: Decision Optimization
\ view thread
Hello Andrew, You are right, the meaning of the keyword "in" is the same in both cases but the syntax is different. In the declaration part "in" requires a range, for example: dvar int x in 1..10;​ And in the constraint part it requires a set, for example: x in (2,5,7); or x in asSet(2..6); ...
Posted By Christiane Bracchi Mon July 12, 2021 01:02 PM
Found In Egroup: Decision Optimization
\ view thread
Hello, You can find different sample of flow control in scripting part in the OPL distribution here or here. Below is also a little sample where you can see how to generate file names, read and write files, retrieve different solving info and results. I hope this helps, main ( var modelFile ...
Posted By Christiane Bracchi Fri July 09, 2021 11:00 AM
Found In Egroup: Decision Optimization
\ view thread
Hello Andrew, In addition to Alex's answer I would like to give you few other little tips. First, in a similar way to what Alex suggested, you can be more precise in constraining the use of activities. For example: int activitiesCard[Activities] = ...; ... forall(a in Activities) count(all(n ...
Posted By Christiane Bracchi Thu April 29, 2021 11:58 AM
Found In Egroup: Decision Optimization
\ view thread
This is an error into the documentation. As mentioned above, at this time, custom evaluators are not available in the C# API of CP Optimizer. They are available in C++ and Java API. ------------------------------ Christiane Bracchi ------------------------------
Posted By Christiane Bracchi Thu April 29, 2021 11:23 AM
Found In Egroup: Decision Optimization
\ view thread
Hello Donovan, You can find an example of how using SearchPhases here: CPLEX_Studio201/cpoptimizer/examples/src/csharp/Sports.cs. Several predefined evaluators exist in CP Optimizer, i.e: Simple variable selection or i.e.: Simple value selection, but at this time, custom evaluators are not available ...
Posted By Christiane Bracchi Fri February 26, 2021 04:43 AM
Found In Egroup: Decision Optimization
\ view thread
Yes I should have specified it, sorry for this lack of precision. ------------------------------ Christiane Bracchi ------------------------------