decogo.problem.decomposed_problem

This module manages block model, approximation data and all problems.

Classes

DecomposedProblem(block_model, sub_problems, ...)

This class contains all sub-problems, master problems and approximation data and methods for manipulating them (add, update etc.)

class decogo.problem.decomposed_problem.DecomposedProblem(block_model, sub_problems, original_problem)[source]

This class contains all sub-problems, master problems and approximation data and methods for manipulating them (add, update etc.)

Parameters
  • block_model (BlockModel) – Block model

  • sub_problems (list) – Contains all necessary sub-problems

  • original_problem (subclass of OriginalProblemBase) – Contains original problem

__init__(block_model, sub_problems, original_problem)[source]

Constructor method

add_inner_point(block_id, point, min_inner_point_dist=None)[source]

Adds an inner point to the list of points and updates corresponding master problems, see problem.approx_data.ApproxData.add_inner_point()

get_min_inner_point(block_id, direction)[source]

Gets inner point with respect to the minimum value computed with some direction in original space, see problem.approx_data.ApproxData.get_min_inner_point()

get_min_column(block_id, direction)[source]

Gets column with respect to the minimum value computed with some direction in image space, see problem.approx_data.ApproxData.get_min_column()

get_inner_points_size(block_id)[source]

Gets inner points size, see problem.approx_data.ApproxData.get_inner_points_size()

eval_viol_lin_global_constraints(point)[source]

Evaluates the violation of global linear constraints, see model.block_model.BlockModel.evaluate_violation_linear_global_constraints()