DeviationEdgeParameter

class compas_cem.optimization.DeviationEdgeParameter(key=None, bound_low=None, bound_up=None)[source]

Bases: compas_cem.optimization.parameters.edge.EdgeParameter

Sets the force of a deviation edge as an optimization parameter.

Methods

attr_name()

bound_low(topology)

bound_up(topology)

copy([cls])

Make an independent copy of the data object.

datatype()

Get the data type of this COMPAS object.

from_data(data)

Creates a serializable object from structured data.

from_json(filepath)

Construct a serializable object from structured data contained in a json file.

from_jsonstring(string)

Construct an object from serialized data contained in a JSON string.

key()

object_cls_from_dtype(dtype)

object_datatype(o)

start_value(topology)

to_data()

Returns a dictionary of structured data representing a serializable object.

to_json(filepath[, pretty])

Serialize this object to a structured json.

to_jsonstring([pretty])

Serialize the data representation of an object to a JSON string.

validate_data()

Validate the data of this object against its data schema (self.DATASCHEMA).

validate_json()

Validate the data loaded from a JSON representation of the data of this object against its data schema (self.DATASCHEMA).