Nicolas Omont
If you set the objective to 0, it means that you try to solve a non
linear system of equations.
KNITRO solves only problems in which the objective and the constraints
are continuous and differentiable. Does your problem fall in this
category? What does the constraint function returns when the
constraints are nearly satisfied?
At this step, you should set the type of problem to "general".
At the end of the computation, KNITRO prints the final status which
should be "solved". It also returns this status to your code.
Finally, did you consider using a modeler like AMPL to write your
problem. It would make things muche easier to you. A student version
is available on www.ampl.com.
Best regards.
Nicolas Omont
On Dec 23 2009, 6:11 pm, "chrono...@yahoo.com" <chrono...@yahoo.com>
wrote:
I have two ways I am implementing my constraints:
First I have one constraint: -Inf < c <=0
In my constraint function my X values are evaluated based on certain
conditions. If any condition fails I return a number greater than 0,
hence failing the constraint.
Second I have N-constraints: -Inf < c <=0
In my previous implementation, the first time anything fails I return.
Previously all my conditions were wrapped in one constraint. Now I
made each condition a constraint. If if failed, it set the constraint
as a number greater than 0.
I noticed that I liked my results coming from the first implementation
of constraints better than the second one. I don't know whats the
difference but the results look better when plotting them.
I do notice the optimizer does not always "listen" to my constraints.
Sometimes it returns answers that fail my constraints. Is it because I
am not giving my optimizer enough iterations to complete? I set my
iteration count to 50 so I guess sometimes it cuts off.
Also I am using the active-set algorithm. I can't seem to get the
other algorithms to solve my objective correctly. The results are
wacky. Any thoughts?
On Jan 5, 2:36 am, Artelys Knitro support team <support-
Nicolas Omont.
> > > I am using the Knitro callable library in a C++ application. I created a dll file similar to the example program ExampleHS35 and loaded it similar to what the example program driverExample did using LoadLibrary.- Hide quoted text -
>
> - Show quoted text -