This module defines a ProblemSpecies subclass and related classes for reactor-request-based resources exchanges that are randomly populated (i.e., not related to a specific fuel cycle).
author: | Matthew Gidden <matthew.gidden _at_ gmail.com> |
---|
A problem species for random (non-fuel cycle specific) reactor request exchanges.
Parameters: | point : RandomRequestPoint
|
---|---|
Returns: | inst : tuple of lists of ExGroups, ExNodes, and ExArgs
|
Returns: | point : RandomRequestPoint
|
---|
Parameters: | space_dict : dict
|
---|
Parameters: | point : RandomRequestPoint
param_uuid : uuid
tables : list of cyclopts_io.Table
|
---|
A helper class to translate sampling parameters for a reactor request scenario into an instance of GraphParams used by the cyclopts.execute module.
The params member can be populated in a single step by the populate() member function, or the various supply/request parameters can be generated by the generate_request and generate_supply member functions and then the params member can be populated with the appropriate arguments to the populate_params member function.
This builder can be incorporated with other builders by providing the appropriate offsets.
Parameters: | sampler : ReactorRequestSampler
params : GraphParams, optional
commod_offset : int, optional
req_g_offset : int, optional
sup_g_offset : int, optional
req_n_offset : int, optional
sup_n_offset : int, optional
arc_offset : int, optional
|
---|
Builds Group, Node, and Arc components of a Reactor-Request based Resource Exchange
Returns all requests as a dictionary of requester ids to a list of assembly requests, where each assembly request is a list of id-commodity two-tuples that can satisfy such a request.
Parameters: | commods : set
requesters : list
|
---|
Returns a mapping from supplier to a list of 2-tuples of supply node id and request node id and a mapping from supply group id to a list of commodities supplied by the supplier.
Parameters: | commods : set
suppliers : list
|
---|
Populates params (the GraphParams structure) given known supply and request
Parameters: | request : as returned by generate_request supply : as returned by generate_supply supplier_commods : commods supplied by suppliers, as returned by
|
---|
Screens the provided sampler to determine if it provides a valid point in solution space (e.g., if parameter C requires that the sum of parameters A and B be less than some value, valid() will return false if that condition is not met).
Returns: | b : bool
|
---|
A container class representing a point in parameter space for RandomRequest problem species.
Parameters: | n_commods : Param or similar, optional
n_request : Param or similar, optional
assem_per_req : Param or similar, optional
req_qty : Param or similar, optional
assem_multi_commod : BoolParam or similar, optional
req_multi_commods : Param or similar, optional
exclusive : BoolParam or similar, optional
n_req_constr : Param or similar, optional
n_supply : Param or similar, optional
sup_multi : BoolParam or similar, optional
sup_multi_commods : Param or similar, optional
n_sup_constr : Param or similar, optional
sup_constr_val : SupConstrParam or similar, optional
connection : BoolParam or similar, optional
constr_coeff : CoeffParam or similar, optional
pref_coeff : CoeffParam or similar, optional
|
---|