Search found 58 matches

by GabrielYin
10 months ago
Forum: Solvers
Topic: GUROBI license is Demo in the newest version of GAMS
Replies: 1
Views: 773

GUROBI license is Demo in the newest version of GAMS

Hi experts, I recently updated my GAMS IDE to the latest version (30.3.0), but I found that the GUROBI solver license in the Option window of the GAMS IDE is "Demo". I have actually obtained an academic license of GUROBI and successfully set it in my computer (I tried to run GurobiPy and it worked)....
by GabrielYin
1 year ago
Forum: Syntax
Topic: Conic constraint in GAMS
Replies: 4
Views: 2066

Re: Conic constraint in GAMS

Hi, with recent versions you should get a message like this from Mosek: The constraint 'eq8'(3) is not convex. Q should be negative semidefinite for a constraint with finite lower bound. (*1294*) Setting non-negative lower bounds on x1 and s1 resolves the problem. free variable x1, x2, x3; x1.lo = ...
by GabrielYin
1 year ago
Forum: Syntax
Topic: Conic constraint in GAMS
Replies: 4
Views: 2066

Re: Conic constraint in GAMS

Hi, with recent versions you should get a message like this from Mosek: The constraint 'eq8'(3) is not convex. Q should be negative semidefinite for a constraint with finite lower bound. (*1294*) Setting non-negative lower bounds on x1 and s1 resolves the problem. free variable x1, x2, x3; x1.lo = ...
by GabrielYin
1 year ago
Forum: Syntax
Topic: Conic constraint in GAMS
Replies: 4
Views: 2066

Conic constraint in GAMS

Hi experts! I just ran into some problems for writing conic constraints in GAMS. I was trying to test the second-order cone programming (SOCP) duality by the following problem from the Stanford course: min 2 * x1 + x2 + x3 s.t. x1 + x2 + x3 = 1 sqr(x1) =g= sqr(x2) + sqr(x3) And the dual of this SOCP...
by GabrielYin
2 years ago
Forum: Solvers
Topic: MOSEK Licensing in GAMS
Replies: 3
Views: 2380

MOSEK Licensing in GAMS

Hi all, I recently need to use MOSEK to solve large-scale SOCP problems, but I really do not know how to add a MOSEK license to my GAMS system. I used to add a GAMS license to my GAMS system by just copying to the clipboard and paste in the Help button in the GAMS IDE, which includes CPLEX. I have a...
by GabrielYin
2 years ago
Forum: Syntax
Topic: Different CPLEX threads influences final results?
Replies: 4
Views: 2612

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 ...
by GabrielYin
2 years ago
Forum: Syntax
Topic: Different CPLEX threads influences final results?
Replies: 4
Views: 2612

Re: Different CPLEX threads influences final results?

Sorry, for threads = 4 case, the elapsed time is 5min38sec.

Gabriel
by GabrielYin
2 years ago
Forum: Syntax
Topic: Different CPLEX threads influences final results?
Replies: 4
Views: 2612

Different CPLEX threads influences final results?

Hi all, I have tried to set different threads for CPLEX solver to facilitate my computation, but weirdly, different threads gave different final results. Based on my knowledge, setting threads will only influence the speed because it is for parallel computing, but will not have any impact on the exe...
by GabrielYin
2 years ago
Forum: Tools
Topic: How to fancily label and observe .lst file
Replies: 0
Views: 2003

How to fancily label and observe .lst file

Hi all, I am using a linux-version GAMS in a linux system. It does give me a .lst file after compilation, but it cannot be viewed as in GAMS IDE, like shown in the following. .lst file in a GAMS IDE is with very fancy labels and can be easily viewed. https://image.ibb.co/b9damp/lst.jpg I have tried ...
by GabrielYin
2 years ago
Forum: Modeling
Topic: MIQP Problem Formulated as MIQCP?
Replies: 5
Views: 2565

Re: MIQP Problem Formulated as MIQCP?

Gabriel, From the log output you sent I would conclude that the GAMS/CPLEX link has found a general non-linear constraint in your problem. Simply put, it does not think it is a QCP. The specific output I refer to is: General nonlinearity detected in row subobjregu -Steve Thank you! However, the row...