34 if( &var.model != &
model )
35 throw IPOE(
"ipo::Var::operator=(): cannot assign var to different model." );
42 throw IPOE(
"ipo::Var::operator=(): cannot assign var to different model." );
Var(ModelBase &model)
Constructor needs a model so that variable can only be attached to one model.
virtual ~Var()=0
Virtual destructor to make class abstract.
ModelBase & model
A Model to attach this to.
#define IPOE(message)
Macro to allow file and line names in exceptions.
Abstract base class for model.
Namespace for classes that handle details of interior-point optimisation that are not ordinarily acce...
Var & operator=(Var &var)
Copy assignment operator.
Abstract base class for Variable and Array;.