<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=us-ascii" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<a class="moz-txt-link-abbreviated" href="mailto:ginac-list-request@ginac.de">ginac-list-request@ginac.de</a> ha scritto:
<blockquote cite="mid:mailman.1.1231930802.20262.ginac-list@ginac.de"
type="cite">
<pre wrap="">Send GiNaC-list mailing list submissions to
        <a class="moz-txt-link-abbreviated" href="mailto:ginac-list@ginac.de">ginac-list@ginac.de</a>
To subscribe or unsubscribe via the World Wide Web, visit
        <a class="moz-txt-link-freetext" href="https://www.cebix.net/mailman/listinfo/ginac-list">https://www.cebix.net/mailman/listinfo/ginac-list</a>
or, via email, send a message with subject or body 'help' to
        <a class="moz-txt-link-abbreviated" href="mailto:ginac-list-request@ginac.de">ginac-list-request@ginac.de</a>
You can reach the person managing the list at
        <a class="moz-txt-link-abbreviated" href="mailto:ginac-list-owner@ginac.de">ginac-list-owner@ginac.de</a>
When replying, please edit your Subject line so it is more specific
than "Re: Contents of GiNaC-list digest..."
Today's Topics:
1. Re: constrained, parametric optimization (Richard B. Kreckel)
----------------------------------------------------------------------
Message: 1
Date: Wed, 14 Jan 2009 10:29:40 +0100
From: "Richard B. Kreckel" <a class="moz-txt-link-rfc2396E" href="mailto:kreckel@ginac.de"><kreckel@ginac.de></a>
Subject: Re: [GiNaC-list] constrained, parametric optimization
To: GiNaC discussion list <a class="moz-txt-link-rfc2396E" href="mailto:ginac-list@ginac.de"><ginac-list@ginac.de></a>
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:496DB084.2060308@ginac.de"><496DB084.2060308@ginac.de></a>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Luca Dall'Olio wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I am developing a computer program which needs to solve a constrained,
parametric optimisation, something like :
meaning to calculate min(x) such as y = b*x+a and x <= c and x >=0
where x and y are variables, a, b, c are constant but unknown parameters.
Since the problem is calculated at runtime from my computer program and
changes every time, I think I need to solve it with some form of constrained
programming with a symbolic result.
I could see something like this in mathematica :
<a class="moz-txt-link-freetext" href="http://reference.wolfram.com/mathematica/ref/Minimize.html#61381153">http://reference.wolfram.com/mathematica/ref/Minimize.html#61381153</a>
but I would like to keep my program free and open source, so I would like to
use a free library for this...
could you please tell me if I can do this using ginac?
</pre>
</blockquote>
<pre wrap=""><!---->
GiNaC isn't prepared to do constrained optimization.
</pre>
</blockquote>
thank you very much for saving me a lot of (unsuccessful) time
searching :-)<br>
<blockquote cite="mid:mailman.1.1231930802.20262.ginac-list@ginac.de"
type="cite">
<pre wrap="">
I suppose that the example you posted above isn't the most general case
you are aiming at.
</pre>
</blockquote>
yes, you are right<br>
<br>
<blockquote cite="mid:mailman.1.1231930802.20262.ginac-list@ginac.de"
type="cite">
<pre wrap="">
Because if it is, you can of course do that manually.
However, if the equations start containing powers of x, things become
more nasty.
</pre>
</blockquote>
I agree, I could live with limitations such as "only linear objective
function, only inequality constraints ..." or things like that, but I
need a parametric input (and so a symbolic result)<br>
<blockquote cite="mid:mailman.1.1231930802.20262.ginac-list@ginac.de"
type="cite">
<pre wrap="">
Regards
-richy.
</pre>
</blockquote>
<br>
Best regards,<br>
Luca<br>
</body>
</html>