After you solve your optimization problem with LOQO, gjh can find the derivatives of the objective function and the constraint functions with respect to the variables that appear in those functions. So if you have (just as an example) a constraint like "P(V,theta) >= 0" where P(V,theta) is actually a nonlinear AMPL expression in terms of variables representing V and theta, then ghj can produce derivatives of the expression with respect to those variables. If necessary you can create an artificial objective or constraint for this purpose.
Since you already are using LOQO I guess you have an AMPL model. To get more help you might want to describe your needs in terms of the AMPL expressions rather than in terms of less formal mathematical expressions like "variable P(V,theta)."
Bob Fourer
From: am...@googlegroups.com [mailto:am...@googlegroups.com]
On Behalf Of amit garg
Sent: Thursday, April 07, 2011 1:02 AM
To: am...@googlegroups.com
Subject: [AMPL 4530] I want to use gjh solver to get jocobian for my problem constraint...plz help me
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To post to this group, send email to am...@googlegroups.com.
To unsubscribe from this group, send email to ampl+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ampl?hl=en.
The gjh "solver" is only set up to return all the derivative values, in parameters g, J, and H as described by www.netlib.org/ampl/solvers/examples/README.gjh. You can determine the variables and constraints to which these values belong by looking at the builtin parameters _varname and _conname. You can display any of the values in g, J, and H, or write them to files, or assign their values to other parameters using "let" statements, just as for any other kind of AMPL parameters; there is no special command for this.
So if you only want jacobian values for the first three constraints then you can extract them from J and ignore the other values. Or if you are ambitious, you can download the source code for gjh.c from netlib and modify it to return only certain values.
> I have a another similar problem in which i have a bound constraint.
> And I want to optimize that constraint and objective function both
> simultaneously.
You can only optimize one objective at a time. If you have two criteria to optimize then you need to either optimize one and fix that and then optimize the other, or else combine the two into one objective such as by taking a weight times the first one plus a weight times the second.
Bob Fourer
From: am...@googlegroups.com [mailto:am...@googlegroups.com]
On Behalf Of amit garg
Sent: Friday, April 08, 2011 2:46 AM
To: am...@googlegroups.com
Subject: Re: [AMPL 4535] I want to use gjh solver to get jocobian for my problem constraint...plz help me
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To post to this group, send email to am...@googlegroups.com.
To unsubscribe from this group, send email to ampl+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ampl?hl=en.