IloEnv is not working


I am using Java to solve a series of problems with Cplex. My main goad is to optimise different stances of a model with modified variables and constraints ( and no, I can't modify the main model every time). To do so, I want to use IloEnv, but, this command:

IloEnv env;

is not recognised by Cplex. It gives me the "IloEnv cannot be resolved to a type" error.

Any idea?


<a href="https://www.ibm.com/support/knowledgecenter/SSSA5P_12.8.0/ilog.odms.cplex.help/refcppcplex/html/classes/IloEnv.html" rel="nofollow">IloEnv</a> is only available in the <a href="https://www.ibm.com/support/knowledgecenter/SSSA5P_12.8.0/ilog.odms.cplex.help/refcppcplex/html/overview.html" rel="nofollow">C++ API</a>, but not the <a href="https://www.ibm.com/support/knowledgecenter/SSSA5P_12.8.0/ilog.odms.cplex.help/refjavacplex/html/overview-summary.html" rel="nofollow">Java API</a> (where the memory management details are hidden).

With the Java API, you can just create an <a href="https://www.ibm.com/support/knowledgecenter/SSSA5P_12.8.0/ilog.odms.cplex.help/refjavacplex/html/ilog/cplex/IloCplex.html" rel="nofollow">IloCplex</a> for each instance of your model.

It would be well worth your time to look at the <a href="https://www.ibm.com/support/knowledgecenter/SSSA5P_12.8.0/ilog.odms.cplex.help/CPLEX/homepages/examplescplex.html" rel="nofollow">examples</a> that are shipped with CPLEX Optimization Studio. If COSDIR is the location where you installed the product, then the examples can be found at COSDIR/cplex/examples/src/java.


  • Writing an RDA to CSV in R
  • MongoError: getaddrinfo ENOTFOUND undefined undefined:27017
  • Insert null in a database
  • Convert a 12 hour time format to 24 hour time format (keeping record of the day) in python
  • SVG Fill Width to Child Elements
  • springboot + webpack dev server, does not change localhost bundle file after rebuilding
  • How can I selectively modify the src attributes of script tags in an HTML document using Perl?
  • Rails 4.1 environment variables not reloading
  • Subversion reverting resolved file
  • Doctrine2 inverse persistance not working in nested forms
  • composer dependency stating in doesn't have php-xsl
  • How to create a custom Powershell operator?
  • Wrapping text in spinner android
  • How to autopopulate a field in SugarCRM form
  • ThreadStatic in asynchronous ASP.NET Web API
  • OOP Javascript - Is “get property” method necessary?
  • Master page gives error
  • Jenkins: How To Build multiple projects from a TFS repository?
  • How do I fake an specific browser client when using Java's Net library?
  • How to get a value (ex: baseURL) in every Karate feature?
  • Does CUDA 5 support STL or THRUST inside the device code?
  • How to extract text from Word files using C#?
  • 'TypeError' while using NSGA2 to solve Multi-objective prob. from pyopt-sparse in OpenMDAO
  • Redux, normalised entities and lodash merge
  • Apache 2.4 - remove | delete | uninstall
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • Hits per day in Google Big Query
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • How do I configure my settings file to work with unit tests?
  • Can Visual Studio XAML designer handle font family names with spaces as a resource?
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • Linking SubReports Without LinkChild/LinkMaster
  • How can I remove ASP.NET Designer.cs files?
  • Are Kotlin's Float, Int etc optimised to built-in types in the JVM? [duplicate]
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass
  • Does armcc optimizes non-volatile variables with -O0?
  • Binding checkboxes to object values in AngularJs
  • Conditional In-Line CSS for IE and Others?
  • java string with new operator and a literal