Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Boolean variable set in C#

    Posted 02/11/14 03:03 PM

    Originally posted by: kendong


    Can we set the Boolean variable as following in C# with cplex:

    When the value is between 0.99995 and 1.0 during branching (for example), we treat is as 1 directly.  The same as we treat the variable as 0, if the value of it is between 0 and 0.0005.

    Thanks so much.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Boolean variable set in C#

    Posted 02/12/14 05:20 AM

    You can use a BranchCallback to change the bounds of a variable.

    With a branch callback you can either force CPLEX to branch on a certain variable (in your case setting it to 0 in one branch and setting it to 1 in the other branch) or even fix the variable (by specifying identical bounds) for all nodes in the subtree rooted at the current node.


    #DecisionOptimization
    #OPLusingCPLEXOptimizer