8.7.9. MDOPsdConstr

MDOPsdConstr

Represent a PSD constraint in MindOpt application

Properties

Index

Retrieve the index of this PSD constraint in this model

Index

Retrieve the index of this PSD constraint in this model.

Methods

Get

Retrieve the double attribute value owned by the PSD constraint by its name

Get

Retrieve the value of a string attribute owned by this PSD constraint by its name

SameAs

Test whether this PSD constraint is the same as another

Set

Set the value of the double attribute owned by the PSD variable

Set

Set the value of the string attribute owned by the PSD constraint

double Get(MDO.DoubleAttr attr)

Retrieve the double attribute value owned by the PSD constraint by its name

Parameters

MDO.DoubleAttr attr – Attribute name

Returns

Attribute value

string Get(MDO.StringAttr attr)

Retrieve the value of a string attribute owned by this PSD constraint by its name

Parameters

MDO.StringAttr attr – Attribute name

Returns

Attribute value

bool SameAs(MDOPsdConstr c2)

Test whether this PSD constraint is the same as another

Parameters

MDOPsdConstr c2 – Another PSD constraint to be compared

Returns

True if the two are the same

void Set(MDO.DoubleAttr attr, double value)

Set the value of the double attribute owned by the PSD variable.

Parameters
  • MDO.DoubleAttr attr – Attribute name

  • double value – The new value to be set.

void Set(MDO.StringAttr attr, string value)

Set the value of the string attribute owned by the PSD constraint.

Parameters
  • MDO.StringAttr attr – Attribute name

  • string value – The new value to be set.