Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)

src/c/o/coinor.grumpy-0.6.1/test/test_strategies.py   coinor.grumpy(Download)
from grumpy import MOST_FRACTIONAL, FIXED_BRANCHING, PSEUDOCOST_BRANCHING
# import searching strategies
from grumpy import DEPTH_FIRST, BEST_FIRST, BEST_ESTIMATE
import sys
import math
 
branch_strategy = [MOST_FRACTIONAL, FIXED_BRANCHING, PSEUDOCOST_BRANCHING]
search_strategy = [DEPTH_FIRST, BEST_FIRST, BEST_ESTIMATE]

src/c/o/coinor.grumpy-0.6.1/test/test_display.py   coinor.grumpy(Download)
 
'''
from grumpy import BBTree, PSEUDOCOST_BRANCHING, BEST_FIRST
import sys
 
    CONSTRAINTS, VARIABLES, OBJ, MAT, RHS = bt.GenerateRandomMIP(numVars=30, numCons=10, rand_seed = 0)
    bt.BranchAndBound(CONSTRAINTS, VARIABLES, OBJ, MAT, RHS,
                     branch_strategy = PSEUDOCOST_BRANCHING, search_strategy = BEST_FIRST,
                     display_interval = 4)
    #======== xdot display mode
    bt = BBTree(display='xdot')
    bt.BranchAndBound(CONSTRAINTS, VARIABLES, OBJ, MAT, RHS,
                     branch_strategy = PSEUDOCOST_BRANCHING, search_strategy = BEST_FIRST,
    bt = BBTree(display='pygame')
    bt.BranchAndBound(CONSTRAINTS, VARIABLES, OBJ, MAT, RHS,
                     branch_strategy = PSEUDOCOST_BRANCHING, search_strategy = BEST_FIRST,
                     display_interval = 4)
    #======== file display mode, with dot2tex layout
    bt = BBTree(display='file', layout = 'dot2tex')
    bt.BranchAndBound(CONSTRAINTS, VARIABLES, OBJ, MAT, RHS,
                     branch_strategy = PSEUDOCOST_BRANCHING, search_strategy = BEST_FIRST,

src/c/o/coinor.grumpy-0.6.1/test/test_bb_pulp.py   coinor.grumpy(Download)
from grumpy import MOST_FRACTIONAL, FIXED_BRANCHING, PSEUDOCOST_BRANCHING
# import searching strategies
from grumpy import DEPTH_FIRST, BEST_FIRST, BEST_ESTIMATE
import pulp
import sys