class Kiwi::Variable

Overview

This is a light wrapper around the actual VariableState that provides some helpful operators.

Defined in:

dsl/variable.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String) #

[View source]
def self.new(value : Float64) #

[View source]

Instance Method Detail

def *(coefficient : Number) : Term #

[View source]
def +(constant : Number) : Expression #

[View source]
def +(other : Variable) : Expression #

[View source]
def +(term : Term) : Expression #

[View source]
def +(expression : Expression) : Expression #

[View source]
def -(constant : Number) : Expression #

[View source]
def -(other : Variable) : Expression #

[View source]
def -(term : Term) : Expression #

[View source]
def -(expression : Expression) : Expression #

[View source]
def /(denominator : Number) : Term #

[View source]
def <=(constant : Number) : Constraint #

[View source]
def <=(other : Variable) : Constraint #

[View source]
def <=(term : Term) : Constraint #

[View source]
def <=(expression : Expression) : Constraint #

[View source]
def ==(constant : Number) : Constraint #

[View source]
def ==(other : Variable) : Constraint #

[View source]
def ==(term : Term) : Constraint #

[View source]
def ==(expression : Expression) : Constraint #

[View source]
def >=(constant : Number) : Constraint #

[View source]
def >=(other : Variable) : Constraint #

[View source]
def >=(term : Term) : Constraint #

[View source]
def >=(expression : Expression) : Constraint #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def value #

[View source]