STORM_LOG_ASSERT(variableType==GLP_CV||variableType==GLP_IV||variableType==GLP_BV,"Illegal type '"<<variableType<<"' for glpk variable.");
STORM_LOG_ASSERT(variableType==GLP_CV||variableType==GLP_IV||variableType==GLP_BV,"Illegal type '"<<variableType<<"' for glpk variable.");
// Check for valid bound type.
// Check for valid bound type.
STORM_LOG_ASSERT(boundType==GLP_FR||boundType==GLP_UP||boundType==GLP_LO||boundType==GLP_DB,"Illegal bound type for variable '"<<name<<"'.");
STORM_LOG_ASSERT(boundType==GLP_FR||boundType==GLP_UP||boundType==GLP_LO||boundType==GLP_DB,"Illegal bound type for variable '"<<variable.getName()<<"'.");
STORM_LOG_THROW(constraint.getManager()==this->getManager(),storm::exceptions::InvalidArgumentException,"Constraint was not built over the proper variables.");
STORM_LOG_THROW(constraint.isRelationalExpression(),storm::exceptions::InvalidArgumentException,"Illegal constraint is not a relational expression.");
STORM_LOG_THROW(constraint.isRelationalExpression(),storm::exceptions::InvalidArgumentException,"Illegal constraint is not a relational expression.");
STORM_LOG_THROW(variableIndexPair!=this->variableToIndexMap.end(),storm::exceptions::InvalidAccessException,"Accessing value of unknown variable '"<<name<<"'.");
STORM_LOG_THROW(variableIndexPair!=this->variableToIndexMap.end(),storm::exceptions::InvalidAccessException,"Accessing value of unknown variable '"<<variable.getName()<<"'.");
STORM_LOG_THROW(variableIndexPair!=this->variableToIndexMap.end(),storm::exceptions::InvalidAccessException,"Accessing value of unknown variable '"<<name<<"'.");
STORM_LOG_THROW(variableIndexPair!=this->variableToIndexMap.end(),storm::exceptions::InvalidAccessException,"Accessing value of unknown variable '"<<variable.getName()<<"'.");
STORM_LOG_THROW(variableIndexPair!=this->variableToIndexMap.end(),storm::exceptions::InvalidAccessException,"Accessing value of unknown variable '"<<name<<"'.");
STORM_LOG_THROW(variableIndexPair!=this->variableToIndexMap.end(),storm::exceptions::InvalidAccessException,"Accessing value of unknown variable '"<<variable.getName()<<"'.");
STORM_LOG_ASSERT(variableType==GRB_CONTINUOUS||variableType==GRB_INTEGER||variableType==GRB_BINARY,"Illegal type '"<<variableType<<"' for Gurobi variable.");
STORM_LOG_ASSERT(variableType==GRB_CONTINUOUS||variableType==GRB_INTEGER||variableType==GRB_BINARY,"Illegal type '"<<variableType<<"' for Gurobi variable.");
STORM_LOG_THROW(!this->isInfeasible(),storm::exceptions::InvalidAccessException,"Unable to get Gurobi solution from infeasible model ("<<GRBgeterrormsg(env)<<").");
STORM_LOG_THROW(!this->isInfeasible(),storm::exceptions::InvalidAccessException,"Unable to get Gurobi solution from infeasible model ("<<GRBgeterrormsg(env)<<").");
STORM_LOG_THROW(!this->isUnbounded(),storm::exceptions::InvalidAccessException,"Unable to get Gurobi solution from unbounded model ("<<GRBgeterrormsg(env)<<").");
STORM_LOG_THROW(!this->isUnbounded(),storm::exceptions::InvalidAccessException,"Unable to get Gurobi solution from unbounded model ("<<GRBgeterrormsg(env)<<").");
STORM_LOG_THROW(false,storm::exceptions::InvalidAccessException,"Unable to get Gurobi solution from unoptimized model ("<<GRBgeterrormsg(env)<<").");
STORM_LOG_THROW(false,storm::exceptions::InvalidAccessException,"Unable to get Gurobi solution from unoptimized model ("<<GRBgeterrormsg(env)<<").");
STORM_LOG_THROW(variableIndexPair!=this->variableNameToIndexMap.end(),storm::exceptions::InvalidAccessException,"Accessing value of unknown variable '"<<name<<"'.");
STORM_LOG_THROW(variableIndexPair!=this->variableToIndexMap.end(),storm::exceptions::InvalidAccessException,"Accessing value of unknown variable '"<<variable.getName()<<"'.");
STORM_LOG_THROW(!this->isInfeasible(),storm::exceptions::InvalidAccessException,"Unable to get Gurobi solution from infeasible model ("<<GRBgeterrormsg(env)<<").");
STORM_LOG_THROW(!this->isInfeasible(),storm::exceptions::InvalidAccessException,"Unable to get Gurobi solution from infeasible model ("<<GRBgeterrormsg(env)<<").");
STORM_LOG_THROW(!this->isUnbounded(),storm::exceptions::InvalidAccessException,"Unable to get Gurobi solution from unbounded model ("<<GRBgeterrormsg(env)<<").");
STORM_LOG_THROW(!this->isUnbounded(),storm::exceptions::InvalidAccessException,"Unable to get Gurobi solution from unbounded model ("<<GRBgeterrormsg(env)<<").");
STORM_LOG_THROW(false,storm::exceptions::InvalidAccessException,"Unable to get Gurobi solution from unoptimized model ("<<GRBgeterrormsg(env)<<").");
STORM_LOG_THROW(false,storm::exceptions::InvalidAccessException,"Unable to get Gurobi solution from unoptimized model ("<<GRBgeterrormsg(env)<<").");
STORM_LOG_THROW(variableIndexPair!=this->variableNameToIndexMap.end(),storm::exceptions::InvalidAccessException,"Accessing value of unknown variable '"<<name<<"'.");
STORM_LOG_THROW(variableIndexPair!=this->variableToIndexMap.end(),storm::exceptions::InvalidAccessException,"Accessing value of unknown variable '"<<variable.getName()<<"'.");
STORM_LOG_THROW(!this->isInfeasible(),storm::exceptions::InvalidAccessException,"Unable to get Gurobi solution from infeasible model ("<<GRBgeterrormsg(env)<<").");
STORM_LOG_THROW(!this->isInfeasible(),storm::exceptions::InvalidAccessException,"Unable to get Gurobi solution from infeasible model ("<<GRBgeterrormsg(env)<<").");
STORM_LOG_THROW(!this->isUnbounded(),storm::exceptions::InvalidAccessException,"Unable to get Gurobi solution from unbounded model ("<<GRBgeterrormsg(env)<<").");
STORM_LOG_THROW(!this->isUnbounded(),storm::exceptions::InvalidAccessException,"Unable to get Gurobi solution from unbounded model ("<<GRBgeterrormsg(env)<<").");
STORM_LOG_THROW(false,storm::exceptions::InvalidAccessException,"Unable to get Gurobi solution from unoptimized model ("<<GRBgeterrormsg(env)<<").");
STORM_LOG_THROW(false,storm::exceptions::InvalidAccessException,"Unable to get Gurobi solution from unoptimized model ("<<GRBgeterrormsg(env)<<").");
STORM_LOG_THROW(variableIndexPair!=this->variableNameToIndexMap.end(),storm::exceptions::InvalidAccessException,"Accessing value of unknown variable '"<<name<<"'.");
STORM_LOG_THROW(variableIndexPair!=this->variableToIndexMap.end(),storm::exceptions::InvalidAccessException,"Accessing value of unknown variable '"<<variable.getName()<<"'.");
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";}
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";}
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
}
}
@ -204,15 +204,15 @@ namespace storm {
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";
throwstorm::exceptions::NotImplementedException()<<"This version of StoRM was compiled without support for Gurobi. Yet, a method was called that requires this support. Please choose a version of support with Gurobi support.";