Search found 7 matches

by AMIIT
2 years ago
Forum: Modeling
Topic: Mixed Integer Conic Program and semi-definiteness
Replies: 0
Views: 1269

Mixed Integer Conic Program and semi-definiteness

Hey all. I had previously posted a problem of mine, to which I was advised to re-formulate the problem. Link to previous problem https://forum.gamsworld.org/viewtopic.php?p=28580#p28580 I am trying to formulate the problem given in the screenshot and code, below. image.png Pls ignore all the display...
by AMIIT
2 years ago
Forum: Syntax
Topic: Defining vaiables as vector
Replies: 9
Views: 5277

Re: Defining vaiables as vector

Okay thank you. A lot of things are clear right now. I am attaching a code I ran previously, where i manually entered values to the C and Q matrix. Would something like this work? I found help in GAMS forum posts long time ago. positive variables F1, F2, F3, F4, F5, F6, F7, F8; Variables Z; Set i fl...
by AMIIT
2 years ago
Forum: Syntax
Topic: Defining vaiables as vector
Replies: 9
Views: 5277

Re: Defining vaiables as vector

Hey, thank you for the answer. I have attached an image of the equation that I am trying to solve. The C matrix is the predefined matrix. The Q matrix is a 8*8 matrix whose diagonal elements are 8 binary variables. I need the minimum trace and the combination of binary variables that give it. The co...
by AMIIT
2 years ago
Forum: Syntax
Topic: Defining vaiables as vector
Replies: 9
Views: 5277

Re: Defining vaiables as vector

Thank you. A lot of things have been cleared. Let me try again. Also, there is a slight misunderstanding on what exactly it is that I'm trying to do. Essentially, I need an 8*8 matrix whose diagonal elements are the 8 variables that I define. I then have to define a minimizing equation where the men...
by AMIIT
2 years ago
Forum: Syntax
Topic: Defining vaiables as vector
Replies: 9
Views: 5277

Re: Defining vaiables as vector

Thank you for your reply. But I'm still not clear, as in, if I define x(i) as you mentioned, first of all, how would I go about assigning values to each variables when I need it? Second, I need to multiply this vector with a matrix containing numbers after the vector gets its values. So any suggesti...
by AMIIT
2 years ago
Forum: Syntax
Topic: Defining vaiables as vector
Replies: 9
Views: 5277

Defining vaiables as vector

Hi all. I'm quite new to GAMS and trying to solve an interesting problem. A part of it consists of defining a specific vector. I want to define a vector that contains 8 variables in it. For example, the vector A with 8 variables as x1, x2,...x8. The variables should be able to take values depending ...
by AMIIT
2 years ago
Forum: Modeling
Topic: Creating table with variables
Replies: 0
Views: 1467

Creating table with variables

I have 8 variables, which can take either a 0 or 1 as value. These variables are the diagonal elements of a matrix. I want to write a program that can first make such a matrix and second use it for some calculations. Attaching an example code: positive variables F1, F2, F3, F4, F5, F6, F7, F8; Varia...