BOAT-MS Structure

Core Problem Class

class boat_ms.boat_opt.Problem(config, loss_config)[source]

Bases: object

Enhanced bi-level optimization problem class supporting flexible loss functions and operation configurations.

build_ll_solver()[source]

Configure the lower-level solver.

build_ul_solver()[source]

Placeholder for UL solver configuration (FOGO manages updates internally in MindSpore setting).

plot_losses()[source]
run_iter(ll_feed_dict, ul_feed_dict, current_iter)[source]

Run a single iteration of the bi-level optimization process.

Returns:

(results, run_time)

save_losses(current_iter, ll_loss, ul_loss)[source]

Save the losses to a JSON file and update the loss history.

Main Subpackages

Extension with Operation_Registry

boat_ms.operation_registry.get_registered_operation(name)[source]

Retrieve a registered operation class by name.

boat_ms.operation_registry.register_class(cls)[source]

Register a new operation class to the global registry.