Model.hm_getinternalidlist_bypoolname#
- Model.hm_getinternalidlist_bypoolname(pool_name, solver_id_list)#
Returns the internal IDs for a list of solver IDs and a solver ID pool. This function is only applicable to templates and entity types that have ID pools.
- Parameters:
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:listOfInternalIds (numpy.ndarray)
Example#
Get the internal HM ID of pool PROP_IDPOOL and solver IDs 17 and 20#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_getinternalidlist_bypoolname(pool_name="PROP_IDPOOL", solver_id_list=[17, 20]) print("listOfInternalIds", result.listOfInternalIds)