Model.hm_getinternalidlist_bypoolid#

Model.hm_getinternalidlist_bypoolid(id_pool, 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:
  • id_pool (int) – The input pool ID.

  • solver_id_list (hwIntList) – The list of solver IDs to query. All IDs must belong to the specified pool.

Returns:

Example#

Get the internal HM ID of pool ID 1 and solver IDs 2 , 3 and 4#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.hm_getinternalidlist_bypoolid(id_pool=1, solver_id_list=[2, 3, 4])

print("listOfInternalIds", result.listOfInternalIds)