Search found 163 matches

by bussieck
10 hours ago
Forum: Syntax
Topic: Different CPLEX threads influences final results?
Replies: 3
Views: 65

Re: Different CPLEX threads influences final results?

No, the threads selection may have an impact on your results. If you have different optimal solutions (or have positive optimality tolerances) you will have a different path through the algorithm if you change something (threads, OS, different bit-ness of the software (32/64bit), ...). Only if you d...
by bussieck
1 day ago
Forum: Modeling
Topic: problem with no superbasic variables(simple model)
Replies: 3
Views: 118

Re: problem with no superbasic variables(simple model)

Your solve statement solves the model as an RMINLP (see https://www.gams.com/latest/docs/UG_ModelSolve.html#UG_ModelSolve_model_types). This relaxes the integral requirement. If you solve as MINLP you get: S O L V E S U M M A R Y MODEL beiqi OBJECTIVE z TYPE MINLP DIRECTION MINIMIZE SOLVER COUENNE F...
by bussieck
3 days ago
Forum: Modeling
Topic: problem with no superbasic variables(simple model)
Replies: 3
Views: 118

Re: problem with no superbasic variables(simple model)

You probably solved the non-convex model with a local solver (CONOPT) that gets stuck. The model is small enough to ask a global solver if the model is truly infeasible or if you need to pay more attention in setting a good starting point for your local solver. It turns out the latter is true. I sol...
by bussieck
2 weeks ago
Forum: API
Topic: Setting variable level in Python without using GamsModifier
Replies: 1
Views: 150

Re: Setting variable level in Python without using GamsModifier

It is a bug that the Python API does not recognize your Primal modifier. This has been fixed and will be available in the next maintenance release.

-Michael
by bussieck
2 weeks ago
Forum: Syntax
Topic: gams code for TSP
Replies: 2
Views: 86

Re: gams code for TSP

I guess the message in the log is pretty obvious: --- 102 rows 110 columns 508 non-zeroes --- 90 discrete-columns *** Status: Terminated due to a licensing error *** Inspect listing file for more information If you follow the suggestion in the log and inspect the listing file you find **** THE MODEL...
by bussieck
2 weeks ago
Forum: Syntax
Topic: How to tune the parameter of CPLEX for solving large MIP problem
Replies: 1
Views: 70

Re: How to tune the parameter of CPLEX for solving large MIP problem

The file GAMS/Cplex creates is called 'cplex.op2' including the ticks ('). Remove the ticks in the option to create the file normally, i.e. tuning cplex.op2 . You will find the file in the project directory (IDE) or directory where the main GAMS file resides (Studio). There are cases where the defau...
by bussieck
2 weeks ago
Forum: Modeling
Topic: Incompatible operands for addition error 133.
Replies: 4
Views: 103

Re: Incompatible operands for addition error 133.

I see no compilations error, but the default MINLP solver (DICOPT) has trouble finding a feasible solution. That's not an error. Optimal, unbounded, and infeasible are all valid and good outcomes of an optimization model. In case of a non-convex model you also have to deal with local optima and loca...
by bussieck
2 weeks ago
Forum: Syntax
Topic: How can I change the folder where Gams saves the result.gdx file?
Replies: 1
Views: 60

Re: How can I change the folder where Gams saves the result.gdx file?

Hi depends how you instruct GAMS to create the GDX file. Most commands allow you to specify an absolute or relative path, e.g. execute_unload '..\gdxoutdir\output.gdx';.

-Michael
by bussieck
2 weeks ago
Forum: Modeling
Topic: MIQP Problem Formulated as MIQCP?
Replies: 5
Views: 109

Re: MIQP Problem Formulated as MIQCP?

Unless your norm is something special, this should be written as sigma/2 * sum(eq, sqr(AEG(eg) - AEGhat(eg))).

-Michael