Dantzig.Constraint (Danztig v0.2.0)
View SourceTODO
Summary
Functions
Tests whether the coonstraint depends on a given variable.
Similar to Dantzig.Polynomial.depends_on?/2
.
Create new (normalized) constraint. Doesn't make sure the constraint is linear.
Create new (normalized) linear constraint. Will raise an error if the constraint is not linear.
Tests whether the coonstraint depends on a given variable.
Similar to Dantzig.Polynomial.depends_on?/2
.
Types
Functions
Tests whether the coonstraint depends on a given variable.
Similar to Dantzig.Polynomial.depends_on?/2
.
Create new (normalized) constraint. Doesn't make sure the constraint is linear.
Expects 3 required arguments:
left
: a polynomial or number for the left hand sideoperator
: one of:==
,:>=
or:<=
right
: a polynomial or number for the right hand side
Expects the following optional keyword arguments:
:name
: the name for the constraint
Create new (normalized) linear constraint. Will raise an error if the constraint is not linear.
Expects 3 required arguments:
left
: a polynomial or number for the left hand sideoperator
: one of:==
,:>=
or:<=
right
: a polynomial or number for the right hand side
Expects the following optional keyword arguments:
:name
: the name for the constraint
@spec solve_for_variable(t(), ProblemVariable.variable_name()) :: Dantzig.SolvedConstraint.t()
Tests whether the coonstraint depends on a given variable.
Similar to Dantzig.Polynomial.depends_on?/2
.