FunctionWeight#

class pybrops.opt.prob.FunctionWeight.FunctionWeight(wt, optimization_type='min')[source]#

Bases: object

Class for representing weights for functions that are in their natural state. Not intended for general use. Please use MinimizingFunctionWeight and MaximizingFunctionWeight.

Constructor for Weight.

Parameters:
  • wt (Real) – A weight value. Must be non-negative.

  • optimization_type (str) – The problem optimization type for which to calculate the weight sign. Must be either "min" or "max" to represent a minimizing or maximizing optimization, respectively.

Methods

Attributes

optimization_type

The problem type for which to calculate the weight sign..

wt

A weight value.

property optimization_type: str#

The problem type for which to calculate the weight sign..

property wt: Real#

A weight value.