Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Is there a version of SearchPhases.java in C#?

    Posted 04/28/21 08:06 PM
    Is there a version of SearchPhases.java written in C#?  There are C# interfaces like IIntVarEval but it's unclear how to use them.

    ------------------------------
    Donovan Hare
    ------------------------------

    #DecisionOptimization


  • 2.  RE: Is there a version of SearchPhases.java in C#?

    Posted 04/29/21 11:23 AM
    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 in the C# API of CP Optimizer (see CP Optimizer User's Manual).
    I hope this helps.

    ------------------------------
    Christiane Bracchi
    ------------------------------



  • 3.  RE: Is there a version of SearchPhases.java in C#?

    Posted 04/29/21 11:43 AM
    I have used the basic ones for a long time now but came across this in the reference manual which I tried to make work.  "It is possible also to define your own evaluator, which makes it possible to define an evaluation of the assignment of an integer variable to a value."  How is this last statement true then?
    Thanks


    CP Optimizer .NET Languages API
    IIntValueEval Interface
    Members See Also 
    An evaluator of integer values is an object that is used by value selectors (IValueSelector) to define instantiation strategies.

    Namespace: ILOG.CP
    Assembly: ILOG.CP (in ILOG.CP.dll)

    Syntax

    C#
    public interface IIntValueEval
    Visual Basic
    Public Interface IIntValueEval

    Remarks

    There are many predefined evaluators of integer values available via the CP class. It is possible also to define your own evaluator, which makes it possible to define an evaluation of the assignment of an integer variable to a value.

    See Also



    ------------------------------
    Donovan Hare
    ------------------------------



  • 4.  RE: Is there a version of SearchPhases.java in C#?

    Posted 04/29/21 11:58 AM

    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
    ------------------------------