public class GRBEnv extends Object implements AutoCloseable
| Constructor and Description |
|---|
GRBEnv() |
GRBEnv(boolean empty) |
GRBEnv(String logFileName) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortStart() |
void |
close() |
void |
dispose() |
protected void |
finalize() |
double |
get(GRB.DoubleParam param) |
int |
get(GRB.IntParam param) |
String |
get(GRB.StringParam param) |
String |
getErrorMsg() |
void |
getParamInfo(GRB.DoubleParam param,
double[] info) |
void |
getParamInfo(GRB.IntParam param,
int[] info) |
void |
getParamInfo(GRB.StringParam param,
String[] info) |
int |
getWLSTokenLifespan() |
void |
message(String message) |
protected void |
modelCntDecrease() |
protected void |
modelCntIncrease() |
protected boolean |
modelCntZero() |
void |
readParams(String paramFile) |
void |
release() |
void |
resetParams() |
void |
set(GRB.DoubleParam param,
double newval) |
void |
set(GRB.IntParam param,
int newval) |
void |
set(GRB.StringParam param,
String newval) |
void |
set(String param,
String newval) |
void |
setLogCallback(Consumer<String> logCallback) |
void |
start() |
void |
writeParams(String paramFile) |
public GRBEnv()
throws GRBException
GRBExceptionpublic GRBEnv(String logFileName) throws GRBException
GRBExceptionpublic GRBEnv(boolean empty)
throws GRBException
GRBExceptionpublic void start()
throws GRBException
GRBExceptionpublic void abortStart()
public void release()
public void dispose()
throws GRBException
GRBExceptionprotected void finalize()
throws GRBException
finalize in class ObjectGRBExceptionpublic void close()
throws GRBException
close in interface AutoCloseableGRBExceptionpublic int getWLSTokenLifespan()
throws GRBException
GRBExceptionpublic void message(String message) throws GRBException
GRBExceptionpublic int get(GRB.IntParam param) throws GRBException
GRBExceptionpublic double get(GRB.DoubleParam param) throws GRBException
GRBExceptionpublic String get(GRB.StringParam param) throws GRBException
GRBExceptionpublic void set(GRB.IntParam param, int newval) throws GRBException
GRBExceptionpublic void set(GRB.DoubleParam param, double newval) throws GRBException
GRBExceptionpublic void set(GRB.StringParam param, String newval) throws GRBException
GRBExceptionpublic void set(String param, String newval) throws GRBException
GRBExceptionpublic void getParamInfo(GRB.IntParam param, int[] info) throws GRBException
GRBExceptionpublic void getParamInfo(GRB.DoubleParam param, double[] info) throws GRBException
GRBExceptionpublic void getParamInfo(GRB.StringParam param, String[] info) throws GRBException
GRBExceptionpublic void resetParams()
throws GRBException
GRBExceptionpublic void writeParams(String paramFile) throws GRBException
GRBExceptionpublic void readParams(String paramFile) throws GRBException
GRBExceptionpublic String getErrorMsg()
protected void modelCntIncrease()
protected void modelCntDecrease()
protected boolean modelCntZero()
Copyright © 2026 Gurobi Optimization, LLC. All rights reserved.