Maybe you should take a look at the documentation here to learn what this product is exactly.
Among other things, it contains
-
Two very powerful engines to solve mixed integer programs and constraint programming problems.
-
Interactive command line tools to interact with these engines.
-
Libraries for various programming languages to interact with these engines.
-
A modeling language (called "OPL") that provides simple ways to define models, consume data and produce results.
-
An IDE that makes using OPL very easy.
-
A scripting language (called "OPLScript") that makes OPL more dynamic (you can programatically modify models, create data, process results, ...). That scripting language is based on JavaScript.
Thanks to item 6, you could implement something like the Silver-Meal heuristic in OPLScript but I am pretty sure that this is not what you want to do. Coding this in another programming language would probably be more efficient.
The question is: if you have CPLEX at your disposal and want to use it, why do you want to do something like the Silver-Meal heuristic? Why not just setup the model and have CPLEX solve it for you?
Note that you can use CPLEX as a heuristic as well: you can have it solve heuristic relaxations of your model, you can have stopping criteria that stop with solutions that have not yet proven to be optimal, ...
Another use for CPLEX in heuristics is as a sub-routine of more complex heuristics. Such subroutines find (near-)optimal solutions to subproblems that must be solved within heuristics.
You may also want to take a look at the various examples shipped with CPLEX, in particular at the OPL examples. In your case I would start with opl/examples/opl/models/SupplyChain/supply.mod.
You can even browse through these examples by category by starting the IDE, then choosing File->Import->Example... and then clicking on "IBM ILOG OPL Examples".
#CPLEXOptimizers#DecisionOptimization