EigenOpt 1.0.0
Loading...
Searching...
No Matches
EigenOpt::simplex::internal::VariableDomain Struct Reference

Auxiliay structure to store the domain of a variable. More...

#include <EigenOpt/simplex_internal.hpp>

Public Attributes

bool non_negative = false
 If true, \(x\geq0\).
 
bool non_positive = false
 If true, \(x\leq0\).
 
int idx = -1
 Which constraint (if any) implies the given domain.
 

Detailed Description

Auxiliay structure to store the domain of a variable.

Stores information about the sign that a decision variable can have:

  • Variables with non_negative set to true are supposed to be parameterized as \(x=u\), \(u\geq 0\).
  • Variables with non_positive set to true are supposed to be parameterized as \(x=-v\), \(v\geq0\).
  • Variables with both non_positive and non_negative set to false are supposed to be parameterized as \(x=u-v\), \(u\geq0\) and \(v\geq0\).
  • Variables with both non_positive and non_negative set to true are "degenerate".

This structure is not meant to be used directly by the user.

Definition at line 27 of file simplex_internal.hpp.

Member Data Documentation

◆ idx

int EigenOpt::simplex::internal::VariableDomain::idx = -1

Which constraint (if any) implies the given domain.

Definition at line 30 of file simplex_internal.hpp.

◆ non_negative

bool EigenOpt::simplex::internal::VariableDomain::non_negative = false

If true, \(x\geq0\).

Definition at line 28 of file simplex_internal.hpp.

◆ non_positive

bool EigenOpt::simplex::internal::VariableDomain::non_positive = false

If true, \(x\leq0\).

Definition at line 29 of file simplex_internal.hpp.


The documentation for this struct was generated from the following file: